bits and files

This commit is contained in:
Stephen Diehl
2016-12-10 13:28:32 +00:00
parent b32c80d0bb
commit 8995aa71f3
6 changed files with 228 additions and 5 deletions
+32 -4
View File
@@ -32,13 +32,41 @@ data Proxy (t :: k) = Proxy
#### Symbol
* symbolVal
* someSymbolVal
```haskell
symbolVal :: KnownSymbol n => proxy n -> String
```
*Example*:
```haskell
b :: String
b = symbolVal (Proxy :: Proxy "foo")
```
```haskell
someSymbolVal :: String -> SomeSymbol
```
*Example*:
#### Nat
* natVal
* someNatVal
```haskell
natVal :: KnownNat n => proxy n -> Integer
```
*Example*:
```haskell
a :: Integer
a = natVal (Proxy :: Proxy 1)
```
```haskell
someNatVal :: Integer -> Maybe SomeNat
```
*Example*:
#### Type Equality