Skip to content

Commit

Permalink
Change to record syntax for value construction
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Dec 11, 2024
1 parent 64e7273 commit 4d26ac9
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions generator/src/Stratosphere/Generator/Declaration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -332,20 +332,19 @@ genRecordBoot Record{..} = runGen $ do
(GHC.HsQTvs GHC.NoExtField [])
GHC.Prefix
$ GHC.HsDataDefn
GHC.NoExtField
GHC.DataType
Nothing
Nothing
( Just
$ mkLocated
(GHC.HsTyVar
GHC.EpAnnNotUsed
GHC.NotPromoted
(mkLocated . GHC.mkRdrUnqual $ GHC.mkDataOcc "Prelude.Type")
)
)
[]
[]
{ dd_ext = GHC.NoExtField
, dd_ND = GHC.DataType
, dd_ctxt = Nothing
, dd_cType = Nothing
, dd_kindSig = Just $ mkLocated
(GHC.HsTyVar
GHC.EpAnnNotUsed
GHC.NotPromoted
(mkLocated . GHC.mkRdrUnqual $ GHC.mkDataOcc "Prelude.Type")
)
, dd_cons = []
, dd_derivs = []
}

genResourcePropertiesInstance :: Generator GHC.HsDecl'
genResourcePropertiesInstance
Expand Down

0 comments on commit 4d26ac9

Please sign in to comment.