Skip to content

Commit ba84c0f

Browse files
yeah. it's been one of THOSE days
1 parent 7040483 commit ba84c0f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/Data/Unfoldable/Trivial/Internal.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module Data.Unfoldable.Trivial.Internal
1919

2020
import Prelude
2121

22+
import Data.Eq (class Eq1, eq1)
23+
import Data.Ord (class Ord1, ord1)
2224
import Data.Foldable (class Foldable, foldrDefault, foldMapDefaultL)
2325
import Data.Unfoldable
2426
(class Unfoldable

src/Data/Unfoldable1/Trivial1/Internal.purs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module Data.Unfoldable1.Trivial1.Internal
1919

2020
import Prelude
2121

22+
import Data.Eq (class Eq1, eq1)
23+
import Data.Ord (class Ord1, ord1)
2224
import Data.Foldable (class Foldable, foldrDefault, foldMapDefaultL, foldl)
2325
import Data.Semigroup.Foldable (class Foldable1, foldr1Default, foldMap1DefaultL)
2426
import Data.Unfoldable1 (class Unfoldable1, unfoldr1)
@@ -180,3 +182,10 @@ instance trivial1Applicative :: Applicative Trivial1 where
180182

181183
instance trivial1Semigroup :: Semigroup (Trivial1 a) where
182184
append = (<|>)
185+
186+
-- | Does not and cannot memoize the values being produced to compare.
187+
-- | Please consider using Data.List.Lazy or your strict container of choice
188+
-- | instead if you have any intention of using this for anything else.
189+
instance trivial1Eq :: Eq a => Eq (Trivial1 a) where
190+
eq = eq1
191+

0 commit comments

Comments
 (0)