indexed-list-literals alternatives and similar packages
Based on the "Data" category.
Alternatively, view indexed-list-literals alternatives based on common mentions on social networks and blogs.
-
lens
Lenses, Folds, and Traversals - Join us on web.libera.chat #haskell-lens -
semantic-source
Parsing, analyzing, and comparing source code across many languages -
hnix
A Haskell re-implementation of the Nix expression language -
code-builder
Packages for defining APIs, running them, generating client code and documentation. -
text
Haskell library for space- and time-efficient operations over Unicode text. -
massiv
Efficient Haskell Arrays featuring Parallel computation -
unordered-containers
Efficient hashing-based container types -
compendium-client
Mu (μ) is a purely functional framework for building micro services. -
cassava
A CSV parsing and encoding library optimized for ease of use and high performance -
holmes
A reference library for constraint-solving with propagators and CDCL. -
hashable
A class for types that can be converted to a hash value -
binary
Efficient, pure binary serialisation using ByteStrings in Haskell. -
primitive
This package provides various primitive memory-related operations. -
resource-pool
A high-performance striped resource pooling implementation for Haskell -
network-msgpack-rpc
A MessagePack-RPC Implementation -
hashtables
Mutable hash tables for Haskell, in the ST monad -
json-autotype
Automatic Haskell type inference from JSON input -
discrimination
Fast linear time sorting and discrimination for a large class of data types -
certificate
Certificate and Key Reader/Writer in haskell -
reflection
Reifies arbitrary Haskell terms into types that can be reflected back into terms -
dependent-sum
Dependent sums and supporting typeclasses for comparing and displaying them -
IORefCAS
A collection of different packages for CAS based data structures. -
audiovisual
Extensible records, variants, structs, effects, tangles -
dependent-map
Dependently-typed finite maps (partial dependent products) -
text-icu
This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text. -
bifunctors
Haskell 98 bifunctors, bifoldables and bitraversables -
orgmode-parse
Attoparsec parser combinators for parsing org-mode structured text! -
protobuf
An implementation of Google's Protocol Buffers in Haskell. -
streaming
An optimized general monad transformer for streaming applications, with a simple prelude of functions -
safecopy
An extension to Data.Serialize with built-in version control -
avro
Haskell Avro Encoding and Decoding Native Support (no RPC) -
uuid-types
A Haskell library for creating, printing and parsing UUIDs -
uuid
A Haskell library for creating, printing and parsing UUIDs -
scientific
Arbitrary-precision floating-point numbers represented using scientific notation
Access the most powerful time series database as a service
Do you think we are missing an alternative of indexed-list-literals or a related project?
README
Indexed List Literals
This is an incredibly simple library, which makes writing lists where the length is known at compile time a little bit nicer.
If you write a function with the signature
vector :: ILL input length output => input -> Vector length output
then
v :: Vector 3 Int
v = vector (1,2,3)
x :: Vector 0 Double
x = vector $ ZeroTuple @Double
y :: Vector 1 Double
y = vector (Only 1)
z :: Vector 2 String
z = vector ("Hello", "World")
If want matrix literals you can write a function
matrix :: (ILL row width ty, ILL matrix height row) => matrix -> Matrix width height ty
then
a :: Matrix 0 0 Bool
a = matrix $ ZeroTuple @(ZeroTuple Bool)
b :: Matrix 1 2 String
b = matrix $ Only ("Hello","World")
c :: Matrix 4 5 Double
c = matrix ((1,2,3,0,0)
,(4,5,6,0,0)
,(7,8,9,0,0)
,(0,0,0,0,0))
The full code is in test//Docs.hs
This only supports literals of length up to 20, though that can be easily extended using the code generator in src//Data//IndexedListLiterals.hs