Skip to content

Instantly share code, notes, and snippets.

266730
266730
266730
266730
266730
266730
266730
266730
266730
266730
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
import Data.Acid
import Data.SafeCopy
import Data.Typeable
import Control.Monad.State (get, put)
data Foo = Foo String
{-# LANGUAGE ScopedTypeVariables #-}
data Foo a = Foo {
fooInt :: Int,
fooA :: a
}
-- Foo has its own indexes as well as all the indexes of a.
logic =
true:
4: ['3 Brights + Rain Man', 7]
5: ['5 Brights', 10]
false:
3: ['3 Brights', 5]
4: ['4 Brights', 8]
[@bright_type, @bright] = logic[has(captures, RAIN_MAN)][num_20pt_cards] or ['<none>', 0]
import System.Process
import GHC.IO.Handle
import Text.Blaze.Html (Html)
import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as BL
convertHtml :: Html -> IO B.ByteString
Using a sandbox located at C:\Users\Christian\Desktop\test\.cabal-sandbox
Searching for ghc in path.
Found ghc at C:\Program Files (x86)\Haskell Platform\2013.2.0.0\bin\ghc.exe
("C:\\Program Files (x86)\\Haskell Platform\\2013.2.0.0\\bin\\ghc.exe",["--numeric-version"])
C:\Program Files (x86)\Haskell Platform\2013.2.0.0\bin\ghc.exe is version
7.6.3
looking for tool ghc-pkg near compiler in C:\Program Files (x86)\Haskell
Platform\2013.2.0.0\bin
found ghc-pkg in C:\Program Files (x86)\Haskell
Platform\2013.2.0.0\bin\ghc-pkg.exe
data Action a where
AddUser :: Username -> Password -> Action UserId
DeleteUser :: UserId -> Action ()
deriving (Typeable)
data Action a where
AddUser :: Username -> Password -> Action UserId
DeleteUser :: UserId -> Action ()
deriving (Typeable)