1
Fork 0

Include from non-GHC specific imports.

Add more exports from applicative and monad.
master
Joshua Potter 2019-12-02 10:20:35 -05:00
parent f7cc39ce99
commit a8c5b43dc8
5 changed files with 87 additions and 36 deletions

View File

@ -1,11 +1,13 @@
-- This file has been generated from package.yaml by hpack version 0.21.2. cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.31.2.
-- --
-- see: https://github.com/sol/hpack -- see: https://github.com/sol/hpack
-- --
-- hash: a9b86e4681094ba732bd53deeeed47aad77606ad9fce8265f9917349d9aaa833 -- hash: 279baf8a9c78e19c42e376ae268fa1e0869c2f0f3a7cf2c091f4d286fcaadcb6
name: postlude name: postlude
version: 0.1.0.9 version: 0.1.1.0
description: Please see the README on Github at <https://github.com/jrpotter/postlude#readme> description: Please see the README on Github at <https://github.com/jrpotter/postlude#readme>
homepage: https://github.com/jrpotter/postlude#readme homepage: https://github.com/jrpotter/postlude#readme
bug-reports: https://github.com/jrpotter/postlude/issues bug-reports: https://github.com/jrpotter/postlude/issues
@ -15,8 +17,6 @@ copyright: 2018 Joshua Potter
license: BSD3 license: BSD3
license-file: LICENSE license-file: LICENSE
build-type: Simple build-type: Simple
cabal-version: >= 1.10
extra-source-files: extra-source-files:
README.md README.md

View File

@ -8,7 +8,9 @@
-- 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 X) where module Postlude
( module X
) where
import Prelude as X import Prelude as X
( (^) ( (^)
@ -17,8 +19,15 @@ import Prelude as X
) )
import Control.Applicative as X import Control.Applicative as X
( Applicative, (*>), (<*), (<*>), pure ( Alternative, (<|>), empty, many, some
, Applicative, (*>), (<*), (<*>), liftA2, pure
, Const, getConst
, (<$)
, (<$>) , (<$>)
, (<**>)
, liftA
, liftA3
, optional
) )
import Control.Arrow as X import Control.Arrow as X
@ -36,7 +45,26 @@ import Control.Arrow as X
import Control.Monad as X import Control.Monad as X
( Monad, (>>=), (>>), return, fail ( Monad, (>>=), (>>), return, fail
, MonadPlus, mplus, mzero , MonadPlus, mplus, mzero
, (<=<)
, (=<<)
, (>=>)
, ap
, forM
, forM_
, forever
, guard , guard
, liftM
, liftM2
, liftM3
, liftM4
, liftM5
, mapM
, mapM_
, sequence
, sequence_
, unless
, void
, when
) )
import Control.Monad.Catch as X import Control.Monad.Catch as X
@ -191,6 +219,14 @@ import Data.Monoid as X
( Monoid, mappend, mconcat, mempty ( Monoid, mappend, mconcat, mempty
) )
import Data.Ratio as X
( Ratio, (%), denominator, numerator
)
import Data.Semigroup as X
( Semigroup, (<>), sconcat, stimes
)
import Data.Ord as X import Data.Ord as X
( Ord, (<), (<=), (>), (>=), compare, max, min ( Ord, (<), (<=), (>), (>=), compare, max, min
, Ordering, Ordering(EQ), Ordering(GT), Ordering(LT) , Ordering, Ordering(EQ), Ordering(GT), Ordering(LT)
@ -212,7 +248,14 @@ import Data.Word as X
, Word64 , Word64
) )
import GHC.Enum as X import Numeric as X
( expm1
, log1mexp
, log1p
, log1pexp
)
import Prelude as X -- GHC.Enum
( Bounded, maxBound, minBound ( Bounded, maxBound, minBound
, Enum , Enum
, enumFrom , enumFrom
@ -225,12 +268,12 @@ import GHC.Enum as X
, toEnum , toEnum
) )
import GHC.Err as X import Prelude as X -- GHC.Err
( error ( error
, undefined , undefined
) )
import GHC.Float as X import Prelude as X -- GHC.Float
( Double ( Double
, Float , Float
, Floating , Floating
@ -244,11 +287,7 @@ import GHC.Float as X
, cos , cos
, cosh , cosh
, exp , exp
, expm1
, log , log
, log1mexp
, log1p
, log1pexp
, logBase , logBase
, pi , pi
, sin , sin
@ -273,28 +312,19 @@ import GHC.Float as X
, significand , significand
) )
import GHC.Num as X import Prelude as X -- GHC.Num
( Num, (*), (+), (-), abs, fromInteger, negate, signum ( Num, (*), (+), (-), abs, fromInteger, negate, signum
, Integer , Integer
) )
import GHC.Read as X import Prelude as X -- GHC.Real
( Read, readList, readListPrec, readPrec, readsPrec
)
import GHC.Real as X
( Fractional, (/), fromRational, recip ( Fractional, (/), fromRational, recip
, Integral, div, divMod, mod, quot, quotRem, rem, toInteger , Integral, div, divMod, mod, quot, quotRem, rem, toInteger
, Ratio, (%), denominator, numerator
, Rational , Rational
, Real, toRational , Real, toRational
, RealFrac, ceiling, floor, properFraction, round, truncate , RealFrac, ceiling, floor, properFraction, round, truncate
) )
import GHC.Show as X
( Show, show, showList, showsPrec
)
import System.Environment as X import System.Environment as X
( getArgs ( getArgs
, getEnv , getEnv
@ -324,5 +354,10 @@ import System.IO as X
) )
import Text.Read as X import Text.Read as X
( read ( Read, readList, readListPrec, readPrec, readsPrec
, read
)
import Text.Show as X
( Show, show, showList, showsPrec
) )

