Browse Source

Compiling on GHC 8.0

Marcos Dumay de Medeiros 5 years ago
parent
commit
cb78d55095
2 changed files with 4 additions and 42 deletions
  1. 1 1
      src/System/IO/Uniform/Streamline.hs
  2. 3 41
      uniform-io.cabal

+ 1 - 1
src/System/IO/Uniform/Streamline.hs

@@ -138,7 +138,7 @@ instance Monad m => Functor (Streamline m) where
     (x, cl') <- withTarget' m cl
     return (f x, cl')
 
-instance (Functor m, Monad m) => Applicative (Streamline m) where
+instance Monad m => Applicative (Streamline m) where
     pure = return
     (<*>) = ap
 

+ 3 - 41
uniform-io.cabal

@@ -1,21 +1,6 @@
--- Initial filelike.cabal generated by cabal init.  For further 
--- documentation, see http://haskell.org/cabal/users-guide/
-
--- The name of the package.
 name:                uniform-io
-
--- The package version.  See the Haskell package versioning policy (PVP) 
--- for standards guiding when and how versions should be incremented.
--- http://www.haskell.org/haskellwiki/Package_versioning_policy
--- PVP summary:      +-+------- breaking API changes
---                   | | +----- non-breaking API additions
---                   | | | +--- code changes with no API change
 version:    1.3.0.0
-
--- A short (one-line) description of the package.
 synopsis:   Uniform IO over files, network, anything.
-
--- A longer description of the package.
 description:
     This library defines a typeclass for abstracting
     the differences between the several IO channels available.
@@ -27,36 +12,13 @@ description:
     That is planned to be added soon.
     .
     Requires a '-threaded' compiler switch.
-
-
--- URL for the project homepage or repository.
 homepage:   https://sealgram.com/git/haskell/uniform-io
-
--- The license under which the package is released.
 license:    MIT
-
--- The file containing the license text.
 license-file: LICENSE
-
--- The package author(s).
 author:     Marcos Dumay de Medeiros
-
--- An email address to which users can send suggestions, bug reports, and 
--- patches.
 maintainer: marcos@marcosdumay.com
-
--- A copyright notice.
--- copyright:           
-
 category:   System
-
 build-type: Simple
-
--- Extra files to be distributed with the package, such as examples or a 
--- README.
--- extra-source-files:  
-
--- Constraint on the version of Cabal needed to build this package.
 cabal-version: >=1.10
 
 Extra-Source-Files:
@@ -104,7 +66,7 @@ library
   
   -- Other library packages from which modules are imported.
   build-depends:
-      base >=4.8 && <4.9 ,
+      base >=4.8,
       iproute >=1.4,
       bytestring >=0.10,
       network >=2.4,
@@ -134,7 +96,7 @@ Test-suite targets
   hs-source-dirs:
     test
   build-depends:
-    base >=4.7 && <5.0,
+    base >=4.7,
     Cabal >= 1.9.2,
     bytestring >=0.10 && <1.0,
     uniform-io
@@ -149,7 +111,7 @@ Test-suite blocking
   hs-source-dirs:
     test
   build-depends:
-    base >=4.7 && <5.0,
+    base >=4.7,
     Cabal >= 1.9.2,
     bytestring >=0.10 && <1.0,
     attoparsec >=0.10 && <1.0,