Idris2Doc : Deriving.SpecialiseData

Deriving.SpecialiseData

(source)

Reexports

import public Data.DPair
import public Data.List.Map
import public Decidable.Decidable
import public Decidable.Equality
import public Deriving.SpecialiseData.Codegen
import public Deriving.SpecialiseData.Common
import public Deriving.SpecialiseData.Helpers
import public Deriving.SpecialiseData.Task
import public Deriving.SpecialiseData.TaskFormation
import public Deriving.SpecialiseData.Unification
import public Deriving.SpecialiseData.Utils.Quantifiers
import public Deriving.SpecialiseData.Utils.TypeInfo
import public Language.Mk
import public Language.Reflection.Compat.TypeInfo
import public Language.Reflection.Expr
import public Language.Reflection.Expr.VarSubst
import public Language.Reflection.Unify.Interface

Definitions

specialiseDataRaw : Monad m => NamespaceProvider m => CanUnify m => MonadLog m => MonadError SpecialisationError m => NamesInfoInTypes => SpecialisationParams => Name -> TTImp -> TTImp -> m (TypeInfo, List Decl)
  Perform a specialisation for a given type name, kind and content expressions

In order to generate a specialised type declaration equivalent to the following type alias:
```
VF : Nat -> Type
VF n = Fin n
```
...you may use this function as follows:
```
specialiseDataRaw `{VF} `(Nat -> Type) `(\n => Fin n)
```

Totality: total
Visibility: export
normaliseTask : Elaboration m => List Arg -> TTImp -> m (TTImp, TTImp)
Totality: total
Visibility: export
specialiseDataArgs : Elaboration m => NamespaceProvider m => CanUnify m => MonadLog m => MonadError SpecialisationError m => NamesInfoInTypes => SpecialisationParams => Name -> List Arg -> TTImp -> m (TypeInfo, List Decl)
Totality: total
Visibility: export
specialiseDataLam : Monad m => Elaboration m => NamespaceProvider m => CanUnify m => MonadError SpecialisationError m => NamesInfoInTypes => SpecialisationParams => Name -> (0 _ : taskT) -> m (TypeInfo, List Decl)
  Perform a specialisation for a given type name and content lambda

In order to generate a specialised type declaration equivalent to the following type alias:
```
VF : Nat -> Type
VF n = Fin n
```
...you may use this function as follows:
```
specialiseData `{VF} $ \n => Fin n
```

Totality: total
Visibility: export
specialiseDataLam'' : Elaboration m => NamespaceProvider m => CanUnify m => SpecialisationParams => Name -> (0 _ : taskT) -> m (List Decl)
  Perform a specialisation for a given type name and content lambda,
returning a list of declarations and failing on error

In order to generate a specialised type declaration equivalent to the following type alias:
```
VF : Nat -> Type
VF n = Fin n
```
...you may use this function as follows:
```
specialiseDataLam'' `{VF} $ \n => Fin n
```

Totality: total
Visibility: export
specialiseDataLam' : Elaboration m => NamespaceProvider m => CanUnify m => SpecialisationParams => Name -> (0 _ : taskT) -> m ()
  Perform a specialisation for a given type name and content lambda,
declaring the results and failing on error

In order to declare a specialised type declaration equivalent to the following type alias:
```
VF : Nat -> Type
VF n = Fin n
```
...you may use this function as follows:
```
%runElab specialiseDataLam' `{VF} $ \n => Fin n
```

Totality: total
Visibility: export