Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
:<>: ) :: ErrorMessage -> ErrorMessage -> ErrorMessageclash-prelude Clash.Explicit.Prelude.Safe Put two pieces of error message next to each other.
pattern (
:> ) :: a -> Vec n a -> Vec (n + 1) aclash-prelude Clash.Explicit.Prelude.Safe Add an element to the head of a vector.
>>> 3:>4:>5:>Nil 3 :> 4 :> 5 :> Nil >>> let x = 3:>4:>5:>Nil >>> :t x x :: Num a => Vec 3 a
Can be used as a pattern:>>> let f (x :> y :> _) = x + y >>> :t f f :: Num a => Vec ((n + 1) + 1) a -> a >>> f (3:>4:>5:>6:>7:>Nil) 7
Also in conjunctions with (:<):>>> let g (a :> b :> (_ :< y :< x)) = a + b + x + y >>> :t g g :: Num a => Vec ((((n + 1) + 1) + 1) + 1) a -> a >>> g (1:>2:>3:>4:>5:>Nil) 12
type (name :: k1)
::: (a :: k) = aclash-prelude Clash.NamedTypes Annotate a type with a name
(
:$$: ) :: ErrorMessage -> ErrorMessage -> ErrorMessageclash-prelude Clash.Prelude Stack two pieces of error message on top of each other.
pattern (
:< ) :: Vec n a -> a -> Vec (n + 1) aclash-prelude Clash.Prelude Add an element to the tail of a vector.
>>> (3:>4:>5:>Nil) :< 1 3 :> 4 :> 5 :> 1 :> Nil >>> let x = (3:>4:>5:>Nil) :< 1 >>> :t x x :: Num a => Vec 4 a
Can be used as a pattern:>>> let f (_ :< y :< x) = y + x >>> :t f f :: Num a => Vec ((n + 1) + 1) a -> a >>> f (3:>4:>5:>6:>7:>Nil) 13
Also in conjunctions with (:>):>>> let g (a :> b :> (_ :< y :< x)) = a + b + x + y >>> :t g g :: Num a => Vec ((((n + 1) + 1) + 1) + 1) a -> a >>> g (1:>2:>3:>4:>5:>Nil) 12
(
:<>: ) :: ErrorMessage -> ErrorMessage -> ErrorMessageclash-prelude Clash.Prelude Put two pieces of error message next to each other.
pattern (
:> ) :: a -> Vec n a -> Vec (n + 1) aclash-prelude Clash.Prelude Add an element to the head of a vector.
>>> 3:>4:>5:>Nil 3 :> 4 :> 5 :> Nil >>> let x = 3:>4:>5:>Nil >>> :t x x :: Num a => Vec 3 a
Can be used as a pattern:>>> let f (x :> y :> _) = x + y >>> :t f f :: Num a => Vec ((n + 1) + 1) a -> a >>> f (3:>4:>5:>6:>7:>Nil) 7
Also in conjunctions with (:<):>>> let g (a :> b :> (_ :< y :< x)) = a + b + x + y >>> :t g g :: Num a => Vec ((((n + 1) + 1) + 1) + 1) a -> a >>> g (1:>2:>3:>4:>5:>Nil) 12
(
:$$: ) :: ErrorMessage -> ErrorMessage -> ErrorMessageclash-prelude Clash.Prelude.Safe Stack two pieces of error message on top of each other.
pattern (
:< ) :: Vec n a -> a -> Vec (n + 1) aclash-prelude Clash.Prelude.Safe Add an element to the tail of a vector.
>>> (3:>4:>5:>Nil) :< 1 3 :> 4 :> 5 :> 1 :> Nil >>> let x = (3:>4:>5:>Nil) :< 1 >>> :t x x :: Num a => Vec 4 a
Can be used as a pattern:>>> let f (_ :< y :< x) = y + x >>> :t f f :: Num a => Vec ((n + 1) + 1) a -> a >>> f (3:>4:>5:>6:>7:>Nil) 13
Also in conjunctions with (:>):>>> let g (a :> b :> (_ :< y :< x)) = a + b + x + y >>> :t g g :: Num a => Vec ((((n + 1) + 1) + 1) + 1) a -> a >>> g (1:>2:>3:>4:>5:>Nil) 12
(
:<>: ) :: ErrorMessage -> ErrorMessage -> ErrorMessageclash-prelude Clash.Prelude.Safe Put two pieces of error message next to each other.