mirror of
https://github.com/maciej-bendkowski/generic-boltzmann-brain.git
synced 2024-11-26 09:29:11 +03:00
Remove Generic
from the README
This commit is contained in:
parent
17d19f6b21
commit
3ba303ad86
@ -24,7 +24,7 @@ import Data.Boltzmann
|
|||||||
data BinTree
|
data BinTree
|
||||||
= Leaf
|
= Leaf
|
||||||
| Node BinTree BinTree
|
| Node BinTree BinTree
|
||||||
deriving (Generic, Show)
|
deriving (Show)
|
||||||
```
|
```
|
||||||
|
|
||||||
one can construct a corresponding Boltzmann sampler in a single line of code
|
one can construct a corresponding Boltzmann sampler in a single line of code
|
||||||
@ -82,13 +82,13 @@ Consider the following example of lambda terms in [DeBruijn notation](https://en
|
|||||||
data DeBruijn
|
data DeBruijn
|
||||||
= Z
|
= Z
|
||||||
| S DeBruijn
|
| S DeBruijn
|
||||||
deriving (Generic, Show)
|
deriving (Show)
|
||||||
|
|
||||||
data Lambda
|
data Lambda
|
||||||
= Index DeBruijn
|
= Index DeBruijn
|
||||||
| App Lambda Lambda
|
| App Lambda Lambda
|
||||||
| Abs Lambda
|
| Abs Lambda
|
||||||
deriving (Generic, Show)
|
deriving (Show)
|
||||||
```
|
```
|
||||||
|
|
||||||
Suppose that we want a size notion where all constructors have weight
|
Suppose that we want a size notion where all constructors have weight
|
||||||
@ -135,7 +135,7 @@ notions are required. Simply create a `newtype` wrapper and generate a let
|
|||||||
|
|
||||||
``` hs
|
``` hs
|
||||||
newtype BinLambda = MkBinLambda Lambda
|
newtype BinLambda = MkBinLambda Lambda
|
||||||
deriving (Generic, Show)
|
deriving (Show)
|
||||||
|
|
||||||
mkBoltzmannSampler
|
mkBoltzmannSampler
|
||||||
System
|
System
|
||||||
|
Loading…
Reference in New Issue
Block a user