{-# LANGUAGE CustomHaskellExtension #-}
Is there a way to define my own custom Haskell language extension?
If YES, please can you point me to the documentation or tutorial.
Yes and no, language extensions are a feature of the implementation of the language (so, the compiler), this means if you are using the common implementations of Haskell, such as GHC, there is no built-in way to add custom language extensions.
However, there is nothing (besides time and knowledge) stopping you from building your own implementation of Haskell that supports whatever crazy language extension you like.
Depending on what you actually want, Template Haskell might be a solution you can use instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With