ExistentialQuantification
{-# LANGUAGE ExistentialQuantification #-}
存在类型专用的语言扩展
Haskell语言学习笔记(73)Existentials
GADTs
{-# LANGUAGE GADTs #-}
广义抽象代数类型专用语言扩展
Haskell语言学习笔记(74)GADTs
OverloadedStrings
{-# LANGUAGE OverloadedStrings #-}
用于重载字符串字面量类型的语言扩展
Haskell语言学习笔记(49)ByteString Text
OverloadedLists
{-# LANGUAGE OverloadedLists #-}
用于重载列表字面量类型的语言扩展
Haskell语言学习笔记(28)Data.Map
DeriveGeneric
{-# LANGUAGE DeriveGeneric #-}
用于泛型编程的语言扩展
Haskell语言学习笔记(90)Default
24 Days of GHC Extensions: DeriveGeneric
DeriveFunctor, DeriveFoldable, DeriveTraversable
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
用于自动实现 Functor, Foldable, Traversable 类型类的语言扩展
Haskell语言学习笔记(64)Lens(4)
24 Days of GHC Extensions: Deriving
DeriveAnyClass
{-# LANGUAGE DeriveAnyClass #-}
用于自动实现任意类型类的语言扩展
Haskell语言学习笔记(90)Default