Skip to content

sanjivsahayamrea/registry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Registry

It's functions all the way down

Presentation

This library provides a data structure, a Registry, to control the creation of functions from other functions. You can use this technique to:

  • create applications out of software components ("dependency injection")
  • fine tune JSON encoders/decoders
  • create composable data generators for nested datatypes

The following sections introduce in more details the problem that this library is addressing, the concepts behind the solution and various use-cases which can arise on real projects:

  1. what is the problem?
  2. the concept of a Registry and the resolution algorithm
  3. how does this compare to monad and effects?

Tutorials

  1. use a Registry to compose Hedgehog generators
  2. use a Registry to create applications and define components

How-tos

  1. how to install this library?
  2. how to do mocking?
  3. how to specialize some values in some contexts?
  4. how to make a singleton for a database?
  5. how to allocate resources which must be finalized?
  6. how to initialize components in an application?

Reference guides

  1. main operators and functions
  2. implementation notes

About

Modules as records of functions for Haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%