Skip to content

Commit

Permalink
Writing about the feature in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorcsimma committed Dec 23, 2023
1 parent 26c1e04 commit d1325e7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/source/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,23 @@ createRangeCase low high
False -> Nothing
```

## Explicit type singatures

Haskell's `::` syntax for explicit type signatures can be achieved using the `the` function in Haskell.Prim.

Agda:
```agda
five : Nat
five = the (Nat -> Nat) id 5
{-# COMPILE AGDA2HS five #-}
```

Haskell:
```hs
five :: Natural
five = (id :: Natural -> Natural) 5
```

(0-Quantity)=
## 0-Quantity Parameters

Expand Down

0 comments on commit d1325e7

Please sign in to comment.