mirror of
https://github.com/haskell/ghcide.git
synced 2024-12-02 08:53:07 +03:00
Less extensions
This commit is contained in:
parent
99621e5f78
commit
9cfb9aa9ab
@ -1,9 +1,6 @@
|
||||
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
|
||||
-- SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
{-# LANGUAGE RankNTypes #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
|
||||
module Development.IDE.Core.Preprocessor
|
||||
( preprocessor
|
||||
) where
|
||||
@ -70,7 +67,6 @@ parsePragmasIntoDynFlags fp contents = catchSrcErrors "pragmas" $ do
|
||||
return dflags
|
||||
|
||||
|
||||
|
||||
-- | Run (unlit) literate haskell preprocessor on a file, or buffer if set
|
||||
runLhs :: DynFlags -> FilePath -> Maybe SB.StringBuffer -> IO SB.StringBuffer
|
||||
runLhs dflags filename contents = withTempDir $ \dir -> do
|
||||
@ -98,6 +94,7 @@ runLhs dflags filename contents = withTempDir $ \dir -> do
|
||||
escape (c:cs) = c : escape cs
|
||||
escape [] = []
|
||||
|
||||
|
||||
-- | Run CPP on a file
|
||||
runCpp :: DynFlags -> FilePath -> Maybe SB.StringBuffer -> IO SB.StringBuffer
|
||||
runCpp dflags filename contents = withTempDir $ \dir -> do
|
||||
|
Loading…
Reference in New Issue
Block a user