How can I disable Haskell warning in small block?

No, you can’t currently in GHC 9.2.1.

The {-# OPTIONS_GHC #-} pragma is file-header only and applies to the whole module. And there are no such pragmas (or other ways) to suppress warnings in specific locations. You can check the full list of pragmas in the Haskell user guide:

https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#pragmas

The list of warnings might also be interesting:

https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using-warnings.html

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)