File: Coerce.hs

package info (click to toggle)
haskell-distributive 0.6.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 124 kB
  • sloc: haskell: 301; makefile: 7
file content (8 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
-- This is a shim for GHC before 7.8. Cabal ignores it
-- for GHC 7.8 and later.
module Data.Coerce (coerce) where

import Unsafe.Coerce (unsafeCoerce)

coerce :: a -> b
coerce = unsafeCoerce