dimensions-2.1.0.0: src/Numeric/Dimensions/Dim.hs-boot
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE TypeOperators #-}
-- This module recursively depends on Numeric.TypedList.
-- I thought hs-boot is better than orphan instances.
module Numeric.Dimensions.Dim ( Dim, dimVal, minusDimM ) where
import Data.Type.Lits (type (-), Nat)
newtype Dim (x :: k) = DimSing Word
dimVal :: forall x . Dim x -> Word
minusDimM :: forall (n :: Nat) (m :: Nat) . Dim n -> Dim m -> Maybe (Dim (n - m))