diff options
| author | Tom Smeding <tom@tomsmeding.com> | 2025-11-27 21:30:17 +0100 |
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2025-11-27 21:30:17 +0100 |
| commit | 20f7d7be13cd7869b338f98d1ab3fd33e8bbfb3e (patch) | |
| tree | a21c90034a02cdeb7240563dbbab355e49622d0a /src/CHAD/AST.hs-boot | |
| parent | ae634c056b500a568b2d89b7f8e225404a2c0c62 (diff) | |
WIP user-specified custom typesuser-types
The big roadblock encountered is that accumulation wants addition of
monoids to be elementwise float addition; this fundamentally clashes
with the concept of a user type with a custom zero and plus.
Diffstat (limited to 'src/CHAD/AST.hs-boot')
| -rw-r--r-- | src/CHAD/AST.hs-boot | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/CHAD/AST.hs-boot b/src/CHAD/AST.hs-boot new file mode 100644 index 0000000..d1b8a62 --- /dev/null +++ b/src/CHAD/AST.hs-boot @@ -0,0 +1,15 @@ +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE RoleAnnotations #-} +{-# LANGUAGE StandaloneKindSignatures #-} +module CHAD.AST where + +import Data.Functor.Const (Const) +import Data.Kind (Type) + +import CHAD.AST.Types.Ty + +type role Expr representational nominal nominal +type Expr :: (Ty -> Type) -> [Ty] -> Ty -> Type +data Expr x env t + +type Ex = Expr (Const ()) |
