| Copyright | (c) 2019-2020 Veronika Romashkina |
|---|---|
| License | MPL-2.0 |
| Maintainer | Veronika Romashkina <vrom911@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Slist.Size
Description
Lists size representation.
Documentation
Data type that represents lists size/lengths.
| List | length | Size |
|---|---|---|
[] | 0 | Size 0 |
[1..10] | 10 | Size 10 |
[1..] | hangs | Infinity |
Note, that size is not suppose to have negative value, so use
the Size constructor carefully.
Instances
| Bounded Size Source # | The minimum possible size for the list is empty list: |
| Eq Size Source # | |
| Num Size Source # | Efficient implementations of numeric operations with |
| Ord Size Source # | |
| Read Size Source # | |
| Show Size Source # | |