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.

  1. (:<>:) :: ErrorMessage -> ErrorMessage -> ErrorMessage

    clash-prelude Clash.Explicit.Prelude.Safe

    Put two pieces of error message next to each other.

  2. pattern (:>) :: a -> Vec n a -> Vec (n + 1) a

    clash-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
    

  3. type (name :: k1) ::: (a :: k) = a

    clash-prelude Clash.NamedTypes

    Annotate a type with a name

  4. (:$$:) :: ErrorMessage -> ErrorMessage -> ErrorMessage

    clash-prelude Clash.Prelude

    Stack two pieces of error message on top of each other.

  5. pattern (:<) :: Vec n a -> a -> Vec (n + 1) a

    clash-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
    

  6. (:<>:) :: ErrorMessage -> ErrorMessage -> ErrorMessage

    clash-prelude Clash.Prelude

    Put two pieces of error message next to each other.

  7. pattern (:>) :: a -> Vec n a -> Vec (n + 1) a

    clash-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
    

  8. (:$$:) :: ErrorMessage -> ErrorMessage -> ErrorMessage

    clash-prelude Clash.Prelude.Safe

    Stack two pieces of error message on top of each other.

  9. pattern (:<) :: Vec n a -> a -> Vec (n + 1) a

    clash-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
    

  10. (:<>:) :: ErrorMessage -> ErrorMessage -> ErrorMessage

    clash-prelude Clash.Prelude.Safe

    Put two pieces of error message next to each other.

Page 51 of many | Previous | Next