type-equality-1.0.1/0000755000000000000000000000000007346545000012516 5ustar0000000000000000type-equality-1.0.1/CHANGELOG.md0000644000000000000000000000102307346545000014323 0ustar0000000000000000## 1.0.1 * Support GHC-8.6.5..GHC-9.10.1 ## 1 * Rewrite the library to contain a shim of recent `base` `Data.Type.Equality` module. ## 0.1.2 * Add subst2. Thanks to James Koppel. ## 0.1.1 * Turn on PolyKinds for GHC >= 7.6. Thanks to Ben Franksen. ## 0.1.0.2 * Move 'Build-depends' to 'Library' section. Thanks to Brent Yorgey. ## 0.1.0.1 * Added EqT instance for (:=:) * Removed 'cast' as synonym for 'coerce'. * Show and read instances for (:=:). * Lots of small changes. ## 0.1.0 * Initial version. type-equality-1.0.1/LICENSE0000644000000000000000000000301507346545000013522 0ustar0000000000000000Copyright (c) 2009 Erik Hesselink, 2019 Oleg Grenrus, Ryan Scott All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of authors nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. type-equality-1.0.1/src-hetero/Data/Type/Equality/0000755000000000000000000000000007346545000020160 5ustar0000000000000000type-equality-1.0.1/src-hetero/Data/Type/Equality/Hetero.hs0000644000000000000000000000031207346545000021736 0ustar0000000000000000{-# LANGUAGE TypeOperators #-} -- | This module shims kind heterogeneous propositional equality. module Data.Type.Equality.Hetero ( (:~~:)(..), ) where import Data.Type.Equality ((:~~:)(..)) type-equality-1.0.1/type-equality.cabal0000644000000000000000000000255607346545000016326 0ustar0000000000000000name: type-equality version: 1.0.1 stability: provisional cabal-version: >=1.10 build-type: Simple author: Oleg Grenrus , Ryan Scott , Erik Hesselink , Martijn van Steenbergen maintainer: Oleg Grenrus , Ryan Scott , Erik Hesselink license: BSD3 license-file: LICENSE homepage: https://github.com/hesselink/type-equality category: Data, Dependent Types synopsis: Data.Type.Equality compat package description: This library defines a propositional equality data type, shims @Data.Type.Equality@ as well as possible for older GHCs (< 7.8). . @ data a :~: b where \ Refl :: a :~: a @ . The module @Data.Type.Equality.Hetero@ shims @:~~:@ equality, for compilers with @PolyKinds@ extra-source-files: CHANGELOG.md tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2 || ==9.10.1 source-repository head type: git location: git://github.com/hesselink/type-equality library default-language: Haskell2010 build-depends: base >=4.12 && <4.21 hs-source-dirs: src-hetero exposed-modules: Data.Type.Equality.Hetero other-extensions: PolyKinds