1
Fork 0

Remove ghc-prim dependency.

master
Joshua Potter 2018-01-14 02:30:56 -08:00
parent 27a25c4baa
commit ca52788125
3 changed files with 16 additions and 30 deletions

View File

@ -21,13 +21,12 @@ description: Please see the README on Github at
dependencies: dependencies:
- base >= 4.7 && < 5 - base >= 4.7 && < 5
- bytestring >= 0.9 && <= 0.10.8.2 - bytestring >= 0.9 && <= 0.11
- exceptions >= 0.8 && <= 0.8.3 - exceptions >= 0.8 && <= 0.9
- free >= 4.0 && <= 4.12.4 - free >= 4 && <= 5
- ghc-prim >= 0.5.0.0 && <= 0.5.1.1 - mtl >= 2 && <= 2.2.1
- mtl >= 2.0.0.0 && <= 2.2.1 - text >= 1.2 && <= 1.2.2.2
- text >= 1.2.0.0 && <= 1.2.2.2 - transformers >= 0.5.2 && <= 0.5.5
- transformers >= 0.5.2.0 && <= 0.5.5.0
library: library:
source-dirs: src source-dirs: src

View File

@ -2,7 +2,7 @@
-- --
-- see: https://github.com/sol/hpack -- see: https://github.com/sol/hpack
-- --
-- hash: a0f8ab1c4a70737a18ce50a346d1cdc193d7ff1f4e1b2114f1ea82f8ca03d9b2 -- hash: 11b8c26f553bf674da8af0841f67c273e62a36110eb4ff1dde16718067ba7f1a
name: postlude name: postlude
version: 0.1.0.1 version: 0.1.0.1
@ -28,14 +28,13 @@ library
hs-source-dirs: hs-source-dirs:
src src
build-depends: build-depends:
base >=4.7 && <5 base >=4.10.1.0 && <5
, bytestring >=0.9 && <=0.10.8.2 , bytestring >=0.9 && <=0.11
, exceptions >=0.8 && <=0.8.3 , exceptions >=0.8 && <=0.9
, free >=4.0 && <=4.12.4 , free >=4 && <=5
, ghc-prim >=0.5.0.0 && <=0.5.1.1 , mtl >=2 && <=2.2.1
, mtl >=2.0.0.0 && <=2.2.1 , text >=1.2 && <=1.2.2.2
, text >=1.2.0.0 && <=1.2.2.2 , transformers >=0.5.2 && <=0.5.5
, transformers >=0.5.2.0 && <=0.5.5.0
exposed-modules: exposed-modules:
Postlude Postlude
other-modules: other-modules:

View File

@ -1,6 +1,4 @@
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeInType #-}
-- The following maps all imports into a single module alias for easy exporting. -- The following maps all imports into a single module alias for easy exporting.
-- In all cases, we choose to explicitly list all exports (and avoid the use of -- In all cases, we choose to explicitly list all exports (and avoid the use of
@ -10,10 +8,7 @@
-- It is generally expected one will add the -XNoImplicitPrelude pragma to the -- It is generally expected one will add the -XNoImplicitPrelude pragma to the
-- file Postlude is being used in, and to import Postlude without any -- file Postlude is being used in, and to import Postlude without any
-- qualification. -- qualification.
module Postlude module Postlude (module X) where
( module X
, undefined
) where
import Control.Applicative as X import Control.Applicative as X
( Applicative, (*>), (<*), (<*>), pure ( Applicative, (*>), (<*), (<*>), pure
@ -214,6 +209,7 @@ import GHC.Enum as X
import GHC.Err as X import GHC.Err as X
( error ( error
, undefined
) )
import GHC.Float as X import GHC.Float as X
@ -309,11 +305,3 @@ import System.IO as X
import Text.Read as X import Text.Read as X
( read ( read
) )
import qualified GHC.Err as Err
import qualified GHC.Stack.Types as Stack.Types
import qualified GHC.Types as GHC.Types
undefined :: forall (r :: GHC.Types.RuntimeRep). forall (a :: GHC.Types.TYPE r).
Stack.Types.HasCallStack => a
undefined = Err.error "Postlude.undefined"