|
| GHC.Unboxed | | Portability | GHC | | Stability | experimental | | Maintainer | Bulat Ziganshin <Bulat.Ziganshin@gmail.com> |
|
|
|
| Description |
Unboxed values (simple datatypes that can be stored in ByteArrays, i.e. raw memory buffers allocated inside the Haskell heap) Based on the idea of Oleg Kiselyov (see http:www.haskell.orgpipermailhaskell-cafe2004-July006400.html) |
|
| Synopsis |
|
|
|
| Documentation |
|
|
| That's all we need to unify ST and IO operations! | | | Methods | | | Instances | |
|
|
|
| Type functions which converts universal ST or IO types to IO-specific ones |
|
|
|
|
|
|
| Immutable and mutable byte vectors | | Constructors | |
|
|
|
|
|
|
| Alloc the mutable byte vector |
|
|
| Mutable->immutable byte vector on-place conversion |
|
|
| Immutable->mutable byte vector on-place conversion |
|
|
| Mutable->immutable byte vector conversion which takes a copy of contents |
|
|
| Immutable->mutable byte vector conversion which takes a copy of contents |
|
|
| Recast immutable unboxed vector |
|
|
| Recast mutable unboxed vector |
|
|
|
|
|
| class Unboxed value where | Source |
|
| Unboxed is like Storable, but values are stored in byte vectors (i.e. inside the Haskell heap) | | | Methods | | | Read the value from mutable byte vector at given index | | | | Write the value to mutable byte vector at given index | | | | Read the value from immutable byte vector at given index | | | | How many bytes required to represent values of this type |
| | Instances | |
|
|
| Produced by Haddock version 2.4.2 |