packages feed

papa-0.7.0: src/Papa/Base/Prelude.hs

{-# LANGUAGE ExplicitNamespaces #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -Wall #-}

-- | The total part of "Prelude".
--
-- The partial functions of "Prelude" are not re-exported. Their total
-- replacements are in "Papa.Base.Data.Integral" (@div@, @mod@, @divMod@,
-- @quot@, @rem@, @quotRem@, @(^)@), "Papa.Base.Data.Fractional" (@(/)@,
-- @recip@, @(^^)@), "Papa.Base.Data.List" (@cycle@),
-- "Papa.Base.Data.IntCast" (@intCast@, for @fromIntegral@),
-- "Papa.Base.Data.RealFrac" (@truncate@, @round@, @ceiling@, @floor@,
-- @properFraction@, @toRational@, @realToFrac@),
-- "Papa.Base.Data.Enum" (@succ@, @pred@) and
-- "Papa.Base.Text.Read" (@readIO@).
--
-- The I/O functions of "Prelude" (@putStr@, @putStrLn@, @print@, @getLine@,
-- @getContents@, @readFile@, @writeFile@, @appendFile@, @interact@, @readLn@,
-- @readIO@) throw their 'IOError's, and some read lazily; they are in
-- "Papa.Unsafe.IO".
module Papa.Base.Prelude (
  module P,
  type (~),
) where

import Data.Type.Equality (type (~))
import Prelude as P (
  Applicative,
  Bool (
    False,
    True
  ),
  Bounded (maxBound, minBound),
  Char,
  Double,
  Either (
    Left,
    Right
  ),
  Enum,
  Eq,
  FilePath,
  Float,
  Floating,
  Foldable,
  Fractional,
  Functor,
  IO,
  IOError,
  Int,
  Integer,
  Integral,
  Maybe (
    Just,
    Nothing
  ),
  Monad,
  Monoid,
  Num,
  Ord,
  Ordering (
    EQ,
    GT,
    LT
  ),
  Rational,
  Real,
  RealFloat,
  RealFrac,
  Show,
  ShowS,
  Traversable,
  Word,
  abs,
  acos,
  acosh,
  all,
  and,
  any,
  asin,
  asinh,
  atan,
  atan2,
  atanh,
  break,
  compare,
  cos,
  cosh,
  curry,
  decodeFloat,
  drop,
  dropWhile,
  either,
  elem,
  encodeFloat,
  even,
  exp,
  exponent,
  filter,
  floatDigits,
  floatRadix,
  floatRange,
  fmap,
  foldMap,
  foldl,
  foldr,
  fromRational,
  gcd,
  getChar,
  ioError,
  isDenormalized,
  isIEEE,
  isInfinite,
  isNaN,
  isNegativeZero,
  lcm,
  lines,
  log,
  logBase,
  max,
  maybe,
  mempty,
  min,
  negate,
  not,
  notElem,
  null,
  odd,
  otherwise,
  pi,
  product,
  pure,
  replicate,
  scaleFloat,
  seq,
  sequenceA,
  show,
  showParen,
  shows,
  showsPrec,
  significand,
  signum,
  sin,
  sinh,
  span,
  splitAt,
  sqrt,
  subtract,
  sum,
  take,
  takeWhile,
  tan,
  tanh,
  toInteger,
  traverse,
  uncurry,
  unlines,
  until,
  unwords,
  unzip3,
  userError,
  words,
  zip,
  zip3,
  zipWith,
  zipWith3,
  ($),
  ($!),
  (&&),
  (*),
  (**),
  (+),
  (-),
  (/=),
  (<),
  (<$),
  (<$>),
  (<*>),
  (<=),
  (==),
  (>),
  (>=),
  (||),
 )