]> Git — Sourcephile - julm/worksheets.git/blob - src/Prelude.hs
init
[julm/worksheets.git] / src / Prelude.hs
1 {-# LANGUAGE PackageImports #-}
2
3 module Prelude (
4 -- module BasePrelude
5 module Prelude,
6 Bounded (..),
7 Double,
8 Enum,
9 Fractional (..),
10 Integral (..),
11 Num (..),
12 Rational,
13 Real,
14 error,
15 FilePath,
16 fromIntegral,
17 IsString (..),
18 String,
19 toRational,
20 IO,
21 Char,
22 Monad (..),
23 forM,
24 forM_,
25 (++),
26 module Data.Bool,
27 module Data.Eq,
28 module Data.Function,
29 module Data.Functor,
30 module Data.Ord,
31 module Data.Semigroup,
32 )
33 where
34
35 import Control.Monad
36 import Data.Bool
37 import Data.Eq
38 import Data.Function
39 import Data.Functor
40 import Data.Ord
41 import Data.Semigroup
42 import Data.String
43 import "base" Prelude as BasePrelude
44
45 -- | Reverse function composition (do f first, then g)
46 (>>>) :: (a -> b) -> (b -> c) -> a -> c
47
48 infixr 9 >>>
49 (f >>> g) x = g (f x)
50 {-# INLINE (>>>) #-}