ehaskell: like eruby, ehaskell is embedded haskell.
You can embed haskell in Text file. You can use in html, haskell source, and so on.
<%% ... %%> : <%% import Some.Module %%> <%% h = "hello" %%> <% ... %> : <% ln <- getLine %> <% ... -%> ... <%- ... -%> ... <%- ... %>: <% if b then -%>Yes<%- else -%>No<%-%> <%= ... %> : <%= "hello" %> <%== ... %> : <%== getLine %> <%=$ ... %> : <%=$ 123 %> <%==$ ... %> : <%==$ getClockTime %>
You can put code at top level by <%% ... %%>.
You can put code in do-notation by <% ... %>.
You can get args by <% ... -%> ... <%- ... -%> ... <%- ... %>.
If you write <% func -%>abc<%- def -%>ghi<% jkl %>mno<%- pqr %>,
translate in "func (putStr "abc") def (putStr "ghi") jkl (putStr "mno") pqr" and execute.
You can put dinamic String by <%== .. %>.
And rests (<%= ... %>, <%==$ ... %>, <%=$ ... %>) are just syntax sugar.
<%= some %> == <%== return some %>
<%==$ some %> == <%== some >>= return . show %>
<%=$ some %> == <%== return $ show some %>
Downloads
- ehaskell-0.7.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7 |
---|---|
Dependencies | base, directory, filepath, mtlparse (>=0.0.1), process, regexpr (>=0.3.3), utf8-string, yjtools (>=0.8) [details] |
License | LicenseRef-GPL |
Author | Yoshikuni Jujo <PAF01143@nifty.ne.jp> |
Maintainer | PAF01143@nifty.ne.jp |
Category | Text |
Home page | http://homepage3.nifty.com/salamander/second/projects/ehaskell/index.xhtml |
Uploaded | by YoshikuniJujo at 2008-12-07T11:30:29Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | ehs |
Downloads | 5453 total (10 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2017-01-02 [all 7 reports] |