mirror of
https://github.com/ilyakooo0/ormolu.git
synced 2024-10-27 03:28:33 +03:00
b6c29bdf12
This change adds an ad-hoc parser for module pragmas to handle OPTIONS_* pragmas. I did not want to use an existing tokenizer, because I felt like tokenizing and pretty printing the GHC options are more prone to error without providing much benefit.
16 lines
353 B
Haskell
16 lines
353 B
Haskell
{-# LANGUAGE AllowAmbiguousTypes #-}
|
|
{-# LANGUAGE DataKinds #-}
|
|
{-# LANGUAGE IncoherentInstances #-}
|
|
{-# LANGUAGE LambdaCase #-}
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
{-# LANGUAGE ViewPatterns #-}
|
|
{-# OPTIONS_GHC -O2 -H 300 #-}
|
|
{-# OPTIONS_GHC -Wall -Werror #-}
|
|
{-# OPTIONS_HADDOCK prune, show-extensions #-}
|
|
|
|
-- | Header comment.
|
|
module Foo
|
|
(
|
|
)
|
|
where
|