MFlow  Create and maintain dynamic Web applications as easy and fast as console applications
Thou shall not write request handlers
 This release: 11/06/2014.  agocorona@gmail.com (@agocorona) <>< . issues & bugs .  Mflow Source code,     source code of this site




How to install MFlow

1- Install Haskell

go to:

http://www.haskell.org/platform/

and choose the download for your platform

Follow the instructions.

2 - Install MFlow


At the shell prompt

> cabal update

> cabal install cabal-install

> cabal install monadloc

> cabal install monadloc-pp

> cabal install cpphs

> cabal install MFlow

If you like to install the last  version, with all the texts necessary to run this example application in your PC, get it from:

https://github.com/agocorona/MFlow

3 - Run the MFlow demos


> cd MFlow

> runghc -iDemos Demos/demos-blaze.hs

In a web browser invoke:

http://localhost

or run a short tutorial

> runghc Demos/Tutorial.hs

In a web browser invoke:

http://localhost

or run your hello world in MFlow in a unix shell:

cat > hello.hs

import MFlow.Wai.Blaze.Html.All

main= runNavigation "hello" . step $ do
      name <- page $  b << "your name?" ++> getString Nothing <** submitButton "ok"
      page $ b << ("hello " ++ name) ++> wlink ()  << b << "again?"

press CTRL-D

> runghc hello

In a web browser invoke:

http://localhost

Congrats. you are ready.

comments powered by Disqus