Should I use GHC Haskell extensions or not?

后端 未结 4 838
时光取名叫无心
时光取名叫无心 2021-01-30 05:04

As I am learning Haskell, I see that there is a lot of language extensions used in real life code. As a beginner, should I learn to use them, or should I avoid them at all cost?

4条回答
  •  温柔的废话
    2021-01-30 05:46

    Yes, use extensions as appropriate.

    But be sure to enable them intentionally -- only when you decide you need them. Do this on a per-module basis via {-# LANGUAGE Rank2Types #-} (for example).

提交回复
热议问题