Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions dhall/src/Dhall/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -371,19 +371,19 @@ instance Bifunctor RecordField where
RecordField (k <$> s0) (first k value) (k <$> s1) (k <$> s2)
second = fmap

{-| Record the label of a function or a function-type expression

For example,

> λ({- A -} a {- B -} : {- C -} T) -> e

will be instantiated as follows:
* @functionBindingSrc0@ corresponds to the @A@ comment
* @functionBindingVariable@ is @a@
* @functionBindingSrc1@ corresponds to the @B@ comment
* @functionBindingSrc2@ corresponds to the @C@ comment
* @functionBindingAnnotation@ is @T@
-}
-- | Record the label of a function or a function-type expression
--
-- For example,
--
-- > λ({- A -} a {- B -} : {- C -} T) -> e
--
-- … will be instantiated as follows:
--
-- * @functionBindingSrc0@ corresponds to the @A@ comment
-- * @functionBindingVariable@ is @a@
-- * @functionBindingSrc1@ corresponds to the @B@ comment
-- * @functionBindingSrc2@ corresponds to the @C@ comment
-- * @functionBindingAnnotation@ is @T@
data FunctionBinding s a = FunctionBinding
{ functionBindingSrc0 :: Maybe s
, functionBindingVariable :: Text
Expand Down