Move HasField to DA.Record in the stdlib docs. (#2764)

This commit is contained in:
associahedron 2019-09-06 11:28:24 +01:00 committed by mergify[bot]
parent ed39800a9f
commit a50e0c2e0e

View File

@ -5,6 +5,8 @@
{-# LANGUAGE AllowAmbiguousTypes #-} -- setField doesn't mention x, because we pass it as a type application
daml 1.2
-- | MOVE DA.Record
module DA.Internal.Record(HasField(..), Symbol, getFieldPrim, setFieldPrim) where
import GHC.Types
@ -15,9 +17,11 @@ class HasField (x : Symbol) r a | x r -> a where
getField : r -> a
setField : a -> r -> r
-- | HIDE Not re-exported in DA.Record
getFieldPrim : forall (f : Symbol) rec fld. rec -> fld
getFieldPrim = getFieldPrim
-- | HIDE Not re-exported in DA.Record
setFieldPrim : forall (f : Symbol) rec fld. fld -> rec -> rec
setFieldPrim = setFieldPrim