Skip to content

Commit

Permalink
Add types for Piet
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-adam committed May 30, 2023
1 parent f2c58f3 commit 9fd7a3d
Show file tree
Hide file tree
Showing 246 changed files with 889 additions and 873 deletions.
4 changes: 4 additions & 0 deletions docs/developers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 📅 Revision history for HelMA

## 0.8.4.11 -- 2023-05-30
* Add types for Piet
* Use universeNonEmpty

## 0.8.4.10 -- 2023-05-01
* Remove Loop

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
span.lineno { color: white; background: #aaaaaa; border-right: solid white 12px }
span.nottickedoff { background: yellow}
span.istickedoff { background: white }
span.tickonlyfalse { margin: -1px; border: 1px solid #f20913; background: #f20913 }
span.tickonlytrue { margin: -1px; border: 1px solid #60de51; background: #60de51 }
span.funcount { font-size: small; color: orange; z-index: 2; position: absolute; right: 20 }
span.decl { font-weight: bold }
span.spaces { background: white }
</style>
</head>
<body>
<pre>
<span class="decl"><span class="nottickedoff">never executed</span> <span class="tickonlytrue">always true</span> <span class="tickonlyfalse">always false</span></span>
</pre>
<pre>
<span class="lineno"> 1 </span>module HelVM.HelMA.Automata.BrainFuck.API.BFType where
<span class="lineno"> 2 </span>
<span class="lineno"> 3 </span>-- | Constructors
<span class="lineno"> 4 </span>defaultBFType :: BFType
<span class="lineno"> 5 </span><span class="decl"><span class="istickedoff">defaultBFType = minBound</span></span>
<span class="lineno"> 6 </span>
<span class="lineno"> 7 </span>bfTypes :: NonEmpty BFType
<span class="lineno"> 8 </span><span class="decl"><span class="nottickedoff">bfTypes = universeNonEmpty</span></span>
<span class="lineno"> 9 </span>
<span class="lineno"> 10 </span>-- | Type
<span class="lineno"> 11 </span>data BFType = FastType | TreeType | FlatType
<span class="lineno"> 12 </span> deriving stock (<span class="decl"><span class="istickedoff"><span class="decl"><span class="nottickedoff">Bounded</span></span></span></span> , <span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff">Enum</span></span></span></span></span></span></span></span></span></span></span></span> , <span class="decl"><span class="nottickedoff">Eq</span></span> , <span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff">Read</span></span></span></span></span></span> , <span class="decl"><span class="istickedoff">Show</span></span>)

</pre>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@
<pre>
<span class="lineno"> 1 </span>module HelVM.HelMA.Automata.ETA.API.ETAImplType where
<span class="lineno"> 2 </span>
<span class="lineno"> 3 </span>import HelVM.HelIO.SwitchEnum
<span class="lineno"> 4 </span>
<span class="lineno"> 5 </span>-- | Constructors
<span class="lineno"> 6 </span>defaultETAImplType :: ETAImplType
<span class="lineno"> 7 </span><span class="decl"><span class="istickedoff">defaultETAImplType = defaultEnum</span></span>
<span class="lineno"> 8 </span>
<span class="lineno"> 9 </span>etaImplTypes:: [ETAImplType]
<span class="lineno"> 10 </span><span class="decl"><span class="istickedoff">etaImplTypes = generateEnums 2</span></span>
<span class="lineno"> 11 </span>
<span class="lineno"> 12 </span>-- | Type
<span class="lineno"> 13 </span>data ETAImplType = Fast | Original
<span class="lineno"> 14 </span> deriving stock (<span class="decl"><span class="istickedoff"><span class="decl"><span class="istickedoff">Bounded</span></span></span></span> , <span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="istickedoff"><span class="decl"><span class="istickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff">Enum</span></span></span></span></span></span></span></span></span></span></span></span> , <span class="decl"><span class="nottickedoff">Eq</span></span> , <span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff">Read</span></span></span></span></span></span> , <span class="decl"><span class="istickedoff">Show</span></span>)
<span class="lineno"> 3 </span>-- | Constructors
<span class="lineno"> 4 </span>defaultETAImplType :: ETAImplType
<span class="lineno"> 5 </span><span class="decl"><span class="istickedoff">defaultETAImplType = minBound</span></span>
<span class="lineno"> 6 </span>
<span class="lineno"> 7 </span>etaImplTypes:: NonEmpty ETAImplType
<span class="lineno"> 8 </span><span class="decl"><span class="istickedoff">etaImplTypes = universeNonEmpty</span></span>
<span class="lineno"> 9 </span>
<span class="lineno"> 10 </span>-- | Type
<span class="lineno"> 11 </span>data ETAImplType = Fast | Original
<span class="lineno"> 12 </span> deriving stock (<span class="decl"><span class="istickedoff"><span class="decl"><span class="istickedoff">Bounded</span></span></span></span> , <span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="istickedoff"><span class="decl"><span class="istickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff">Enum</span></span></span></span></span></span></span></span></span></span></span></span> , <span class="decl"><span class="nottickedoff">Eq</span></span> , <span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff"><span class="decl"><span class="nottickedoff">Read</span></span></span></span></span></span> , <span class="decl"><span class="istickedoff">Show</span></span>)

</pre>
</body>
Expand Down
Loading

0 comments on commit 9fd7a3d

Please sign in to comment.