Skip to content

Commit

Permalink
specialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Oct 5, 2023
1 parent 02a155b commit 0146fe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Stdlib/Data/Int.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ordIntI : Ord Int := mkOrd Int.compare;
instance
showIntI : Show Int := mkShow intToString;

{-# specialize: true #-}
instance
naturalIntI : Natural Int :=
mkNatural@{
Expand All @@ -39,6 +40,7 @@ naturalIntI : Natural Int :=
fromNat := ofNat;
};

{-# specialize: true #-}
instance
integralIntI : Integral Int :=
mkIntegral@{
Expand Down
1 change: 1 addition & 0 deletions Stdlib/Data/Nat.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ordNatI : Ord Nat := mkOrd Nat.compare;
instance
showNatI : Show Nat := mkShow natToString;

{-# specialize: true #-}
instance
naturalNatI : Natural Nat :=
mkNatural@{
Expand Down

0 comments on commit 0146fe2

Please sign in to comment.