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. sums :: T a -> [a]

    numeric-prelude MathObj.PowerSum

    No documentation available.

  2. sum1 :: C a => [a] -> a

    numeric-prelude NumericPrelude

    Sum up all elements of a non-empty list. This avoids including a zero which is useful for types where no universal zero is available. ToDo: Should have NonEmpty type.

    \(QC.NonEmpty ns) -> A.sum ns == (A.sum1 ns :: Integer)
    

  3. sum1 :: C a => [a] -> a

    numeric-prelude NumericPrelude.Numeric

    Sum up all elements of a non-empty list. This avoids including a zero which is useful for types where no universal zero is available. ToDo: Should have NonEmpty type.

    \(QC.NonEmpty ns) -> A.sum ns == (A.sum1 ns :: Integer)
    

  4. summary :: HasSummary s a => Lens' s a

    swagger2 Data.Swagger.Lens

    No documentation available.

  5. sumAdtDec :: Name -> [(Name, [Type])] -> Dec

    th-lego THLego.Helpers

    No documentation available.

  6. sumCon :: Name -> [Type] -> Con

    th-lego THLego.Helpers

    No documentation available.

  7. sumAccessorIsLabel :: TyLit -> Type -> Name -> [Type] -> Dec

    th-lego THLego.Instances

    instance (a ~ Maybe Text) => IsLabel "error" (Result -> a)
    

  8. sumConstructorIsLabel :: TyLit -> Type -> Name -> [Type] -> Dec

    th-lego THLego.Instances

    No documentation available.

  9. sumHasField :: TyLit -> Type -> Name -> [Type] -> Dec

    th-lego THLego.Instances

    Instance of HasField for a constructor of a sum ADT, projecting it into a Maybe tuple of its members. Generates code of the following pattern:

    instance HasField "fieldLabel" sumAdt (Maybe projectionType)
    
    • When the amount of member types is 0, projectionType is ().
    • When the amount of member types is 1, it is that member type.
    • Otherwise it is a tuple of those members.

  10. sumMapperIsLabel :: TyLit -> Type -> Name -> [Type] -> Dec

    th-lego THLego.Instances

    Template of IsLabel for instances mapping to mapper functions.

    instance (mapper ~ (Int -> Text -> (Int, Text))) => IsLabel "error" (mapper -> Result -> Result)
    

Page 47 of many | Previous | Next