shithub: MicroHs

ref: bf737faf9dd2219b202d4c3d1eb62b942202bc9f
dir: /lib/Data/Constraint.hs/

View raw version
-- Copyright 2023 Lennart Augustsson
-- See LICENSE file for full license.
module Data.Constraint(module Data.Constraint) where
import Primitives  -- for (->)
-- A very, very minimal version of the constraints package

data Dict (c :: Constraint) = c => Dict

withDict :: forall (c :: Constraint) r . Dict c -> (c => r) -> r
withDict Dict r = r