You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary: If a module is inferred as safe, then it should be annotated as safe
4
+
severity: warning
5
+
flag: -Wsafe
6
+
introduced: 9.6.1
7
+
---
8
+
9
+
GHC implements the `SafeHaskell` extension which allows programmers to restrict modules to a specific subset which is considered safe and does not contain loopholes such as `unsafePerformIO`.
10
+
More details are available in [the GHC User's Guide](https://downloads.haskell.org/ghc/latest/docs/users_guide/exts/safe_haskell.html).
11
+
The compiler can automatically infer whether a given module is safe or not.
12
+
GHC can emit a warning if a module is inferred to be safe, but not annotated as safe.
0 commit comments