- purescript-prelude
- purescript-console
- purescript-debug
- purescript-partial
- purescript-psci-support
This file contains 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 LambdaCase #-} | |
module CalcCompiler where | |
import Data.Monoid (Monoid,mempty) | |
import Control.Applicative (Applicative, pure, (<$>), (<*>), Alternative, empty, (<|>)) | |
import Control.Arrow (first) | |
import qualified Data.Map as M | |
------------ |
This file contains 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
-- MySDL: some wrappers and utility functions around SDL | |
{-# LANGUAGE LambdaCase #-} | |
module MySDL.MySDL where | |
import Data.Word (Word8) | |
import Data.Text (Text) | |
import Control.Monad (when) | |
import Control.Monad.IO.Class (MonadIO, liftIO) |
This file contains 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
module Colors where | |
import qualified System.Console.ANSI as ANSI | |
main :: IO () | |
main = putStrLn text | |
text :: String | |
text = | |
concat |
This file contains 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
module Main where | |
import System.IO (hSetBuffering, stdin, BufferMode(NoBuffering)) | |
import Control.Monad (unless) | |
import System.Process (system) | |
import System.Environment (getArgs) | |
stepSize :: Int | |
stepSize = 30 |
This file contains 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
import Html | |
import Html.Attributes as Html | |
import List | |
import Signal | |
import Keyboard | |
main = | |
Signal.map (render << .current) (mkSlides slides) |
This file contains 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
module Main where | |
import Prelude | |
import Data.Maybe | |
import Control.Monad.Eff | |
import Graphics.Canvas as C | |
import Signal as S | |
import Signal.DOM as S |
This file contains 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
module Main where | |
import Prelude | |
import Data.Lens | |
import Data.Array | |
import Data.Maybe | |
import Math | |
import Data.Traversable | |
import Control.Monad.Eff |
This file contains 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
module Main where | |
import Prelude | |
import Data.Lens | |
import Data.Array | |
import Data.Maybe | |
import Math | |
import Data.Foldable | |
import Data.Traversable |
This file contains 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 LambdaCase #-} | |
-- http://gilmi.xyz/post/2016/10/14/lisp-to-js | |
module Main where | |
import Control.Applicative (Alternative, empty, (<|>)) | |
import Control.Arrow (first, (***)) | |
import Data.Bool (bool) | |
import Data.List (intercalate) |
OlderNewer