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: GHC failed to recognize name of a language extension
4
+
severity: error
5
+
introduced: 9.6.1
6
+
---
7
+
8
+
This error is reported when GHC fails to recognize the name of a language extension, provided via `{-# LANGUAGE ... #-}` pragma at the top of a `.hs` file.
9
+
10
+
There are two likely causes:
11
+
12
+
1. You've made a typo, in which case GHC will likely also suggest the correct extension name to use.
13
+
2. You're using older version of GHC that doesn't yet support the extension.
14
+
Here's a couple of things you can try in order to troubleshoot:
15
+
16
+
- Find out which version of GHC you're using:
17
+
18
+
ghc --version
19
+
20
+
- List all the supported extensions that this version of GHC supports. Does the list contain your desired extension?
21
+
22
+
ghc --supported-extensions
23
+
24
+
- Search for the extension name in the latest version of the [GHC User's Guide](https://downloads.haskell.org/ghc/latest/docs/users_guide/exts.html). Most extensions have a `since` annotation which tells you in which version of GHC the extension was introduced.
0 commit comments