packages feed

haskell-language-server-2.10.0.0: plugins/hls-explicit-record-fields-plugin/test/testdata/PolymorphicRecordConstruction.hs

{-# LANGUAGE Haskell2010 #-}

module PolymorphicRecordConstruction where

data MyRec m = MyRec
  { foo :: Int
  , bar :: Int
  , baz :: Char
  }

convertMe :: () -> MyRec ()
convertMe _ =
  let a = 3
      b = 5
      c = 'a'
  in MyRec a b c