Announcing Purple Yolk, a dumb Haskell extension for VS Code
Haskell Community [Unofficial]
April 13, 2026
This is really useful for formatting just the LANGUAGE pragmas in a project that doesn’t use a code formatter.
Here’s an example, from bsc’s Averilog, selecting the language pragmas and then “format selection with Purple Yolk”:
{-# LANGUAGE CPP #-}
- {-# LANGUAGE FlexibleInstances, TypeSynonymInstances, PatternGuards #-}
- {-# LANGUAGE FlexibleInstances #-}
+ {-# LANGUAGE FlexibleInstances #-}
+ {-# LANGUAGE PatternGuards #-}
+ {-# LANGUAGE TypeSynonymInstances #-}
Discussion in the ATmosphere