Skip to content

Commit 9cfb9aa

Browse files
committed
Less extensions
1 parent 99621e5 commit 9cfb9aa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Development/IDE/Core/Preprocessor.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
22
-- SPDX-License-Identifier: Apache-2.0
33

4-
{-# LANGUAGE RankNTypes #-}
5-
{-# LANGUAGE CPP #-}
6-
74
module Development.IDE.Core.Preprocessor
85
( preprocessor
96
) where
@@ -70,7 +67,6 @@ parsePragmasIntoDynFlags fp contents = catchSrcErrors "pragmas" $ do
7067
return dflags
7168

7269

73-
7470
-- | Run (unlit) literate haskell preprocessor on a file, or buffer if set
7571
runLhs :: DynFlags -> FilePath -> Maybe SB.StringBuffer -> IO SB.StringBuffer
7672
runLhs dflags filename contents = withTempDir $ \dir -> do
@@ -98,6 +94,7 @@ runLhs dflags filename contents = withTempDir $ \dir -> do
9894
escape (c:cs) = c : escape cs
9995
escape [] = []
10096

97+
10198
-- | Run CPP on a file
10299
runCpp :: DynFlags -> FilePath -> Maybe SB.StringBuffer -> IO SB.StringBuffer
103100
runCpp dflags filename contents = withTempDir $ \dir -> do

0 commit comments

Comments
 (0)