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 ForeignFunctionInterface, QuasiQuotes #-} | |
module Main where | |
import Text.Blaze | |
import Text.Blaze.Renderer.String | |
import Text.Hamlet -- provided by hamlet package | |
foreign import ccall safe "sin" c_testImport :: Double -> IO Double |
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
#!/bin/bash | |
install_src_pkg() { | |
wget -q "http://ghcjs.github.io/packages/cabal-src/$1/$2/$1-$2.tar.gz" | |
tar -xzf "$1-$2.tar.gz" | |
cd "$1-$2" | |
cabal-src-install --src-only | |
cd .. | |
} |
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 TypeFamilies, | |
MultiParamTypeClasses, | |
FlexibleInstances, | |
UndecidableInstances, | |
FunctionalDependencies #-} | |
import Control.Concurrent | |
import Control.Monad | |
import Control.Monad.Fix |
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 ForeignFunctionInterface, QuasiQuotes #-} | |
module Main where | |
import Text.Blaze | |
import Text.Blaze.Renderer.String | |
import Text.Hamlet -- provided by hamlet package | |
foreign import ccall safe "sin" c_testImport :: Double -> IO Double |
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 ForeignFunctionInterface, QuasiQuotes #-} | |
module Main where | |
import Text.Blaze | |
import Text.Blaze.Renderer.String | |
import Text.Hamlet -- provided by hamlet package | |
foreign import ccall safe "sin" c_testImport :: Double -> IO Double |
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 QuasiQuotes #-} | |
module B where | |
import Text.Hamlet | |
import Text.Blaze | |
f :: Markup | |
f = [shamlet| <h1>Hello | |
<p>world |
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 ScopedTypeVariables #-} | |
module Main where | |
import Control.Applicative | |
import Control.Concurrent | |
import Control.Monad | |
import Data.Time.Clock | |
import Diagrams.Prelude | |
import Diagrams.Backend.Cairo | |
import System.Posix.Process |
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
/* | |
StgRec [ | |
( Main.listAppend,StgRhsClosure CostCentreStack StgBinderInfo [] ReEntrant SRT [ds,l2] | |
( StgCase | |
( StgApp ds [] | |
) | |
UniqSet UniqSet wild SRT Alg Main.List [ | |
( DataAlt Main.Cons,[a,l1],[True,True],StgLet | |
( StgNonRec sat_s1Dy | |
( StgRhsClosure CostCentreStack StgBinderInfo [l1,l2] Updatable SRT [] |
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
/* | |
StgRec [ | |
( Main.listAppend,StgRhsClosure CostCentreStack StgBinderInfo [] ReEntrant SRT [ds,l2] | |
( StgCase | |
( StgApp ds [] | |
) | |
UniqSet UniqSet wild SRT Alg Main.List [ | |
( DataAlt Main.Cons,[a,l1],[True,True],StgLet | |
( StgNonRec sat_s1OT | |
( StgRhsClosure CostCentreStack StgBinderInfo [l1,l2] Updatable SRT [] |
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
/* | |
StgRec [ | |
( Fibs.$wfib,StgRhsClosure CostCentreStack StgBinderInfo [] ReEntrant SRT [ww] | |
( StgCase | |
( StgApp ww [] | |
) | |
UniqSet UniqSet ds SRT Prim GHC.Prim.Int# [ | |
( DEFAULT,[],[],StgCase | |
( StgOpApp | |
( StgPrimOp IntSubOp |
NewerOlder