Skip to content

Commit

Permalink
cleanup: Remove Ord instance from Lexeme.
Browse files Browse the repository at this point in the history
We don't need it, and it conflicts with later alex versions.
  • Loading branch information
iphydf committed Aug 25, 2023
1 parent aa5d216 commit ab56869
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Language/Cimple/Lexer.x
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,12 @@ tokens :-
<0,ppSC,cmtSC,codeSC> . { mkL ErrorToken }

{
deriving instance Ord AlexPosn
deriving instance Generic AlexPosn
instance FromJSON AlexPosn
instance ToJSON AlexPosn

data Lexeme text = L AlexPosn LexemeClass text
deriving (Ord, Eq, Show, Generic, Functor, Foldable, Traversable)
deriving (Eq, Show, Generic, Functor, Foldable, Traversable)

instance FromJSON text => FromJSON (Lexeme text)
instance ToJSON text => ToJSON (Lexeme text)
Expand Down

0 comments on commit ab56869

Please sign in to comment.