Haskell language extensions: pragma vs. flag compiler?

To use a language extension, such as UnicodeSyntaxin all project files, 2 options are available:

  • Pragma in each source file: {-# LANGUAGE UnicodeSyntax #-}
  • Adding a extensions: UnicodeSyntaxfile to each section (library, executable file, test) .cabal.

Are there any reasons or recommendations for choosing one of them?

I use stacktheir standard new-templatefor simple packages.

+4
source share
1 answer

, . , , . , , , - Template Haskell . - , . , , .

, , Cabal, , .

+4

Source: https://habr.com/ru/post/1616291/


All Articles