Commit c7d39673 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺

Explicitly declare the API contract of `mtl` to be "safe"

This avoids relying on the fragile "safe-inferred" status
and thus gives `mtl` a more explicit SafeHaskell API contract.

parent 05046b36
......@@ -66,6 +66,11 @@ Library
-- This is a SafeHaskell safeguard (pun intended) to explicitly declare the API contract of `mtl`
-- GHC versions before 7.4 were hopelessly broken or incapable of SafeHaskell
if impl(ghc >= 7.4)
default-extensions: Safe
ghc-options: -Wall -fno-warn-unused-imports -fno-warn-warnings-deprecations
if impl(ghc >= 8.0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment