Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Orphan instances to be moved into other libraries
Documentation
sumToMaybe :: (() :+ a) -> Maybe a Source #
maybeToSum :: Maybe a -> () :+ a Source #
Orphan instances
Zip Product Source # | |
Zip Sum Source # | |
KnownNat n => Keyed (Vector n) Source # | |
Zip (Vector n) Source # | |
Newtype (Par1 t) Source # | |
KnownNat n => Pointed (Vector n) Source # | |
Pretty a => Pretty (Par1 a) Source # | |
pPrintPrec :: PrettyLevel -> Rational -> Par1 a -> Doc Source # pPrint :: Par1 a -> Doc Source # pPrintList :: PrettyLevel -> [Par1 a] -> Doc Source # | |
Pretty (U1 a) Source # | |
pPrintPrec :: PrettyLevel -> Rational -> U1 a -> Doc Source # pPrint :: U1 a -> Doc Source # pPrintList :: PrettyLevel -> [U1 a] -> Doc Source # | |
Foldable ((->) Void) Source # | |
fold :: Monoid m => (Void -> m) -> m Source # foldMap :: Monoid m => (a -> m) -> (Void -> a) -> m Source # foldMap' :: Monoid m => (a -> m) -> (Void -> a) -> m Source # foldr :: (a -> b -> b) -> b -> (Void -> a) -> b Source # foldr' :: (a -> b -> b) -> b -> (Void -> a) -> b Source # foldl :: (b -> a -> b) -> b -> (Void -> a) -> b Source # foldl' :: (b -> a -> b) -> b -> (Void -> a) -> b Source # foldr1 :: (a -> a -> a) -> (Void -> a) -> a Source # foldl1 :: (a -> a -> a) -> (Void -> a) -> a Source # toList :: (Void -> a) -> [a] Source # null :: (Void -> a) -> Bool Source # length :: (Void -> a) -> Int Source # elem :: Eq a => a -> (Void -> a) -> Bool Source # maximum :: Ord a => (Void -> a) -> a Source # minimum :: Ord a => (Void -> a) -> a Source # | |
(Foldable ((->) m), Foldable ((->) n)) => Foldable ((->) (m :* n)) Source # | |
fold :: Monoid m0 => ((m :* n) -> m0) -> m0 Source # foldMap :: Monoid m0 => (a -> m0) -> ((m :* n) -> a) -> m0 Source # foldMap' :: Monoid m0 => (a -> m0) -> ((m :* n) -> a) -> m0 Source # foldr :: (a -> b -> b) -> b -> ((m :* n) -> a) -> b Source # foldr' :: (a -> b -> b) -> b -> ((m :* n) -> a) -> b Source # foldl :: (b -> a -> b) -> b -> ((m :* n) -> a) -> b Source # foldl' :: (b -> a -> b) -> b -> ((m :* n) -> a) -> b Source # foldr1 :: (a -> a -> a) -> ((m :* n) -> a) -> a Source # foldl1 :: (a -> a -> a) -> ((m :* n) -> a) -> a Source # toList :: ((m :* n) -> a) -> [a] Source # null :: ((m :* n) -> a) -> Bool Source # length :: ((m :* n) -> a) -> Int Source # elem :: Eq a => a -> ((m :* n) -> a) -> Bool Source # maximum :: Ord a => ((m :* n) -> a) -> a Source # minimum :: Ord a => ((m :* n) -> a) -> a Source # | |
(Foldable ((->) m), Foldable ((->) n)) => Foldable ((->) (m :+ n)) Source # | |
fold :: Monoid m0 => ((m :+ n) -> m0) -> m0 Source # foldMap :: Monoid m0 => (a -> m0) -> ((m :+ n) -> a) -> m0 Source # foldMap' :: Monoid m0 => (a -> m0) -> ((m :+ n) -> a) -> m0 Source # foldr :: (a -> b -> b) -> b -> ((m :+ n) -> a) -> b Source # foldr' :: (a -> b -> b) -> b -> ((m :+ n) -> a) -> b Source # foldl :: (b -> a -> b) -> b -> ((m :+ n) -> a) -> b Source # foldl' :: (b -> a -> b) -> b -> ((m :+ n) -> a) -> b Source # foldr1 :: (a -> a -> a) -> ((m :+ n) -> a) -> a Source # foldl1 :: (a -> a -> a) -> ((m :+ n) -> a) -> a Source # toList :: ((m :+ n) -> a) -> [a] Source # null :: ((m :+ n) -> a) -> Bool Source # length :: ((m :+ n) -> a) -> Int Source # elem :: Eq a => a -> ((m :+ n) -> a) -> Bool Source # maximum :: Ord a => ((m :+ n) -> a) -> a Source # minimum :: Ord a => ((m :+ n) -> a) -> a Source # | |
KnownNat n => Foldable ((->) (Finite n)) Source # | |
fold :: Monoid m => (Finite n -> m) -> m Source # foldMap :: Monoid m => (a -> m) -> (Finite n -> a) -> m Source # foldMap' :: Monoid m => (a -> m) -> (Finite n -> a) -> m Source # foldr :: (a -> b -> b) -> b -> (Finite n -> a) -> b Source # foldr' :: (a -> b -> b) -> b -> (Finite n -> a) -> b Source # foldl :: (b -> a -> b) -> b -> (Finite n -> a) -> b Source # foldl' :: (b -> a -> b) -> b -> (Finite n -> a) -> b Source # foldr1 :: (a -> a -> a) -> (Finite n -> a) -> a Source # foldl1 :: (a -> a -> a) -> (Finite n -> a) -> a Source # toList :: (Finite n -> a) -> [a] Source # null :: (Finite n -> a) -> Bool Source # length :: (Finite n -> a) -> Int Source # elem :: Eq a => a -> (Finite n -> a) -> Bool Source # maximum :: Ord a => (Finite n -> a) -> a Source # minimum :: Ord a => (Finite n -> a) -> a Source # | |
Foldable ((->) a) => Foldable ((->) (Maybe a)) Source # | |
fold :: Monoid m => (Maybe a -> m) -> m Source # foldMap :: Monoid m => (a0 -> m) -> (Maybe a -> a0) -> m Source # foldMap' :: Monoid m => (a0 -> m) -> (Maybe a -> a0) -> m Source # foldr :: (a0 -> b -> b) -> b -> (Maybe a -> a0) -> b Source # foldr' :: (a0 -> b -> b) -> b -> (Maybe a -> a0) -> b Source # foldl :: (b -> a0 -> b) -> b -> (Maybe a -> a0) -> b Source # foldl' :: (b -> a0 -> b) -> b -> (Maybe a -> a0) -> b Source # foldr1 :: (a0 -> a0 -> a0) -> (Maybe a -> a0) -> a0 Source # foldl1 :: (a0 -> a0 -> a0) -> (Maybe a -> a0) -> a0 Source # toList :: (Maybe a -> a0) -> [a0] Source # null :: (Maybe a -> a0) -> Bool Source # length :: (Maybe a -> a0) -> Int Source # elem :: Eq a0 => a0 -> (Maybe a -> a0) -> Bool Source # maximum :: Ord a0 => (Maybe a -> a0) -> a0 Source # minimum :: Ord a0 => (Maybe a -> a0) -> a0 Source # | |
Foldable ((->) ()) Source # | |
fold :: Monoid m => (() -> m) -> m Source # foldMap :: Monoid m => (a -> m) -> (() -> a) -> m Source # foldMap' :: Monoid m => (a -> m) -> (() -> a) -> m Source # foldr :: (a -> b -> b) -> b -> (() -> a) -> b Source # foldr' :: (a -> b -> b) -> b -> (() -> a) -> b Source # foldl :: (b -> a -> b) -> b -> (() -> a) -> b Source # foldl' :: (b -> a -> b) -> b -> (() -> a) -> b Source # foldr1 :: (a -> a -> a) -> (() -> a) -> a Source # foldl1 :: (a -> a -> a) -> (() -> a) -> a Source # toList :: (() -> a) -> [a] Source # null :: (() -> a) -> Bool Source # length :: (() -> a) -> Int Source # elem :: Eq a => a -> (() -> a) -> Bool Source # maximum :: Ord a => (() -> a) -> a Source # minimum :: Ord a => (() -> a) -> a Source # | |
Foldable ((->) Bool) Source # | |
fold :: Monoid m => (Bool -> m) -> m Source # foldMap :: Monoid m => (a -> m) -> (Bool -> a) -> m Source # foldMap' :: Monoid m => (a -> m) -> (Bool -> a) -> m Source # foldr :: (a -> b -> b) -> b -> (Bool -> a) -> b Source # foldr' :: (a -> b -> b) -> b -> (Bool -> a) -> b Source # foldl :: (b -> a -> b) -> b -> (Bool -> a) -> b Source # foldl' :: (b -> a -> b) -> b -> (Bool -> a) -> b Source # foldr1 :: (a -> a -> a) -> (Bool -> a) -> a Source # foldl1 :: (a -> a -> a) -> (Bool -> a) -> a Source # toList :: (Bool -> a) -> [a] Source # null :: (Bool -> a) -> Bool Source # length :: (Bool -> a) -> Int Source # elem :: Eq a => a -> (Bool -> a) -> Bool Source # maximum :: Ord a => (Bool -> a) -> a Source # minimum :: Ord a => (Bool -> a) -> a Source # | |
Newtype ((a :*: b) t) Source # | |
Newtype ((a :+: b) t) Source # | |
(Pretty (f a), Pretty (g a)) => Pretty ((f :*: g) a) Source # | |
pPrintPrec :: PrettyLevel -> Rational -> (f :*: g) a -> Doc Source # pPrint :: (f :*: g) a -> Doc Source # pPrintList :: PrettyLevel -> [(f :*: g) a] -> Doc Source # | |
Newtype ((a :.: b) t) Source # | |
Pretty (g (f a)) => Pretty ((g :.: f) a) Source # | |
pPrintPrec :: PrettyLevel -> Rational -> (g :.: f) a -> Doc Source # pPrint :: (g :.: f) a -> Doc Source # pPrintList :: PrettyLevel -> [(g :.: f) a] -> Doc Source # |