Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Collection size.
For TermSize
see Agda.Syntax.Internal.
Synopsis
- class Sized a where
- data SizedThing a = SizedThing {
- theSize :: !Int
- sizedThing :: a
- sizeThing :: Sized a => a -> SizedThing a
Documentation
The size of a collection (i.e., its length).
Nothing
Instances
Sized ModuleName Source # | |
Defined in Agda.Syntax.Abstract.Name size :: ModuleName -> Int Source # | |
Sized QName Source # | |
Sized TopLevelModuleName Source # | |
Defined in Agda.Syntax.Concrete.Name size :: TopLevelModuleName -> Int Source # | |
Sized OccursWhere Source # | |
Defined in Agda.TypeChecking.Positivity.Occurrence size :: OccursWhere -> Int Source # | |
Sized Permutation Source # | |
Defined in Agda.Utils.Permutation size :: Permutation -> Int Source # | |
Sized IntSet Source # | |
Sized a => Sized (Abs a) Source # | |
Sized (Tele a) Source # | The size of a telescope is its length (as a list). |
Sized (List1 a) Source # | |
Sized (SizedThing a) Source # | Return the cached size. |
Defined in Agda.Utils.Size size :: SizedThing a -> Int Source # | |
Sized (IntMap a) Source # | |
Sized (Seq a) Source # | |
Sized (Set a) Source # | |
Sized (HashSet a) Source # | |
Defined in Agda.Utils.Size | |
Sized [a] Source # | |
Defined in Agda.Utils.Size | |
Sized (Map k a) Source # | |
Sized (HashMap k a) Source # | |
Defined in Agda.Utils.Size |
data SizedThing a Source #
Thing decorated with its size.
The thing should fit into main memory, thus, the size is an Int
.
SizedThing | |
|
Instances
Null a => Null (SizedThing a) Source # | |
Defined in Agda.Utils.Size empty :: SizedThing a Source # null :: SizedThing a -> Bool Source # | |
Sized (SizedThing a) Source # | Return the cached size. |
Defined in Agda.Utils.Size size :: SizedThing a -> Int Source # |
sizeThing :: Sized a => a -> SizedThing a Source #
Cache the size of an object.