Functions for inserting implicit arguments at the right places.
- data ImplicitInsertion
- = ImpInsert [Hiding]
- | BadImplicits
- | NoSuchName String
- | NoInsertNeeded
- impInsert :: [Hiding] -> ImplicitInsertion
- insertImplicit :: NamedArg e -> [Arg String] -> ImplicitInsertion
Documentation
data ImplicitInsertion Source
ImpInsert [Hiding] | this many implicits have to be inserted |
BadImplicits | hidden argument where there should have been a non-hidden arg |
NoSuchName String | bad named argument |
NoInsertNeeded |
impInsert :: [Hiding] -> ImplicitInsertionSource
insertImplicit :: NamedArg e -> [Arg String] -> ImplicitInsertionSource
The list should be non-empty.