packages feed

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

{-# LANGUAGE Haskell2010 #-}

module PositionalConstruction where

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

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