This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE MultiParamTypeClasses, ExistentialQuantification, ScopedTypeVariables, FlexibleInstances, FlexibleContexts, UndecidableInstances #-} | |
| module TransientCont where | |
| -- some imports | |
| import Control.Applicative | |
| import Control.Monad.IO.Class | |
| import Control.Monad.Trans |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- hplayground by Alberto modified by mark mann | |
| -- keeps score for up to nine players for many rounds | |
| -- identify user and record round by round results | |
| {-# LANGUAGE DeriveDataTypeable, FlexibleInstances, UndecidableInstances #-} | |
| module Main where | |
| import Haste | |
| import Haste.Foreign |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| main= keep' $ do | |
| r <- choose [1..10] | |
| liftIO $ print r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| no user package environment file found at /devel/transient | |
| no user package environment file found at /devel/transient | |
| Searching for eta in path. | |
| Found eta at /root/.local/bin/eta | |
| /root/.local/bin/eta --numeric-version | |
| /root/.local/bin/eta is version 0.0.9.1 | |
| no user package environment file found at /devel/transient | |
| Searching for eta-pkg in path. | |
| Found eta-pkg at /root/.local/bin/eta-pkg | |
| /root/.local/bin/eta-pkg --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, UndecidableInstances #-} | |
| import Control.Applicative | |
| import Control.Monad.IO.Class | |
| import Control.Monad.Trans | |
| import GHC.Conc | |
| import System.IO.Unsafe | |
| import Data.IORef | |
| import Control.Concurrent.MVar | |
| import qualified Data.Map as M | |
| import Data.Typeable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE RecordWildCards #-} | |
| module Main where | |
| import Unsafe.Coerce | |
| import Transient.Internals | |
| import Transient.Indeterminism | |
| import Control.Monad.State | |
| import System.IO.Unsafe | |
| import Control.Monad | |
| import Control.Applicative |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE RecordWildCards #-} | |
| module Main where | |
| import Unsafe.Coerce | |
| import Transient.Internals | |
| import Transient.Indeterminism | |
| import Control.Monad.State | |
| import System.IO.Unsafe | |
| import Control.Monad | |
| import Control.Applicative |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ./execthirdline.sh | |
| -- compile it with ghcjs and execute it with runghc | |
| -- set -e && port=`echo ${3} | awk -F/ '{print $(3)}'` && docker run -it -p ${port}:${port} -v $(pwd):/work agocorona/transient bash -c "mkdir -p static && ghcjs /work/${1} -o static/out && runghc /work/${1} ${2} ${3}" | |
| -- usage: ./webapp.hs -p start/<docker ip>/<port> | |
| {-# LANGUAGE CPP #-} | |
| module Main where |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- hplayground by mark mann | |
| -- identify user and record round by round results | |
| {-# LANGUAGE DeriveDataTypeable, FlexibleInstances, UndecidableInstances #-} | |
| module Main where | |
| import Haste | |
| import Haste.Foreign | |
| import Haste.LocalStorage | |
| import Haste.JSON (JSON(..)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from agocorona/transient-0.4.4.1 |