html
This commit is contained in:
13
src/Misc/CofreeF.hs
Normal file
13
src/Misc/CofreeF.hs
Normal file
@@ -0,0 +1,13 @@
|
||||
{-# LANGUAGE PatternSynonyms #-}
|
||||
module Misc.CofreeF
|
||||
( pattern (:<$)
|
||||
)
|
||||
where
|
||||
--------------------------------------------------------------------------------
|
||||
import Control.Comonad.Trans.Cofree qualified as Trans.Cofree
|
||||
import Control.Comonad.Trans.Cofree (CofreeF)
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
pattern (:<$) :: a -> f b -> Trans.Cofree.CofreeF f a b
|
||||
pattern a :<$ b = a Trans.Cofree.:< b
|
||||
|
||||
Reference in New Issue
Block a user