Skip to content

Modules with Unsafe language pragmas can use "safe import" #149

Open
@langston-barrett

Description

@langston-barrett

If I use stylish-haskell on a module with

{-# LANGUAGE Unsafe #-} -- "import safe" is enforced

I still get the following error:

Language.Haskell.Stylish.Parse.parseModule: could not parse src/Extract/DefinitionsTheoremsLemmas.hs: ParseFailed (SrcLoc "<unknown>.hs" 15 13) "At least one of Safe or SafeImports or Trustworthy language extensions needs to be enabled. Please add: {-# LANGUAGE Safe #-} or {-# LANGUAGE SafeImports #-} or {-# LANGUAGE Trustworthy #-} language pragma at the top of your module."

Unsafe is described on the GHC wiki.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions