Fixed the infinite loop
This commit is contained in:
parent
b87917dc2e
commit
c12458a2bf
3 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue