Skip to content

Commit dcaf0bc

Browse files
committed
Refactor
1 parent 56d04da commit dcaf0bc

File tree

21 files changed

+67
-86
lines changed

21 files changed

+67
-86
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@ out/
3737

3838
/stan.html
3939
*.tix
40-
*.log
40+
*.log
41+
42+
*~
43+
*.swp
44+
tarballs/
45+
.stack-work/

cabal.project

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ source-repository-package
44
type: git
55
location: https://github.com/helvm/helio.git
66
branch: master
7-
tag: 0.2.0.0
87

98
source-repository-package
109
type: git

docs/developers/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# 📅 Revision history for HelPS
22

3+
## 0.2.4.4 -- 2025-08-24
4+
* Add Stack, Remove Cabal
5+
36
## 0.2.4.3 -- 2025-08-24
4-
* Add RIO - Remove relude
7+
* Add RIO, Remove Relude
58

69
## 0.2.4.2 -- 2025-08-20
710
* Use hspec-slow
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>HelVM.HelPS.Compiler</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">helps</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">HelVM.HelPS.Compiler</p></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:compileText" class="def">compileText</a> :: <a href="HelVM-HelPS-Compiler-Compiler.html#t:Compiler" title="HelVM.HelPS.Compiler.Compiler">Compiler</a> -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/r-0.1.22.0-1ddacce0/share/doc/html/RIO-Prelude-Types.html#t:Text" title="RIO.Prelude.Types">Text</a> -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/r-0.1.22.0-1ddacce0/share/doc/html/RIO-Prelude-Types.html#t:Text" title="RIO.Prelude.Types">Text</a> <a href="#v:compileText" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:compile" class="def">compile</a> :: <a href="HelVM-HelPS-Compiler-Compiler.html#t:Compiler" title="HelVM.HelPS.Compiler.Compiler">Compiler</a> -&gt; <a href="${pkgroot}/../../../share/doc/ghc-9.10.1/html/libraries/base-4.20.0.0-inplace/Data-String.html#t:String" title="Data.String">String</a> -&gt; <a href="${pkgroot}/../../../share/doc/ghc-9.10.1/html/libraries/base-4.20.0.0-inplace/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:compile" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.28.0</p></div></body></html>
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>HelVM.HelPS.Compiler</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">helps</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">HelVM.HelPS.Compiler</p></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:compileText" class="def">compileText</a> :: <a href="HelVM-HelPS-Compiler-Compiler.html#t:Compiler" title="HelVM.HelPS.Compiler.Compiler">Compiler</a> -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/rld-1.2.2.1-96e7bd49/share/doc/html/Relude-String-Reexport.html#t:Text" title="Relude.String.Reexport">Text</a> -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/rld-1.2.2.1-96e7bd49/share/doc/html/Relude-String-Reexport.html#t:Text" title="Relude.String.Reexport">Text</a> <a href="#v:compileText" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:compile" class="def">compile</a> :: <a href="HelVM-HelPS-Compiler-Compiler.html#t:Compiler" title="HelVM.HelPS.Compiler.Compiler">Compiler</a> -&gt; <a href="${pkgroot}/../../../share/doc/ghc-9.10.1/html/libraries/base-4.20.0.0-inplace/Data-String.html#t:String" title="Data.String">String</a> -&gt; <a href="${pkgroot}/../../../share/doc/ghc-9.10.1/html/libraries/base-4.20.0.0-inplace/Data-String.html#t:String" title="Data.String">String</a> <a href="#v:compile" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.28.0</p></div></body></html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>HelVM.HelPS.MiniHaskell.ClassyAdapter</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">helps</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">HelVM.HelPS.MiniHaskell.ClassyAdapter</p></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:compileText" class="def">compileText</a> :: <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/r-0.1.22.0-1ddacce0/share/doc/html/RIO-Prelude-Types.html#t:Text" title="RIO.Prelude.Types">Text</a> -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/r-0.1.22.0-1ddacce0/share/doc/html/RIO-Prelude-Types.html#t:Text" title="RIO.Prelude.Types">Text</a> <a href="#v:compileText" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.28.0</p></div></body></html>
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>HelVM.HelPS.MiniHaskell.ClassyAdapter</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">helps</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">HelVM.HelPS.MiniHaskell.ClassyAdapter</p></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:compileText" class="def">compileText</a> :: <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/rld-1.2.2.1-96e7bd49/share/doc/html/Relude-String-Reexport.html#t:Text" title="Relude.String.Reexport">Text</a> -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/rld-1.2.2.1-96e7bd49/share/doc/html/Relude-String-Reexport.html#t:Text" title="Relude.String.Reexport">Text</a> <a href="#v:compileText" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.28.0</p></div></body></html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>HelVM.HelPS.Util</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">helps</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">HelVM.HelPS.Util</p></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:mapTextWithString" class="def">mapTextWithString</a> :: (<a href="${pkgroot}/../../../share/doc/ghc-9.10.1/html/libraries/base-4.20.0.0-inplace/Data-String.html#t:String" title="Data.String">String</a> -&gt; <a href="${pkgroot}/../../../share/doc/ghc-9.10.1/html/libraries/base-4.20.0.0-inplace/Data-String.html#t:String" title="Data.String">String</a>) -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/r-0.1.22.0-1ddacce0/share/doc/html/RIO-Prelude-Types.html#t:Text" title="RIO.Prelude.Types">Text</a> -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/r-0.1.22.0-1ddacce0/share/doc/html/RIO-Prelude-Types.html#t:Text" title="RIO.Prelude.Types">Text</a> <a href="#v:mapTextWithString" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.28.0</p></div></body></html>
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>HelVM.HelPS.Util</title><link href="linuwial.css" rel="stylesheet" type="text/css" title="Linuwial" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { processClass: "mathjax", ignoreClass: ".*" } });</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><span class="caption">helps</span><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">HelVM.HelPS.Util</p></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:mapTextWithString" class="def">mapTextWithString</a> :: (<a href="${pkgroot}/../../../share/doc/ghc-9.10.1/html/libraries/base-4.20.0.0-inplace/Data-String.html#t:String" title="Data.String">String</a> -&gt; <a href="${pkgroot}/../../../share/doc/ghc-9.10.1/html/libraries/base-4.20.0.0-inplace/Data-String.html#t:String" title="Data.String">String</a>) -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/rld-1.2.2.1-96e7bd49/share/doc/html/Relude-String-Reexport.html#t:Text" title="Relude.String.Reexport">Text</a> -&gt; <a href="file:///Users/kamilzabinski/.local/state/cabal/store/ghc-9.10.1-inplace/rld-1.2.2.1-96e7bd49/share/doc/html/Relude-String-Reexport.html#t:Text" title="Relude.String.Reexport">Text</a> <a href="#v:mapTextWithString" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.28.0</p></div></body></html>

