{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeFamilies #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Array.Accelerate.Linear.Type -- Copyright : [2015..2020] Trevor L. McDonell -- License : BSD-style (see the file LICENSE) -- -- Maintainer : Trevor L. McDonell <trevor.mcdonell@gmail.com> -- Stability : experimental -- Portability : non-portable ---------------------------------------------------------------------------- module Data.Array.Accelerate.Linear.Type where import Data.Array.Accelerate type Box f a = (Unlift Exp (f (Exp a)), Plain (f (Exp a)) ~ f a) type Box2 f g a = (Box f (g a), Box g a, Lift Exp (f (g (Exp a))), Plain (f (g (Exp a))) ~ f (g a)) -- type IsLens' s a = IsLens s s a a -- type IsLens s t a b = (Lift Exp t, Lift Exp a, Unlift Exp s, Unlift Exp b)