Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-adam committed Aug 18, 2024
1 parent 352a685 commit 4424918
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/developers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 📅 Revision history for HelPS

## 0.1.0.1 -- 2023-06-18
* First version. Released on an unsuspecting world.

## 0.1.0.0 -- 2023-06-18
* First version. Released on an unsuspecting world.

Expand Down
2 changes: 1 addition & 1 deletion docs/reports/hlint.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
<div id="content" valign="top" width="100%">
<p>
Report generated by <a href="http://community.haskell.org/~ndm/hlint/">HLint</a>
v3.1.6
v3.5
- a tool to suggest improvements to your Haskell code.
</p>

Expand Down
20 changes: 20 additions & 0 deletions hs/src/HelVM/HelPS/Quest/Compiler.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module HelVM.HelPS.Quest.Compiler (compile) where

import qualified HelVM.HelPS.Quest.Grind.Parity as Parity

compile :: Int -> String -> IO String
--compile n filePath = Parity.compile <$> readRemainingLines n filePath

compile n filePath = do
contents <- readRemainingLines n filePath
putStrLn contents
let result = Parity.compile contents
putStrLn result
pure result

readRemainingLines :: Int -> FilePath -> IO String
readRemainingLines n filePath = do
contents <- readFile filePath
let allLines = lines contents
let remainingLines = drop n allLines
pure (unlines remainingLines)

0 comments on commit 4424918

Please sign in to comment.