Untitled
Anonymous
plain_text
04/12/2021 1:12 PM
284 B
21
Indexable
{-# LANGUAGE GADTs, RecordWildCards #-}
module RU where
f x = x {myField = 3}
g MyRecord {..} = MyRecord {myField = 3}
data MyRecord where
MyRecord
:: (Num a) =>
{ myField :: a
} ->
MyRecord
Editor is loading...