packages feed

relude-1.2.2.1 / src / Relude / Function.hs

{-# LANGUAGE Safe #-}{- |Module                  : Relude.FunctionCopyright               : (c) 2016 Stephen Diehl                          (c) 2016-2018 Serokell                          (c) 2018-2023 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 #-}