docs/reports/helps/helps.haddock

0 Bytes
Binary file not shown.

docs/reports/hlint.html

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@
161161

162162
<p><a class="all" href="javascript:show('')">All hints</a></p>
163163
<ul>
164-
<li><a id="hint0" href="javascript:show('hint0')">Warning: Use putTextLn (1)</a></li>
164+
<li>No hints</li>
165165
</ul>
166166

167167
<p><a class="all" href="javascript:show('')">All files</a></p>
168168
<ul>
169-
<li><a id="file0" href="javascript:show('file0')">hs/app/Main.hs (1)</a></li>
169+
<li>No files</li>
170170
</ul>
171171

172172
</div>
@@ -177,15 +177,7 @@
177177
- a tool to suggest improvements to your Haskell code.
178178
</p>
179179

180-
<div class="hint0 file0">
181-
hs/app/Main.hs:30:3-10: Warning: Use putTextLn<br/>
182-
Found<br/>
183-
<pre><span class='hs-definition'>putStrLn</span></pre>
184-
Perhaps<br/>
185-
<pre><span class='hs-definition'>putTextLn</span></pre>
186-
187-
</div>
188-
180+
No hints
189181
</div>
190182
<script type='text/javascript'>
191183
show(window.location.hash.slice(1), true);

docs/reports/stan.html

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

helps.cabal

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.4
22

33
name: helps
4-
version: 0.2.4.3
4+
version: 0.2.4.4
55
synopsis: HELPS - Heavenly Esoteric Little Pre Schemer for Esoteric Languages
66
description: Please see the README on GitHub at <https://github.com/helvm/helps#readme>
77
homepage: https://helvm.org/helps/
@@ -32,10 +32,12 @@ flag ghcoptions
3232

3333
common common-options
3434
build-depends:
35-
base < 4.21
36-
, rio
35+
base < 5
3736
, relude
3837
, helio
38+
mixins:
39+
base hiding (Prelude)
40+
, relude (Relude as Prelude, Relude.Extra, Data.Text)
3941
default-language: Haskell2010
4042
default-extensions:
4143
EmptyDataDecls
@@ -128,11 +130,13 @@ executable helps
128130
hs-source-dirs: hs/app
129131
main-is: Main.hs
130132
other-modules:
131-
AppOptions
132-
Lang
133+
HelVM.HelPS.AppOptions
134+
HelVM.HelPS.Lang
133135

134136
build-depends:
135137
helps
138+
, rio
139+
, optparse-simple
136140
, optparse-applicative
137141
, text
138142

0 commit comments

Comments
 (0)