Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
strip :: Eq a => [a] -> [a] -> [a] Source #
A variant of stripPrefix
that defaults to id if the prefix is not found.
map1 :: (a -> a) -> [a] -> [a] Source #
Version of map that applies the function to the first element only
Typeclass of things we can generate empty values of.
This is used to quickly build values from parameters to PowerDNS, because
you often only need a few fields.
empty { someField = Just 1
, otherField = Just "foo" }
Nothing
Produce an empty value
Instances
Empty Comment Source # | |
Defined in PowerDNS.API.Zones | |
Empty Zone Source # | |
Defined in PowerDNS.API.Zones | |
Empty Server Source # | |
Defined in PowerDNS.API.Servers | |
Empty Cryptokey Source # | |
Defined in PowerDNS.API.Cryptokeys | |
Empty (Maybe a) Source # | |
Defined in PowerDNS.Internal.Utils |
Instances
GEmpty (U1 :: Type -> Type) Source # | |
Defined in PowerDNS.Internal.Utils | |
Empty a => GEmpty (K1 i a :: Type -> Type) Source # | |
Defined in PowerDNS.Internal.Utils | |
(GEmpty f, GEmpty g) => GEmpty (f :*: g) Source # | |
Defined in PowerDNS.Internal.Utils | |
GEmpty f => GEmpty (M1 i t f) Source # | |
Defined in PowerDNS.Internal.Utils |