File: unsafe.cabal

package info (click to toggle)
haskell-unsafe 0.0-5
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68 kB
  • sloc: haskell: 44; sh: 7; makefile: 5
file content (60 lines) | stat: -rw-r--r-- 1,851 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Name:             unsafe
Version:          0.0
License:          BSD3
License-File:     LICENSE
Author:           Henning Thielemann <haskell@henning-thielemann.de>
Maintainer:       Henning Thielemann <haskell@henning-thielemann.de>
Homepage:         http://code.haskell.org/~thielema/unsafe/
Category:         Control
Synopsis:         Unified interface to unsafe functions
Description:
  SafeHaskell introduced the notion of safe and unsafe modules.
  In order to make as many as possible modules \"safe\",
  the well-known unsafe functions were moved to distinguished modules.
  This makes it hard to write packages that work
  with both old and new versions of GHC.
  This package provides a single module @System.Unsafe@
  that exports the unsafe functions from the base package.
  It provides them in a style ready for qualification,
  that is, you should import them by
  .
  > import qualified System.Unsafe as Unsafe
  .
  The package also contains a script called @rename-unsafe.sh@.
  It replaces all occurrences of the original identifiers
  with the qualified identifiers from this package.
  You still have to adapt the import commands.
  It uses the @darcs-replace-rec@ script from the @darcs-scripts@ package.

Tested-With:      GHC==7.0.4, GHC==7.2.2, GHC==7.4.1
Cabal-Version:    >=1.6
Build-Type:       Simple

Data-Files:
  rename-unsafe.sh

Extra-Source-Files:
  src-old/System/Unsafe.hs
  src-new/System/Unsafe.hs

Source-Repository this
  Tag:         0.0
  Type:        darcs
  Location:    http://code.haskell.org/~thielema/unsafe/

Source-Repository head
  Type:        darcs
  Location:    http://code.haskell.org/~thielema/unsafe/

Library
  Build-Depends: base >= 4 && < 5

  GHC-Options:   -Wall

  If impl(ghc >= 7.2)
    Hs-Source-Dirs: src-new
  Else
    Hs-Source-Dirs: src-old

  Exposed-Modules:
    System.Unsafe