THRIFT-407. hs: Refactor and improve Haskell-related code



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@763031 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/hs/Thrift.cabal b/lib/hs/Thrift.cabal
index 22f89b4..4cef4de 100644
--- a/lib/hs/Thrift.cabal
+++ b/lib/hs/Thrift.cabal
@@ -1,6 +1,7 @@
 Name:           Thrift
 Version:        0.1.0
 Cabal-Version:  >= 1.2
+License:        Apache2
 Category:       Foreign
 Build-Type:     Simple
 Synopsis:       Thrift library package
@@ -9,10 +10,11 @@
   Hs-Source-Dirs:
     src
   Build-Depends:
-    base <4 && >2, network, ghc-prim
+    base >=4, network, ghc-prim
   ghc-options:
     -fglasgow-exts
   Extensions:
     DeriveDataTypeable
   Exposed-Modules:
-    Thrift, TBinaryProtocol, TChannelTransport, TServer, TSocket
+    Thrift, Thrift.Protocol, Thrift.Transport, Thrift.Protocol.Binary
+    Thrift.Transport.Handle, Thrift.Server