module CorePrelude
(
(Prelude.$)
, (Prelude.$!)
, (Prelude.&&)
, (Prelude.||)
, (Control.Category..)
, Prelude.not
, Prelude.otherwise
, Prelude.fst
, Prelude.snd
, Control.Category.id
, Prelude.maybe
, Prelude.either
, Prelude.flip
, Prelude.const
, Prelude.error
, putStr
, putStrLn
, print
, getArgs
, terror
, Prelude.odd
, Prelude.even
, Prelude.uncurry
, Prelude.curry
, Data.Tuple.swap
, Prelude.until
, Prelude.asTypeOf
, Prelude.undefined
, Prelude.seq
, Prelude.Ord (..)
, Prelude.Eq (..)
, Prelude.Bounded (..)
, Prelude.Enum (..)
, Prelude.Show
, Prelude.Read
, Prelude.Functor (..)
, Prelude.Monad (..)
, (Control.Monad.=<<)
, Data.String.IsString (..)
, Prelude.Num (..)
, Prelude.Real (..)
, Prelude.Integral (..)
, Prelude.Fractional (..)
, Prelude.Floating (..)
, Prelude.RealFrac (..)
, Prelude.RealFloat(..)
, Prelude.Maybe (..)
, Prelude.Ordering (..)
, Prelude.Bool (..)
, Prelude.Char
, Prelude.IO
, Prelude.Either (..)
, ByteString
, LByteString
, Text
, LText
, Map
, HashMap
, IntMap
, Set
, HashSet
, IntSet
, Seq
, Vector
, UVector
, Unbox
, SVector
, Data.Vector.Storable.Storable
, Hashable
, Word
, Word8
, Word32
, Word64
, Prelude.Int
, Int32
, Int64
, Prelude.Integer
, Prelude.Rational
, Prelude.Float
, Prelude.Double
, (Prelude.^)
, (Prelude.^^)
, Prelude.subtract
, Prelude.fromIntegral
, Prelude.realToFrac
, Monoid (..)
, (<>)
, Data.Foldable.Foldable
, Data.Foldable.asum
, Data.Traversable.Traversable
, Control.Arrow.first
, Control.Arrow.second
, (Control.Arrow.***)
, (Control.Arrow.&&&)
, bool
, Data.Maybe.mapMaybe
, Data.Maybe.catMaybes
, Data.Maybe.fromMaybe
, Data.Maybe.isJust
, Data.Maybe.isNothing
, Data.Maybe.listToMaybe
, Data.Maybe.maybeToList
, Data.Either.partitionEithers
, Data.Either.lefts
, Data.Either.rights
, Data.Function.on
, Data.Ord.comparing
, equating
, GHC.Exts.Down (..)
, Control.Applicative.Applicative (..)
, (Control.Applicative.<$>)
, (Control.Applicative.<|>)
, (Control.Monad.>=>)
, Control.Monad.Trans.Class.lift
, Control.Monad.IO.Class.MonadIO
, Control.Monad.IO.Class.liftIO
, Control.Exception.Exception (..)
, Data.Typeable.Typeable (..)
, Control.Exception.SomeException
, Control.Exception.IOException
, Control.Exception.Lifted.throwIO
, Control.Exception.Lifted.try
, Control.Exception.Lifted.tryJust
, Control.Exception.Lifted.catch
, Control.Exception.Lifted.catchJust
, Control.Exception.Lifted.handle
, Control.Exception.Lifted.handleJust
, Control.Exception.Lifted.bracket
, Control.Exception.Lifted.bracket_
, Control.Exception.Lifted.bracketOnError
, Control.Exception.Lifted.onException
, Control.Exception.Lifted.finally
, Control.Exception.Lifted.mask
, Control.Exception.Lifted.mask_
, Control.Exception.Lifted.uninterruptibleMask
, Control.Exception.Lifted.uninterruptibleMask_
, module System.IO.Error
, Prelude.FilePath
, (F.</>)
, (F.<.>)
, Prelude.String
, hash
, hashWithSalt
, readArgs
) where
import qualified Prelude
import Prelude (Char, (.), Eq, Bool)
import Data.Hashable (Hashable, hash, hashWithSalt)
import Data.Vector.Unboxed (Unbox)
import Data.Monoid (Monoid (..))
import qualified Control.Arrow
import Control.Applicative
import qualified Control.Category
import qualified Control.Monad
import qualified Control.Exception
import qualified Control.Exception.Lifted
import qualified Data.Typeable
import qualified Data.Foldable
import qualified Data.Traversable
import Data.Word (Word8, Word32, Word64, Word)
import Data.Int (Int32, Int64)
import qualified Data.Text.IO
import qualified Data.Maybe
import qualified Data.Either
import qualified Data.Ord
import qualified Data.Function
import qualified Data.Tuple
import qualified Data.String
import qualified Control.Monad.Trans.Class
import qualified Control.Monad.IO.Class
import Control.Monad.IO.Class (MonadIO (liftIO))
import Data.ByteString (ByteString)
import qualified Data.ByteString.Lazy
import Data.Text (Text)
import qualified Data.Text.Lazy
import Data.Vector (Vector)
import qualified Data.Vector.Unboxed
import qualified Data.Vector.Storable
import Data.Map (Map)
import Data.Set (Set)
import Data.IntMap (IntMap)
import Data.IntSet (IntSet)
import Data.Sequence (Seq)
import Data.HashMap.Strict (HashMap)
import Data.HashSet (HashSet)
import qualified ReadArgs
import qualified System.FilePath as F
import qualified System.Environment
import qualified Data.Text
import qualified Data.List
import System.IO.Error hiding (catch, try)
import qualified GHC.Exts
#if MIN_VERSION_base(4,7,0)
import Data.Bool (bool)
#endif
#if MIN_VERSION_base(4,5,0)
import Data.Monoid ((<>))
#endif
#if MIN_VERSION_base(4,9,0)
import GHC.Stack (HasCallStack)
#endif
type LText = Data.Text.Lazy.Text
type LByteString = Data.ByteString.Lazy.ByteString
type UVector = Data.Vector.Unboxed.Vector
type SVector = Data.Vector.Storable.Vector
#if !MIN_VERSION_base(4,7,0)
bool :: a -> a -> Bool -> a
bool f t b = if b then t else f
#endif
#if !MIN_VERSION_base(4,5,0)
infixr 6 <>
(<>) :: Monoid w => w -> w -> w
(<>) = mappend
#endif
equating :: Eq a => (b -> a) -> b -> b -> Bool
equating = Data.Function.on (Prelude.==)
getArgs :: MonadIO m => m [Text]
getArgs = liftIO (Data.List.map Data.Text.pack <$> System.Environment.getArgs)
putStr :: MonadIO m => Text -> m ()
putStr = liftIO . Data.Text.IO.putStr
putStrLn :: MonadIO m => Text -> m ()
putStrLn = liftIO . Data.Text.IO.putStrLn
print :: (MonadIO m, Prelude.Show a) => a -> m ()
print = liftIO . Prelude.print
readArgs :: (MonadIO m, ReadArgs.ArgumentTuple a) => m a
readArgs = liftIO ReadArgs.readArgs
#if MIN_VERSION_base(4,9,0)
terror :: HasCallStack => Text -> a
#else
terror :: Text -> a
#endif
terror = Prelude.error . Data.Text.unpack