summaryrefslogtreecommitdiff
path: root/lore/Alpha.hs
blob: 67bfa35c1fcce9cb4fee82309fe695b788b7434b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{-# LANGUAGE NoImplicitPrelude #-}
-- | Commonly useful functions, a Prelude replacement.
module Alpha (
  -- * Re-export Protolude
  module X
  -- * General functions
  , (/@)
  -- * Debugging tools
  , say
  ) where

import Protolude as X
import Data.String

-- | Debugging printf
say :: String -> IO ()
say msg = putStrLn msg

-- | Alias for map, fmap, <$>
(/@) :: Functor f => (a -> b) -> f a -> f b
(/@) = fmap