Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. deriveUniverseSome :: DeriveUniverseSome a => a -> DecsQ

    universe-some Data.Universe.Some.TH

    No documentation available.

  2. deriveAnnotation :: Derivator -> Q Type -> Q [Dec]

    clash-prelude Clash.Annotations.BitRepresentation.Deriving

    No documentation available.

  3. deriveBitPack :: Q Type -> Q [Dec]

    clash-prelude Clash.Annotations.BitRepresentation.Deriving

    Derives BitPack instances for given type. Will account for custom bit representation annotations in the module where the splice is ran. Note that the generated instance might conflict with existing implementations (for example, an instance for Maybe a exists, yielding conflicts for any alternative implementations). Usage:

    data Color = R | G | B
    {-# ANN module (DataReprAnn
    $(liftQ [t|Color|])
    2
    [ ConstrRepr 'R 0b11 0b00 []
    , ConstrRepr 'G 0b11 0b01 []
    , ConstrRepr 'B 0b11 0b10 []
    ]) #-}
    deriveBitPack [t| Color |]
    
    data MaybeColor = JustColor Color
    | NothingColor deriving (Generic,BitPack)
    
    NB: Because of the way template haskell works the order here matters, if you try to derive MaybeColor before deriveBitPack Color it will complain about missing an instance BitSize Color.

  4. deriveBlueSpecAnnotation :: Q Type -> Q [Dec]

    clash-prelude Clash.Annotations.BitRepresentation.Deriving

    Derives bit representation corresponding to the default manner in which BlueSpec stores types.

  5. deriveDefaultAnnotation :: Q Type -> Q [Dec]

    clash-prelude Clash.Annotations.BitRepresentation.Deriving

    Derives bit representation corresponding to the default manner in which Clash stores types.

  6. derivePackedAnnotation :: Q Type -> Q [Dec]

    clash-prelude Clash.Annotations.BitRepresentation.Deriving

    No documentation available.

  7. derivePackedMaybeAnnotation :: DataReprAnn -> Q [Dec]

    clash-prelude Clash.Annotations.BitRepresentation.Deriving

    Derive a compactly represented version of Maybe a.

  8. deriveAutoReg :: Name -> DecsQ

    clash-prelude Clash.Class.AutoReg

    Automatically derives an AutoReg instance for a product type Usage:

    data Pair a b = MkPair { getA :: a, getB :: b } deriving (Generic, NFDataX)
    data Tup3 a b c = MkTup3 { getAB :: Pair a b, getC :: c } deriving (Generic, NFDataX)
    deriveAutoReg ''Pair
    deriveAutoReg ''Tup3
    
    NB: Because of the way template haskell works the order here matters, if you try to deriveAutoReg ''Tup3 before Pair it will complain about missing an instance AutoReg (Pair a b).

  9. deriveAutoReg :: Name -> DecsQ

    clash-prelude Clash.Class.AutoReg.Internal

    Automatically derives an AutoReg instance for a product type Usage:

    data Pair a b = MkPair { getA :: a, getB :: b } deriving (Generic, NFDataX)
    data Tup3 a b c = MkTup3 { getAB :: Pair a b, getC :: c } deriving (Generic, NFDataX)
    deriveAutoReg ''Pair
    deriveAutoReg ''Tup3
    
    NB: Because of the way template haskell works the order here matters, if you try to deriveAutoReg ''Tup3 before Pair it will complain about missing an instance AutoReg (Pair a b).

  10. deriveAutoRegTuples :: [Int] -> DecsQ

    clash-prelude Clash.Class.AutoReg.Internal

    No documentation available.

Page 28 of many | Previous | Next