Skip to content

Commit

Permalink
Update Logbook.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yveshauser authored Feb 8, 2024
1 parent 35aa1f2 commit 601305f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Logbook.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
## 2024-02-08

### YH

Together with AB we started to work on the extraction of the model from Agda to Haskell using `agda2hs`
* The tool requires to put the `AGDA2HS` pragma for all data types that are exported
* We renamed constructors to be upper case and type parameters to be lower case as required in Haskell
* Data types that used the standard library had to be adjusted. For example we changed the `Block` data type that used `set` to a parameterized data type:
```agda
open import Data.Tree.AVL.Sets renaming (⟨Set⟩ to set)
...
record Block (t : Set) : Set where
field slotNumber : Slot
blockHeight : Word64
creatorId : PartyId
parentBlock : Hash
includedVotes : t
leadershipProof : LeadershipProof
payload : List Tx
signature : Signature
Block⁺ = Block (set HashO)
```
* The import of `Data.ByteString` in Haskell is possible using the `FOREIGN` pragma

## 2024-02-07

### Team session
Expand Down

0 comments on commit 601305f

Please sign in to comment.