Fixed the infinite loop

This commit is contained in:
vegowotenks 2025-02-13 23:39:17 +01:00
parent b87917dc2e
commit c12458a2bf
3 changed files with 8 additions and 7 deletions

View file

@ -7,7 +7,7 @@ module Ubc.Parse.Syntax.Struct
where
-- yay, explicit dependency on ghc
import GHC.Generics (Generic)
import GHC.Generics (Generic, Generically(..))
import Control.Monad ((<$!>))
@ -39,7 +39,7 @@ data StructBody = StructBody
, functions :: [Function]
}
deriving stock (Generic, Show)
deriving (Semigroup, Monoid) via StructBody
deriving (Semigroup, Monoid) via Generically StructBody
parse :: Monad m => ParsecT String u m Struct
parse = do