packages feed

haskell-language-server-2.15.0.0: plugins/hls-splice-plugin/test/testdata/TDeclData.hs

{-# LANGUAGE TemplateHaskell #-}
module TDeclData where
import Language.Haskell.TH

$(pure <$> dataD (pure []) (mkName "MyData") [] Nothing
    [ normalC (mkName "MyConA") [bangType (bang noSourceUnpackedness noSourceStrictness) [t|Int|]]
    , normalC (mkName "MyConB") [bangType (bang noSourceUnpackedness noSourceStrictness) [t|String|]]
    ]
    [derivClause Nothing [conT ''Show, conT ''Eq]])