packages feed

ghc-stdin 0.1.1.0 → 0.1.1.1

raw patch · 3 files changed

+19/−10 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

GhcStdin.hs view
@@ -65,8 +65,10 @@ -- -- Internally, the plugin creates a temporary directory with a temporary source -- file inside it with the contents read from the standard input. Then it spawns--- another GHC process to compile this file with options passed in--- /-ffrontend-opt/.+-- another GHC process to compile this file with the options passed in+-- /-ffrontend-opt/. Note that the options get collected by 'words' without+-- passing them to a shell preprocessor which means that it is not possible to+-- escape spaces in their values with quotes or backslashes. frontendPlugin :: FrontendPlugin frontendPlugin = defaultFrontendPlugin { frontend = compileCodeFromStdin } @@ -76,6 +78,8 @@         withTempFile dir "ghc-stdin.hs" $ \src hsrc -> do             contents <- B.getContents             B.hPutStr hsrc contents >> hFlush hsrc+            -- FIXME: wordsOfHead won't hide spaces inside quotes correctly,+            -- but using spaces does not seem to be an often case in GHC options             (_, _, _, h) <- createProcess $ proc ghc $ src : wordsOfHead flags             r <- waitForProcess h             unless (r == ExitSuccess) $ exitWith r
README.md view
@@ -39,6 +39,8 @@  Internally, the plugin creates a temporary directory with a temporary source file inside it with the contents read from the standard input. Then it spawns-another GHC process to compile this file with options passed in-*-ffrontend-opt*.+another GHC process to compile this file with the options passed in+*-ffrontend-opt*. Note that the options get collected by *words* without+passing them to a shell preprocessor which means that it is not possible to+escape spaces in their values with quotes or backslashes. 
ghc-stdin.cabal view
@@ -1,13 +1,16 @@ name:                  ghc-stdin-version:               0.1.1.0-license:               BSD3-license-file:          LICENSE-extra-source-files:    Changelog.md, README.md-author:                Alexey Radkov-maintainer:            alexey.radkov@gmail.com+version:               0.1.1.1 synopsis:              Compile source code from the standard input description:           A frontend plugin for GHC to compile source code from                        the standard input.+homepage:              http://github.com/lyokha/ghc-stdin+license:               BSD3+license-file:          LICENSE+extra-source-files:    Changelog.md, README.md+author:                Alexey Radkov <alexey.radkov@gmail.com>+maintainer:            Alexey Radkov <alexey.radkov@gmail.com>+stability:             experimental+copyright:             2022 Alexey Radkov category:              Development bug-reports:           https://github.com/lyokha/ghc-stdin/issues build-type:            Simple