mirror of
https://github.com/google/ormolu.git
synced 2024-11-27 13:13:23 +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.
14 lines
360 B
Haskell
14 lines
360 B
Haskell
-- | Header comment.
|
|
|
|
{-# LANGUAGE LambdaCase #-}
|
|
{-#LANGuagE ViewPatterns #-}
|
|
{-# LANGUAGE OverloadedStrings#-}
|
|
{-# OPTIONS_GHC -Wall -Werror #-}
|
|
{-# language DataKinds, LambdaCase #-}
|
|
{-# OPTIONS_HADDOCK prune, show-extensions #-}
|
|
{-# OPTIONS_GHC -O2 -H 300 #-}
|
|
{-# language IncoherentInstances
|
|
, AllowAmbiguousTypes #-}
|
|
|
|
module Foo () where
|