Hoogle Search

Within LTS Haskell 24.25 (ghc-9.10.3)

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

  1. 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)
    

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

    swagger2 Data.Swagger.Lens

    No documentation available.

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

    th-lego THLego.Helpers

    No documentation available.

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

    th-lego THLego.Helpers

    No documentation available.

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

    th-lego THLego.Instances

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

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

    th-lego THLego.Instances

    No documentation available.

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

  8. 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)
    

  9. sumMapper :: Name -> Int -> Exp

    th-lego THLego.Lambdas

    Lambda expression, which maps a sum member by index.

  10. sumV :: (Foldable f, AdditiveGroup v) => f v -> v

    vector-space Data.AdditiveGroup

    Sum over several vectors

Page 47 of many | Previous | Next