packages feed

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

{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE RecordWildCards #-}

module WildcardOnly where

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

convertMe :: MyRec -> String
convertMe MyRec {..} = show foo ++ show bar ++ show baz