Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module Hjugement.Majority
- class IsList l where
Documentation
module Hjugement.Majority
The IsList
class and its methods are intended to be used in
conjunction with the OverloadedLists extension.
Since: 4.7.0.0
The fromList
function constructs the structure l
from the given
list of Item l
fromListN :: Int -> [Item l] -> l #
The fromListN
function takes the input list's length as a hint. Its
behaviour should be equivalent to fromList
. The hint can be used to
construct the structure l
more efficiently compared to fromList
. If
the given hint does not equal to the input list's length the behaviour of
fromListN
is not specified.
The toList
function extracts a list of Item l
from the structure l
.
It should satisfy fromList . toList = id.
IsList CallStack | Be aware that 'fromList . toList = id' only for unfrozen Since: 4.9.0.0 |
IsList Version | Since: 4.8.0.0 |
IsList [a] | |
IsList (NonEmpty a) | |
Ord a => IsList (Set a) | |
(Ord grade, Show grade) => IsList (Merit grade) # | |
Ord k => IsList (Map k v) | |
(Ord prop, Show prop) => IsList (Merits prop grade) # | |
(Ord judge, Show judge) => IsList (Opinions prop grade judge) # | |