Copyright | (c) Grant Weyburne 2016 |
---|---|
License | BSD-3 |
Safe Haskell | None |
Language | Haskell2010 |
handles a tuple of size one. this is a special type that distinguishes a singleton value from a ntuple will be replaced by Solo when ghc 9.2 is standard and generics-sop is updated to support Solo
Documentation
One holds a single value. To use wprint we need a SOP Generics instance
One a |
Instances
Monad One Source # | |
Functor One Source # | |
Applicative One Source # | |
Foldable One Source # | |
Defined in Primus.One fold :: Monoid m => One m -> m # foldMap :: Monoid m => (a -> m) -> One a -> m # foldMap' :: Monoid m => (a -> m) -> One a -> m # foldr :: (a -> b -> b) -> b -> One a -> b # foldr' :: (a -> b -> b) -> b -> One a -> b # foldl :: (b -> a -> b) -> b -> One a -> b # foldl' :: (b -> a -> b) -> b -> One a -> b # foldr1 :: (a -> a -> a) -> One a -> a # foldl1 :: (a -> a -> a) -> One a -> a # elem :: Eq a => a -> One a -> Bool # maximum :: Ord a => One a -> a # | |
Traversable One Source # | |
NFData1 One Source # | |
Defined in Primus.One | |
Traversable1 One Source # | |
Apply One Source # | |
Foldable1 One Source # | |
Eq a => Eq (One a) Source # | |
Data a => Data (One a) Source # | |
Defined in Primus.One gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> One a -> c (One a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (One a) # dataTypeOf :: One a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (One a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (One a)) # gmapT :: (forall b. Data b => b -> b) -> One a -> One a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> One a -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> One a -> r # gmapQ :: (forall d. Data d => d -> u) -> One a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> One a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> One a -> m (One a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> One a -> m (One a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> One a -> m (One a) # | |
Ord a => Ord (One a) Source # | |
Read a => Read (One a) Source # | |
Show a => Show (One a) Source # | |
Generic (One a) Source # | |
Semigroup a => Semigroup (One a) Source # | |
Monoid a => Monoid (One a) Source # | |
NFData a => NFData (One a) Source # | |
Defined in Primus.One | |
ITupleC (One a1) Source # | |
Generic1 One Source # | |
type Rep (One a) Source # | |
Defined in Primus.One | |
type Rep1 One Source # | |
Defined in Primus.One |