Skip to content

Commit

Permalink
[ new ] Introduce a default interpolation for fins
Browse files Browse the repository at this point in the history
  • Loading branch information
buzden committed Sep 26, 2024
1 parent 776e5ce commit 985d572
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fin-lizzie.ipkg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ license = "Apache-2.0"
sourcedir = "src"
builddir = ".build"

modules = Data.Fin.Lists
modules = Data.Fin.Interpolation
, Data.Fin.Lists
, Data.Fin.Map
, Data.Fin.Minus
, Data.Fin.Set
Expand Down
9 changes: 9 additions & 0 deletions src/Data/Fin/Interpolation.idr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Data.Fin.Interpolation

import Data.Fin

%default total

export %defaulthint
FromShow : Interpolation (Fin n)
FromShow = I where [I] Interpolation (Fin n) where interpolate = show

0 comments on commit 985d572

Please sign in to comment.