packages feed

tilia-0.2.0.0: corpora/vendored/pragma/declaration/pragmas-naming-operators-out.hs

{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE TypeOperators #-}

module Circuit.Gate where

data (:&) a b = Gate a b
{-# ANN type (:&) "gate" #-}

pattern (:&&) :: a -> b -> a :& b
pattern x :&& y = Gate x y

{-# COMPLETE (:&&) :: (:&) #-}

(<&>) :: Bool -> Bool -> Bool
(<&>) = (&&)
{-# INLINE (<&>) #-}
{-# ANN (<&>) "conjunction" #-}