View File

@ -1,21 +1,23 @@
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE NoImplicitPrelude #-}
module Postlude.Lazy (module Lazy) where module Postlude.Lazy
( module L
) where
import Control.Monad.Trans.State as Lazy import Control.Monad.Trans.State as L
( State ( State
, StateT, StateT(StateT), runStateT , StateT, StateT(StateT), runStateT
) )
import Control.Monad.Trans.Writer as Lazy import Control.Monad.Trans.Writer as L
( Writer ( Writer
, WriterT, WriterT(WriterT), runWriterT , WriterT, WriterT(WriterT), runWriterT
) )
import Data.ByteString.Lazy as Lazy import Data.ByteString.Lazy as L
( ByteString ( ByteString
) )
import Data.Text.Lazy as Lazy import Data.Text.Lazy as L
( Text ( Text
) )

View File

@ -1,21 +1,23 @@
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE NoImplicitPrelude #-}
module Postlude.Strict (module Strict) where module Postlude.Strict
( module S
) where
import Control.Monad.Trans.State.Strict as Strict import Control.Monad.Trans.State.Strict as S
( State ( State
, StateT, StateT(StateT), runStateT , StateT, StateT(StateT), runStateT
) )
import Control.Monad.Trans.Writer.Strict as Strict import Control.Monad.Trans.Writer.Strict as S
( Writer ( Writer
, WriterT, WriterT(WriterT), runWriterT , WriterT, WriterT(WriterT), runWriterT
) )
import Data.ByteString as Strict import Data.ByteString as S
( ByteString ( ByteString
) )
import Data.Text as Strict import Data.Text as S
( Text ( Text
) )

12
stack.yaml.lock Normal file
View File

@ -0,0 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files
packages: []
snapshots:
- completed:
size: 188042
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2018/3/14.yaml
sha256: 2f1331f747e54e58abbc85754bacaf8dbd5a54444ee87d5757a2bafc0a4afa2f
original: nightly-2018-03-14