packages feed

relude-1.0.0.1 / src / Relude / Function.hs

{-# LANGUAGE Safe #-}{- |Copyright:  (c) 2016 Stephen Diehl            (c) 2016-2018 Serokell            (c) 2018-2021 KowainikSPDX-License-Identifier: MITMaintainer:  Kowainik <xrom.xkov@gmail.com>Stability:   StablePortability: PortableThis module reexports very basic and primitive functions and functioncombinators.-}module Relude.Function    ( -- * Reexports      -- ** "Data.Function" reexports      (.)    , ($)    , (&)    , id    , const    , flip    , fix    , on      -- ** "Control.Category" reexports    , (>>>)    , (<<<)      -- ** "Control.Arrow" reexports    , (&&&)      -- * Combinators    , identity    ) whereimport Control.Arrow ((&&&))import Control.Category ((<<<), (>>>))import Data.Function (const, fix, flip, id, on, ($), (&), (.))-- $setup-- >>> import Relude{- | Renamed version of 'Prelude.id'.>>> identity 1010>>> fmap identity [1,2,3][1,2,3]-}identity :: a -> aidentity = id{-# INLINE identity #-}