File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1
1
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
2
2
-- SPDX-License-Identifier: Apache-2.0
3
3
4
- {-# LANGUAGE RankNTypes #-}
5
- {-# LANGUAGE CPP #-}
6
-
7
4
module Development.IDE.Core.Preprocessor
8
5
( preprocessor
9
6
) where
@@ -70,7 +67,6 @@ parsePragmasIntoDynFlags fp contents = catchSrcErrors "pragmas" $ do
70
67
return dflags
71
68
72
69
73
-
74
70
-- | Run (unlit) literate haskell preprocessor on a file, or buffer if set
75
71
runLhs :: DynFlags -> FilePath -> Maybe SB. StringBuffer -> IO SB. StringBuffer
76
72
runLhs dflags filename contents = withTempDir $ \ dir -> do
@@ -98,6 +94,7 @@ runLhs dflags filename contents = withTempDir $ \dir -> do
98
94
escape (c: cs) = c : escape cs
99
95
escape [] = []
100
96
97
+
101
98
-- | Run CPP on a file
102
99
runCpp :: DynFlags -> FilePath -> Maybe SB. StringBuffer -> IO SB. StringBuffer
103
100
runCpp dflags filename contents = withTempDir $ \ dir -> do
You can’t perform that action at this time.
0 commit comments