Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit c463ba3

Browse files
authored
Merge pull request #37 from bsermons/fix-ordering
Fix Ordering generic instance
2 parents 948404d + 0bacd8e commit c463ba3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Data/Generic.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ instance genericOrdering :: Generic Ordering where
159159
, { sigConstructor: "Data.Ordering.GT", sigValues: [] }
160160
]
161161
fromSpine = case _ of
162-
SProd "Data.Either.LT" [] -> Just LT
163-
SProd "Data.Either.EQ" [] -> Just EQ
164-
SProd "Data.Either.GT" [] -> Just GT
162+
SProd "Data.Ordering.LT" [] -> Just LT
163+
SProd "Data.Ordering.EQ" [] -> Just EQ
164+
SProd "Data.Ordering.GT" [] -> Just GT
165165
_ -> Nothing
166166

167167
-- | A GenericSpine is a universal representation of an arbitrary data

0 commit comments

Comments
 (0)