code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Natural where
data Nat =
Zero
| Succ Nat
deriving (Eq, Show)
exampleNat = Succ (Succ (Succ Zero))
natToInteger :: Nat -> Integer
natToInteger Zero = 0
natToInteger (Succ n) = 1 + natToInteger n
integerToNat :: Integer -> Maybe Nat
integerToNat n
| n == 0 = Just Zero
| n < 0 = Nothing
| o... | andrewMacmurray/haskell-book-solutions | src/ch12/natural.hs | mit | 402 | 0 | 11 | 117 | 183 | 91 | 92 | 16 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Hirc.Bot where
import Control.Concurrent
import Control.Monad
import Control.Monad.State
import Data.Attoparsec.Text (parseOnly)
import Data.List as L
import Data.Monoid ((<>))
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Text.IO as T
import qu... | xintron/Hirc | Hirc/Bot.hs | mit | 4,151 | 0 | 21 | 1,150 | 1,212 | 604 | 608 | 85 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Fm where
import Data.List
import qualified Data.Text as T
import System.Random
toDouble :: Int -> Double
toDouble x = (read (show x)) :: Double
rM :: Int -> IO Int
rM x = getStdRandom (System.Random.randomR ((1,x) :: (Int,Int)))
start :: Int -> Int ->... | dschalk/score3 | Fm.hs | mit | 8,848 | 0 | 27 | 3,182 | 4,073 | 2,171 | 1,902 | 189 | 1 |
import Data.Maybe
import Data.Foldable
import Data.Monoid
{-
Reminder: in Chapter 18 we wrote the following:
(I weakened the contraint from Monad to Applicative)
-}
meh :: Applicative m => [a] -> (a -> m b) -> m [b]
meh (x:[]) f = (:[]) <$> f x
meh (x:xs) f = (:) <$> (f x) <*> meh (xs) f
flipType :: (Applicative m) =... | NickAger/LearningHaskell | HaskellProgrammingFromFirstPrinciples/Chapter21.hsproj/Chapter21.hs | mit | 886 | 0 | 10 | 206 | 181 | 100 | 81 | 8 | 1 |
{-# htermination plusFM :: FiniteMap Int b -> FiniteMap Int b -> FiniteMap Int b #-}
import FiniteMap
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/FiniteMap_plusFM_5.hs | mit | 102 | 0 | 3 | 18 | 5 | 3 | 2 | 1 | 0 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
-- | Types for the application.
module Types where
import qualified Control.Lens as Lens
import Data.Map.Strict (Map)
import Data.Maybe
import Data.Text (Text)
import Prelude hiding (pi)
import React.Ace (... | fpco/stackage-view | client/Types.hs | mit | 1,010 | 0 | 13 | 246 | 278 | 159 | 119 | 47 | 0 |
module Y2016.M08.D18.Exercise where
import Data.Aeson
import Data.Relation
import Graph.JSON.Cypher.Read.Graphs
import Y2016.M08.D15.Exercise (twitterGraphUrl)
{--
Yesterday, we've delevoped labeled, directional relations: darts and then
related those darts to the originating tweets.
Great.
But all those related ... | geophf/1HaskellADay | exercises/HAD/Y2016/M08/D18/Exercise.hs | mit | 1,421 | 0 | 8 | 217 | 106 | 66 | 40 | 10 | 1 |
module MainHelper where
import Control.Concurrent.MVar
import Control.Lens
import qualified Data.Map as M
import Deck
import State
-- This module is stuff that is needed for various main-type things, but I don't know
-- where else to put it
blankGame stateChannel iore... | mplamann/magic-spieler | src/MainHelper.hs | mit | 2,895 | 0 | 16 | 1,246 | 658 | 378 | 280 | 67 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Control.AFSM.Util
-- Copyright : (c) Hanzhong Xu, Meng Meng 2016,
-- License : MIT License
--
-- Maintainer : hanzh.xu@gmail.com
-- Stability : experimental
-- Portability : portable
----------------------... | PseudoPower/AFSM | src/Control/AFSM/Util.hs | mit | 1,509 | 0 | 13 | 415 | 686 | 367 | 319 | 26 | 1 |
module Main
( main
) where
import Brick
import Brick.Widgets.Border
import Brick.Widgets.Center
import Data.List
import Graphics.Vty.Attributes (defAttr)
import Graphics.Vty.Input.Events
vhLimit :: Int -> Int -> Widget a -> Widget a
vhLimit v h = vLimit v . hLimit h
data RName = RName deriving (Eq, Ord)
type Co... | Javran/misc | brick-playground/src/Main.hs | mit | 2,319 | 0 | 14 | 655 | 1,044 | 550 | 494 | 58 | 3 |
module Message where
import Data.Either
-- 型
type Fragile = Either String -- 要素かエラーメッセージを持つ
-- 成功メッセージ
mMatch = ""
-- エラーメッセージ
emlNonBracketPair sb eb = Left $ "Not found bracket pair " ++ sb:' ':eb:'.':[]
emlNonObjectKeyValuePair x = Left $ "Not found object content key value pair. (" ++ x ++ ")"
emlNonVal... | yobiya/jcc | message.hs | mit | 775 | 0 | 10 | 191 | 182 | 96 | 86 | 12 | 1 |
{-# LANGUAGE DataKinds #-}
import GHC.TypeLits
import Numeric.LinearAlgebra.Static
import qualified Numeric.LinearAlgebra.HMatrix as LA
a = row (vec4 1 2 3 4)
u = vec4 10 20 30 40
v = vec2 5 0 & 0 & 3 & 7
| kuitang/monad-learner | static.hs | mit | 208 | 0 | 8 | 42 | 78 | 43 | 35 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Util.Common (
ConnError(FailedConnection, WikiResponseNotOk, CouldNotParseArticle),
FatalError(UnknownFatalError, CouldntParseRequest),
ArticleExists(ArticleExists),
RevisionRes(RevisionRes),
ExistsRes(ExistsRes),
) where
import qualified Network.HTTP as HTTP
im... | AKST/wikit | socket-server/src/Util/Common.hs | mit | 2,723 | 0 | 18 | 641 | 735 | 402 | 333 | 88 | 2 |
{-
This module implements Euler method as covered in the homework for Unit 2.
-}
module Unit_2
( main
)
where
import Control.Monad
eulerMethod fRateOfChange dt seed = zip [0, dt ..] (iterate next seed)
where
next st = st + rateOfChange * dt
where
rateOfChange = fRateOfChange st
exactSol se... | Javran/misc | dynamical-systems/src/Unit_2.hs | mit | 691 | 0 | 16 | 218 | 256 | 134 | 122 | 20 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Graphics.Ninja.GL.Uniform where
import Control.Applicative
import Control.Monad.IO.Class
import Data.Coerce
import D... | fatho/ninja | src/Graphics/Ninja/GL/Uniform.hs | mit | 9,757 | 0 | 14 | 1,713 | 3,865 | 2,021 | 1,844 | 167 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Models.RecurringTask.Fields where
import Database.Persist.TH
data RecurringStatus = Todo | Done | Skip
deriving (Show, Read, Eq)
derivePersistField "RecurringStatus"
| ostapneko/stld2 | src/main/Models/RecurringTask/Fields.hs | mit | 230 | 0 | 6 | 47 | 48 | 28 | 20 | 6 | 0 |
module WaveTest (testsWave) where
import Types
import Wave
import qualified Data.Vector.Unboxed as V
import Test.HUnit
import Test.QuickCheck
import Test.Framework
import Test.Framework.Providers.HUnit
import Test.Framework.Providers.QuickCheck2
instance (Arbitrary a, V.Unbox a) => Arbitrary (V.Vector a) where
ar... | garncarz/synth-haskell | WaveTest.hs | gpl-2.0 | 910 | 8 | 10 | 124 | 263 | 148 | 115 | 22 | 1 |
{-# LANGUAGE RecordWildCards #-}
module Main where
import qualified Data.Vector as V
import qualified Data.HashMap.Strict as HM
import Options.Applicative
import Data.Binary
import Data.Complex
import Texture.TesseractGrid
import Texture.Orientation
import Texture.SphericalHarmonics
import Texture.HyperSphere
data... | lostbean/sphermonics | tablegen/Main.hs | gpl-3.0 | 2,298 | 0 | 15 | 542 | 775 | 387 | 388 | 68 | 1 |
{-|
Module : Mahjong.Group.Wait
Description : Defines group waits and some operations involving them
Copyright : (c) Leon Medvinsky, 2014
License : GPL-3
Maintainer : lmedvinsky@hotmail.com
Stability : experimental
Portability : portable
-}
module Mahjong.Group.Wait (
-- * Da... | raymoo/applepai | src/Mahjong/Group/Wait.hs | gpl-3.0 | 4,703 | 0 | 11 | 1,454 | 1,309 | 673 | 636 | -1 | -1 |
-- Copyright (c) 2016 Michael Smith.
-- This file is part of Glyph Editor.
-- Glyph Editor is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | spinda/glyph-editor | app/Model.hs | gpl-3.0 | 7,601 | 0 | 14 | 1,504 | 2,010 | 1,048 | 962 | 159 | 2 |
{- This file is part of PhoneDirectory.
Copyright (C) 2009 Michael Steele
PhoneDirectory is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any lat... | mikesteele81/Phone-Directory | src/TestName.hs | gpl-3.0 | 2,565 | 0 | 13 | 543 | 525 | 270 | 255 | -1 | -1 |
module Extraction.Untyped ( UntypedLC
, ExtrError
, extract
, ppUntyped
, ppExtrError )
where
import Data.List (intersperse)
import Reduce (reduceObject)
import Representation (Nat)
import qualified Representation... | lambda-11235/ttyped | src/Extraction/Untyped.hs | gpl-3.0 | 5,113 | 0 | 16 | 1,351 | 1,784 | 890 | 894 | 112 | 6 |
{-# LANGUAGE OverloadedStrings #-}
module Args (options) where
import Types
import Options.Applicative
import qualified Data.Text as T
config :: Parser Config
config = Config <$> pure True
<*> pure defaultColors
<*> (fmap T.pack . strOption $ (long "title" <> short 't' <> help "The t... | fgaray/persist2er | src/Args.hs | gpl-3.0 | 701 | 0 | 13 | 197 | 199 | 100 | 99 | 14 | 1 |
--
-- Copyright (c) 2017 Daniel Gonçalves da Silva - https://github.com/danielgoncalvesti
-- GPL version 3 or later (see http://www.gnu.org/copyleft/gpl.html)
--
module Main where
mult35 :: Integer -> Bool
mult35 x = (x `rem` 3) == 0 || (x `rem` 5) == 0
main :: IO()
main = do
print(mult35 3)
print(mult35 5) | danielgoncalvesti/BIGDATA2017 | Atividade01/Haskell/Activity1/Exercises1/Ex4.hs | gpl-3.0 | 313 | 0 | 9 | 55 | 94 | 52 | 42 | 7 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Returncarrier/Patch.hs | mpl-2.0 | 6,104 | 0 | 20 | 1,422 | 904 | 523 | 381 | 131 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/Instances/SetLabels.hs | mpl-2.0 | 5,222 | 0 | 19 | 1,234 | 638 | 380 | 258 | 97 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.SecurityCenter
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozil... | brendanhay/gogol | gogol-securitycenter/gen/Network/Google/SecurityCenter.hs | mpl-2.0 | 19,709 | 0 | 31 | 3,306 | 1,805 | 1,318 | 487 | 393 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/RegionHealthChecks/Get.hs | mpl-2.0 | 4,000 | 0 | 16 | 904 | 468 | 280 | 188 | 78 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-ses/gen/Network/AWS/SES/SendEmail.hs | mpl-2.0 | 6,839 | 0 | 10 | 1,506 | 739 | 457 | 282 | 82 | 1 |
module Network.Haskoin.Crypto.Hash.Tests (tests) where
import Test.Framework (Test, testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Network.Haskoin.Crypto.Hash
import Network.Haskoin.Crypto.BigWord
tests :: [Test]
tests =
[ testGroup "Hash tests"
[ testProperty "join512( sp... | nuttycom/haskoin | tests/Network/Haskoin/Crypto/Hash/Tests.hs | unlicense | 1,038 | 0 | 10 | 233 | 223 | 124 | 99 | 17 | 1 |
module Poset.A334230Spec (main, spec) where
import Test.Hspec
import Poset.A334230 (a334230)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A334230" $
it "correctly computes the first 20 elements" $
map a334230 [1..20] `shouldBe` expectedValue where
expectedValue = [1,1,2,1,2,3,1,2,2,4,1,2,... | peterokagey/haskellOEIS | test/Poset/A334230Spec.hs | apache-2.0 | 337 | 0 | 8 | 57 | 154 | 92 | 62 | 10 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QPrintDialog.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:21
Warning : this file is machine generated - do ... | uduki/hsQt | Qtc/Gui/QPrintDialog.hs | bsd-2-clause | 46,342 | 0 | 14 | 7,399 | 14,913 | 7,560 | 7,353 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module YesodDsl.AST where
import Data.Maybe
import Data.List
import Data.Char
import Data.Data (Data)
import Data.Typeable (Typeable)
import Data.Generics.Uniplate.Data
import qualified Data.Map as Map
data Module = Module {
modName :: Maybe String,
modEntities :: [E... | abrim/yesod-dsl | YesodDsl/AST.hs | bsd-2-clause | 11,268 | 0 | 15 | 3,193 | 3,326 | 1,845 | 1,481 | 291 | 9 |
-- | Core Process code
{-# LANGUAGE ExistentialQuantification, FlexibleInstances,
GeneralizedNewtypeDeriving,
ScopedTypeVariables,
DeriveDataTypeable,
MultiParamTypeClasses, CPP #-}
module Process (
-- * Types
Process
-- * Interface
, runP
, spa... | rethab/combinatorrent | src/Process.hs | bsd-2-clause | 3,492 | 0 | 18 | 986 | 851 | 450 | 401 | 69 | 1 |
{-|
Module : Grid2048
Description : Library with 2048 game grid logic.
Copyright : (c) Joanna Sendorek, Michał Borzęcki, 2017
-}
module Grid2048
( RowState
, GridState
, isGameWon
, isGameFinished
, getCellLabel
, insertNRandomInGrid
, insertRandomInGrid
, makeMove
) where
import Data.List
... | joanna-/2048Haskell | src/Grid2048.hs | bsd-3-clause | 4,337 | 0 | 14 | 834 | 1,279 | 679 | 600 | 85 | 3 |
module ProjectEuler.Problem055 (solution055) where
import Control.Monad
import Data.Digits
import Util
reverseInteger :: Integer -> Integer
reverseInteger = unDigits 10 . digitsRev 10
isDecPalindrome :: Integer -> Bool
isDecPalindrome = isPalindrome . digits 10
isLychrel :: Integer -> Bool
isLychrel = all (not . is... | guillaume-nargeot/project-euler-haskell | src/ProjectEuler/Problem055.hs | bsd-3-clause | 568 | 0 | 10 | 90 | 173 | 92 | 81 | 15 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Network.API.GoogleDictionary.Types where
import Control.Applicative
import Control.Monad (mzero)
import Data.Aeson
data Response = Response
{ responsePrimaries :: [Primary]
, responseQuery :: String
, responseSourceLanguage :: String
, responseT... | mitchellwrosen/google-dictionary-api | Network/API/GoogleDictionary/Types.hs | bsd-3-clause | 2,990 | 0 | 13 | 928 | 796 | 431 | 365 | 97 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Timer
where
import Control.Lens
import Control.Monad
import Control.Monad.Operational
import Card
data Timer = Timer
{ _countDown :: Int
, _block :: Bool
, _timerOrigin :: Origin
, _countDownEffect :: CardEffect
}
makeLenses ''Timer
drawTimer :: Timer -> String
... | rubenpieters/gre-project | shared/src/Timer.hs | bsd-3-clause | 935 | 0 | 9 | 207 | 239 | 134 | 105 | -1 | -1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
module Duckling.D... | rfranek/duckling | tests/Duckling/Duration/SV/Tests.hs | bsd-3-clause | 605 | 0 | 9 | 98 | 80 | 51 | 29 | 11 | 1 |
--
-- Module : Chop
-- Copyright : (c) Conrad Parker 2006
-- License : BSD-style
-- Maintainer : conradp@cse.unsw.edu.au
-- Stability : experimental
-- Portability : portable
module Codec.Container.Ogg.Chop (
chop,
chopWithSkel
) where
import Control.Monad.Identity
import Control.Monad.State
import... | kfish/hogg | Codec/Container/Ogg/Chop.hs | bsd-3-clause | 10,876 | 0 | 18 | 2,668 | 3,448 | 1,739 | 1,709 | 256 | 4 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
module Development.Shake.Install.Rules
( configureTheEnvironment
, initializ... | alphaHeavy/shake-install | Development/Shake/Install/Rules.hs | bsd-3-clause | 15,478 | 0 | 26 | 3,585 | 3,511 | 1,784 | 1,727 | 321 | 6 |
-- | utilities functions that could be useful
module Yesod.MangoPay.Util where
import Data.Time.Clock.POSIX
import Data.Time.Clock
import Data.Time.Calendar
import Web.MangoPay (MpTime(..))
-- | day to posix time
dayToMpTime :: Day -> MpTime
dayToMpTime = MpTime . utcTimeToPOSIXSeconds . flip UTCTime 0
-- | posix ti... | prowdsponsor/mangopay | yesod-mangopay/src/Yesod/MangoPay/Util.hs | bsd-3-clause | 416 | 0 | 6 | 61 | 92 | 56 | 36 | 9 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
module Duckling.N... | rfranek/duckling | tests/Duckling/Numeral/NB/Tests.hs | bsd-3-clause | 600 | 0 | 9 | 96 | 80 | 51 | 29 | 11 | 1 |
{-# LANGUAGE CPP #-}
module Main where
import Flat
#ifdef ETA_VERSION
import Data.Function(trampoline)
import GHC.IO(trampolineIO)
#else
trampoline = id
trampolineIO = id
#endif
longBools = replicate 1000000 False
main = do
print $ length longBools
print $ (flat longBools)
| tittoassini/flat | test/ListTest.hs | bsd-3-clause | 302 | 0 | 9 | 67 | 69 | 39 | 30 | 9 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
module Hike.Control.Monad.Cache
( CacheT
, Cache
, MonadCache
, cached
, evalCacheT
, evalCache
)
where
import Data.Dynamic
import Data... | jedahu/hike | src/Hike/Control/Monad/Cache.hs | bsd-3-clause | 1,136 | 0 | 12 | 272 | 391 | 209 | 182 | 38 | 1 |
module Memory where
import qualified Data.Map as M
import Data.ByteString.Lazy
import Data.Int
import Data.Binary.Get
import System.IO.Unsafe
import Data.IORef
type State = ([String], [String], [TD]) -- strings, uTs, tDs
data TD = TD {
typeID :: TypeID,
name :: Name,
count :: Count,
fD... | skill-lang/skill | deps/haskell/Memory.hs | bsd-3-clause | 3,292 | 0 | 11 | 1,362 | 652 | 405 | 247 | 69 | 1 |
markup = <div>
<h1>Edit </h1>
<form action=(getViewDataValue_u "post-update" :: View String) method="post">
Title :
<input type="text" id="title" name="title" value=(getViewDataValue_u "post-title"::View String)></input><br /><br />
... | abuiles/turbinado-blog | App/Views/Posts/Edit.hs | bsd-3-clause | 662 | 36 | 14 | 285 | 186 | 97 | 89 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Servant.Server.Internal.BasicAuth where
import Control.Monad (guard)
import Control.Monad.Trans (liftIO)
import qualified Data.ByteString a... | zerobuzz/servant | servant-server/src/Servant/Server/Internal/BasicAuth.hs | bsd-3-clause | 2,790 | 0 | 13 | 629 | 584 | 322 | 262 | 49 | 5 |
{-# LANGUAGE ScopedTypeVariables #-}
module Pos.Infra.Diffusion.Subscription.Status
( SubscriptionStatus (..)
, SubscriptionStates (..)
, emptySubscriptionStates
, subscribing
, subscribed
, terminated
, Changes (..)
, changes
, withChanges
) where
import Prelude
im... | input-output-hk/pos-haskell-prototype | infra/src/Pos/Infra/Diffusion/Subscription/Status.hs | mit | 2,910 | 0 | 16 | 704 | 790 | 413 | 377 | -1 | -1 |
{-|
Module : Models.Complementary
Description : A class for events with a complementary relation.
Copyright : (c) 2017 Pascal Poizat
License : Apache-2.0 (see the file LICENSE)
Maintainer : pascal.poizat@lip6.fr
Stability : experimental
Portability : unknown
-}
module Models.Complementary (
Complementar... | pascalpoizat/veca-haskell | src/Models/Complementary.hs | apache-2.0 | 764 | 0 | 7 | 134 | 79 | 47 | 32 | 8 | 1 |
-- | Contains user-related actions, like finding friends or retrieving a
-- user's comments or information.
module Reddit.Actions.User
( getUserInfo
, aboutMe
, getUserComments
, getUserComments'
, getUserPosts
, getUserPosts'
, isUsernameAvailable
, getBlockedUsers
, getFriends
, lookupUserFlair
... | FranklinChen/reddit | src/Reddit/Actions/User.hs | bsd-2-clause | 3,220 | 0 | 12 | 536 | 696 | 369 | 327 | 61 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
-- | One-time password implementation as defined by the
-- <http://tools.ietf.org/html/rfc4226 HOTP> and <http://tools.ietf.org/html/rfc6238 TOTP>
-- specifications.
--
-- Both implementations use a shared key between the client and the server. HOTP passwords
-- are based on a sync... | vincenthz/cryptonite | Crypto/OTP.hs | bsd-3-clause | 6,530 | 0 | 17 | 1,522 | 1,312 | 728 | 584 | 105 | 2 |
--------------------------------------------------------------------------------
-- Copyright © 2011 National Institute of Aerospace / Galois, Inc.
--------------------------------------------------------------------------------
{-# LANGUAGE Safe #-}
{-# LANGUAGE ExistentialQuantification, GADTs #-}
module Copilot.Co... | leepike/copilot-core | src/Copilot/Core/Type/Show.hs | bsd-3-clause | 2,098 | 0 | 11 | 503 | 379 | 206 | 173 | 50 | 11 |
module ShowEvents where
import qualified Github.Issues.Events as Github
import Data.List (intercalate)
import Data.Maybe (fromJust)
main = do
possibleEvent <- Github.event "thoughtbot" "paperclip" 5335772
case possibleEvent of
(Left error) -> putStrLn $ "Error: " ++ show error
(Right event) -> do
... | jwiegley/github | samples/Issues/Events/ShowEvent.hs | bsd-3-clause | 1,645 | 0 | 13 | 328 | 444 | 220 | 224 | 33 | 8 |
module PlatformDB
( release, releaseWithMinimal, deltaFrom,
incGHC, incGHCLib, incGHCTool, incLib, incTool,
notWindows, onlyWindows,
allRelIncludes,
allPackages,
corePackages,
platformPackages,
packagesByIncludeFilter,
isGhc, isWindows, isNotWindows, isLib, isTool
... | erantapaa/haskell-platform | hptool/src/PlatformDB.hs | bsd-3-clause | 4,066 | 0 | 13 | 780 | 1,017 | 549 | 468 | 72 | 4 |
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
module Upload.Config where
import Autolib.ToDoc
import Autolib.Reader
import Data.Typeable
data Config =
Config { aufgabe :: String
, punkte :: Integer
}
deriving ( Typeable )
$(derives [makeReader, makeToDoc] [''Config])
example :: Config ... | florianpilz/autotool | src/Upload/Config.hs | gpl-2.0 | 443 | 6 | 9 | 98 | 106 | 64 | 42 | 14 | 1 |
{-# LANGUAGE MultiParamTypeClasses, DeriveDataTypeable, TypeSynonymInstances, FlexibleContexts, PatternGuards #-}
----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.Minimize
-- Copyright : (c) Jan Vornberger 2009, Alejandro Serrano 2010
-- License : ... | kmels/xmonad-launcher | XMonad/Layout/Minimize.hs | bsd-3-clause | 5,903 | 0 | 24 | 1,525 | 1,309 | 674 | 635 | 85 | 1 |
module Utils.Stream where
import Control.Applicative
import Control.Monad
import Control.Monad.Trans
-- This module provides Monadic streams.
-- | Stream of monadic values
data Stream m a = Terminated | Value (m (a,Stream m a))
-- | Attaching side effects
sideEffect :: (Monad m) => (a -> m ()) -> Stream m a -> Strea... | BeautifulDestinations/CV | Utils/Stream.hs | bsd-3-clause | 5,540 | 14 | 18 | 1,668 | 2,422 | 1,253 | 1,169 | 132 | 4 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Dependency.TopDown.Types
-- Copyright : (c) Duncan Coutts 2008
-- License : BSD-like
--
-- Maintainer : cabal-devel@haskell.org
-- Stability : provisional
-- Portability : portable
--
-... | headprogrammingczar/cabal | cabal-install/Distribution/Client/Dependency/TopDown/Types.hs | bsd-3-clause | 5,396 | 0 | 9 | 1,054 | 714 | 403 | 311 | 83 | 0 |
{-# LANGUAGE ForeignFunctionInterface #-}
{-| Necessary foreign function calls
...with foreign functions declared in unistd.h
-}
{-
Copyright (C) 2014 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditi... | apyrgio/ganeti | src/Ganeti/Utils/UniStd.hs | bsd-2-clause | 2,159 | 0 | 9 | 350 | 157 | 88 | 69 | 13 | 1 |
-- This program should run in constant space.
module Main
( main
) where
import qualified Data.ByteString.Lazy as BL
import Data.Csv
main = print $ BL.length $ encode $ replicate 10000000 $ Only (1 :: Int)
| plow-technologies/cassava | benchmarks/Laziness.hs | bsd-3-clause | 216 | 0 | 9 | 46 | 59 | 35 | 24 | 5 | 1 |
{-# LANGUAGE TypeFamilies #-}
module T4099 where
type family T a
foo :: a -> T a -> Int
foo x = error "urk"
bar1 :: b -> T b -> Int
bar1 a x = foo (error "urk") x
bar2 :: b -> Maybe b -> Int
bar2 a x = foo (error "urk") x
| siddhanathan/ghc | testsuite/tests/indexed-types/should_fail/T4099.hs | bsd-3-clause | 227 | 0 | 7 | 61 | 112 | 57 | 55 | 9 | 1 |
{-# LANGUAGE OverloadedStrings, RecordWildCards, ScopedTypeVariables #-}
module Main where
import qualified Data.Text.Lazy.IO as TL
import qualified Data.Text.Lazy as TL
import qualified Data.Text as T
import Data.Text (Text)
import Data.Maybe
import Options.Applicative ((<>))
import qualified Options.Applicative as O... | danchoi/dsvt | Main.hs | mit | 2,147 | 0 | 19 | 659 | 597 | 317 | 280 | 60 | 3 |
{-# LANGUAGE RecursiveDo,StandaloneDeriving, NoMonomorphismRestriction, TupleSections, FlexibleContexts,ScopedTypeVariables, ConstraintKinds, TemplateHaskell #-}
{-# LANGUAGE GADTs, TemplateHaskell, QuasiQuotes #-}
import Data.FileEmbed
import Data.Dependent.Map (DMap, DSum( (:=>) ) , fromList)
import Data.GADT.Compar... | paolino/LambdaCalculus | LambdaCalculus.hs | mit | 7,695 | 2 | 27 | 1,769 | 1,855 | 935 | 920 | 125 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Data.Makefile.Render.Internal where
import Data.Makefile
import Data.Monoid
import qualified Data.Text.Lazy as TL
import qualified Data.Text.Lazy.IO as TL
import Data.Text.Lazy.Builder
writeMakefile :: FilePath -> Makefile -> IO ()
writeMakefile f = TL.wri... | nmattia/mask | src/Data/Makefile/Render/Internal.hs | mit | 2,154 | 0 | 13 | 498 | 693 | 353 | 340 | 48 | 10 |
import Block
import System.Environment
parseInt :: String -> Int
parseInt = read
main :: IO ()
main = do
[ws,hs] <- fmap (map parseInt) getArgs
print $ numWays ws hs
| nlim/haskell-playground | main/BlockMain.hs | mit | 173 | 1 | 10 | 37 | 83 | 39 | 44 | 8 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ParallelListComp #-}
{-# LANGUAGE TupleSections #-}
module Main where
import Data.Random
import Data.Random.Distribution.MultiNormal
import Numeric.Kalman
import Control.Monad (replicateM)
--import GHC.TypeLits
import Graphics.Rendering.Chart.Easy
import Graphics.Re... | idontgetoutmuch/Kalman | test/Spec.hs | mit | 26,552 | 14 | 23 | 9,000 | 9,651 | 5,113 | 4,538 | 446 | 1 |
-- |Run-time configuration options and a combined Reader-Error monad for
-- keeping track of them
module Jbobaf.Jitro (
-- * Jvacux type
JvacuxT, Jvacux, isOpt, isNopt, xusnada, nupre, fliba, fliba', kavbu,
-- ** Re-exported from Control.Monad.*
runReaderT, throwError, catchError,
-- * Options
Tercuxna(..... | jwodder/jbobaf | haskell/Jbobaf/Jitro.hs | mit | 11,138 | 0 | 9 | 2,166 | 1,344 | 849 | 495 | 177 | 2 |
-- | An implementation of JSON Schema Draft 4 based on 'HashMap Text Value'
-- instead of a custom record type like 'JSONSchema.Draft4'.
--
-- If you're writing code for a new schema specification you probably want
-- to copy this module instead of the 'JSONSchema.Draft4'. While it's
-- less convenient to write schemas... | seagreen/hjsonschema | examples/AlternateSchema.hs | mit | 7,068 | 0 | 15 | 1,899 | 1,529 | 811 | 718 | 141 | 4 |
module GUBS.Solver.MiniSMT (
miniSMT
) where
import Prelude hiding (lookup)
import Text.Read hiding (Symbol,lift)
import Control.Applicative ((<|>))
import qualified Control.Monad.State as St
import Control.Monad.Trans (MonadIO, liftIO, MonadTrans(..))
import Cont... | mzini/gubs | src/GUBS/Solver/MiniSMT.hs | mit | 8,327 | 0 | 18 | 2,189 | 3,018 | 1,576 | 1,442 | -1 | -1 |
{-
This is my xmonad configuration file.
There are many like it, but this one is mine.
If you want to customize this file, the easiest workflow goes
something like this:
1. Make a small change.
2. Hit "super-q", which recompiles and restarts xmonad
3. If there is an error, undo your change and hit ... | jackokaiser/xmonad-ubuntu-conf | xmonad.hs | mit | 14,755 | 11 | 16 | 3,035 | 1,611 | 966 | 645 | 140 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module GhcPkgSpec (main, spec) where
import Helper
import Data.Version hiding (parseVersion)
import GhcPkg
instance Arbitrary Version where
arbitrary = Version <$> listOf1 (choose (0, 20)) <*> pure []
instance Arbitrary Package where
arbitrary ... | sol/depends | test/GhcPkgSpec.hs | mit | 2,396 | 0 | 20 | 597 | 629 | 304 | 325 | 57 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-selectattributes.html
module Stratosphere.ResourceProperties.IoTAnalyticsPipelineSelect... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/IoTAnalyticsPipelineSelectAttributes.hs | mit | 2,818 | 0 | 12 | 253 | 355 | 202 | 153 | 32 | 1 |
module Zeno.Id (
Id, IdCounter (..),
firstId, reservedId, nextId, newIdS
) where
import Prelude ()
import Zeno.Prelude
newtype Id = Id { runId :: Int }
deriving ( Eq, Ord )
class IdCounter a where
newId :: a -> (Id, a)
largestId :: a -> Id
instance IdCounter (a, Id) where
newId (a, id) = (id', (a, id'))... | Gurmeet-Singh/Zeno | src/Zeno/Id.hs | mit | 1,041 | 0 | 14 | 260 | 444 | 242 | 202 | 41 | 2 |
{-# LANGUAGE TemplateHaskell #-}
module Language.Meta.C.Quote where
import Language.Haskell.TH
import Language.Haskell.TH.Lift
import qualified Language.Meta.C.AST as AST
import qualified Language.Meta.C.Literal as L
import Language.Meta.C.Parser
import Language.Meta.SExpr
import Data.Data
import Text.Parsec
import Te... | ykst/MetaC | Language/Meta/C/Quote.hs | mit | 1,279 | 0 | 10 | 216 | 386 | 225 | 161 | 42 | 1 |
module Main where
import Language.K.CellsToXml
import Data.ByteString.Char8
import Prelude hiding (interact)
main :: IO ()
main = interact (either error id . cellsToXml')
| bakineggs/k-framework | tools/k-pipeline/src/cellstoxml.hs | gpl-2.0 | 173 | 0 | 8 | 25 | 55 | 32 | 23 | 6 | 1 |
{-
Copyright (C) 2017 WATANABE Yuki <magicant@wonderwand.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is ... | magicant/flesh | hspec-src/Flesh/Language/Parser/LexSpec.hs | gpl-2.0 | 7,493 | 0 | 24 | 1,997 | 2,126 | 995 | 1,131 | 130 | 1 |
module Tema_18c_TablaConListasDeAsociacion_Spec (main, spec) where
import Tema_18.TablaConListasDeAsociacion
import Test.Hspec
import Control.Exception (evaluate)
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "valor" $ do
it "e1" $
valor t1 6 `shouldBe` -3
it "e2" $
valor t2 2... | jaalonso/I1M-Cod-Temas | test/Tema_18c_TablaConListasDeAsociacion_Spec.hs | gpl-2.0 | 809 | 0 | 16 | 219 | 368 | 195 | 173 | 26 | 2 |
module Main where
import Game.Life
main :: IO ()
main = randomGrid 125 >>= guiSession "John Conway's Game of Life"
| andgate/Life | src/Main.hs | gpl-2.0 | 117 | 0 | 6 | 22 | 34 | 18 | 16 | 4 | 1 |
import Data.Char
import Data.List (sort)
{- Chapter 7.9 Exercises -}
{- 1.
[f x | x <- xs, p x] can be re-expressed as:
map_and_filter f p = map f . filter p
-}
{- 2.
Errata: type definition of all and any should be
(a -> Bool) -> [a] -> Bool
instead of:
(a -> Bool) -> [Bool] -> Bool
-}
all' :: (a ... | rad1al/hutton_exercises | ch07.hs | gpl-2.0 | 5,295 | 0 | 10 | 1,300 | 1,692 | 874 | 818 | 75 | 2 |
module ATP.Real
( qelim )
where
#include "undefined.h"
import ATP.Util.Prelude
import qualified ATP.Complex as C
import ATP.Complex (Sign(..), Ctx, swap, Err, failwith)
import qualified ATP.Cooper as Cooper
import ATP.FormulaSyn
import qualified ATP.Formula as F
import qualified ATP.Poly as P
import qualified AT... | andre-artus/handbook-of-practical-logic-and-automated-reasoning-haskell | src/ATP/Real.hs | gpl-3.0 | 6,119 | 0 | 19 | 1,521 | 2,523 | 1,327 | 1,196 | 142 | 9 |
module Prime where
nth :: Int -> Maybe Integer
nth n =
if n<1
then Nothing
else Just . head $ drop (n-1) primes
primes :: [Integer]
primes =
2 : primes'
where
primes' = sieve [3,5..] 9 primes'
sieve (x:xs) q ps@ ~(p:t)
| x < q = x : sieve xs q ps
| otherwise = sieve [x... | ciderpunx/exercismo | src/Prime.hs | gpl-3.0 | 360 | 0 | 12 | 123 | 195 | 102 | 93 | 13 | 2 |
-- | This module is home for auxiliary functions that augment various other libraries.
module MuPromote.Common.Misc where
-- | Points free manipulation of a list, e.g. @ (+1) <:> (+2) <:> id $ [1,2,3,4] ==> [2,4,3,4] @
(<:>) :: ( a -> a ) -> ( [a] -> [a] ) -> [a] -> [a]
(<:>) hFn tFn (h:t) = hFn h : tFn t
infixr 5 <:>... | plcplc/muPromote-code | collectors/packagekit/Common/Misc.hs | gpl-3.0 | 322 | 0 | 9 | 69 | 90 | 53 | 37 | 4 | 1 |
{-# LANGUAGE DeriveFunctor #-}
module Language.Soiie.AST where
import Data.Functor.Foldable (Fix (..))
import Data.Sequence (Seq)
data File = File
{ fileParams :: Seq VarId
, fileVars :: Seq VarId
, fileStmts :: Seq Stmt
}
deriving (Sho... | HMPerson1/soiie | src/Language/Soiie/AST.hs | gpl-3.0 | 1,758 | 0 | 9 | 741 | 640 | 345 | 295 | 56 | 1 |
module Main where
main = putStrLn "Not supported on this platform"
| talanis85/mudblood | main/Main-Dummy.hs | gpl-3.0 | 68 | 0 | 5 | 12 | 12 | 7 | 5 | 2 | 1 |
-- | La teoría de aritmética.
{-# Language OverloadedStrings #-}
module Equ.Theories.Arith
( -- * Constructores y operadores.
natZero, natSucc, natProd, natSum, natDif
, natMod, natDiv, natNegNum
-- ** Listas de constructores y operadores
, theoryConstantsList
, theoryOperatorsList
, the... | miguelpagano/equ | Equ/Theories/Arith.hs | gpl-3.0 | 9,762 | 0 | 13 | 2,680 | 2,365 | 1,336 | 1,029 | 196 | 1 |
module TestResolve
(tests)
where
import Control.Monad(unless)
import Test.HUnit(Assertion,Test(..),assertEqual,assertFailure)
import Ast(Identifier(..),Def(..),Expr(..))
import Compile(compile)
import Parse(parse)
import Resolve(resolve)
tests :: Test
tests = TestList [
TestCase testSimple,
TestCase test... | qpliu/esolang | gbagbo/hs/TestResolve.hs | gpl-3.0 | 5,933 | 0 | 16 | 1,866 | 1,928 | 1,015 | 913 | 133 | 2 |
module Parse where
import Text.ParserCombinators.Parsec
import Control.Monad
import Sudoku
{- A sudoku fle contains 9 lines of . or numbers 0-9 -}
sudokuFile :: GenParser Char st [Move]
sudokuFile = do
ls <- forM [1..size] (\y -> do
l <- sudokuLine y
_ <- eol
return l
)
return $ concat ls
---- Each line ... | argent0/haskell-learnroad | Sudoku/Parse.hs | gpl-3.0 | 1,040 | 6 | 17 | 253 | 440 | 220 | 220 | 35 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-drive/gen/Network/Google/Resource/Drive/Files/List.hs | mpl-2.0 | 9,330 | 0 | 25 | 2,286 | 1,366 | 795 | 571 | 191 | 1 |
{-# language TypeFamilies #-}
data family F a
data instance F Int = D Int
| lspitzner/brittany | data/Test212.hs | agpl-3.0 | 74 | 0 | 6 | 15 | 21 | 12 | 9 | 3 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Models.User where
import Control.Exception (catch)
import qualified Data.Map as M
import Data.Text (Text)
import qualified Data.Text.IO as TextIO
import GHC.Conc.Sync (TVar, atomically, newTVar, readTVarIO)
import qualif... | inq/agitpunkt | app/Models/User.hs | agpl-3.0 | 1,867 | 0 | 14 | 491 | 620 | 322 | 298 | 50 | 3 |
{- Copyright (C) 2015 Yuval Langer
This file is part of Yasam Sim.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any late... | yuvallanger/yasamsim | src/Main.hs | agpl-3.0 | 10,430 | 0 | 15 | 3,075 | 2,425 | 1,335 | 1,090 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Concurrent (forkIO, threadDelay)
import Control.Monad (forever)
import Control.Monad.IO.Class (liftIO)
import Data.Aeson
import Data.IORef (newIORef, readIORef, writeI... | open-budget/currencies | Main.hs | apache-2.0 | 3,658 | 0 | 17 | 1,034 | 876 | 450 | 426 | 67 | 2 |
module Lib where
import Text.PrettyPrint
import Text.PrettyPrint.HughesPJClass
data Heap a = Nil
| Node a (Heap a) (Heap a)
deriving (Show)
-- I'm sure there's a better way to do this...
maxHeapify :: Ord a => Heap a -> Heap a
-- if the heap is empty or has no children, it's already a max-hea... | rossng/clrs-implementations | src/Lib.hs | apache-2.0 | 1,547 | 0 | 10 | 452 | 614 | 305 | 309 | 37 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QDialogButtonBox.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:35
Warning : this file is machine generated -... | uduki/hsQt | Qtc/Enums/Gui/QDialogButtonBox.hs | bsd-2-clause | 13,685 | 0 | 18 | 2,369 | 2,981 | 1,490 | 1,491 | 329 | 1 |
module Testsuite
(
module T
) where
-- standard modules
-- local modules
import Testsuite.Dipole72 as T
import Testsuite.FlipFlop as T
| spatial-reasoning/zeno | src/Testsuite.hs | bsd-2-clause | 153 | 0 | 4 | 39 | 26 | 19 | 7 | 5 | 0 |
{-|
Module : Learning.TinCan
Description : Interact with Experienced API learning record stores.
Copyright : (c) Thomas Sutton
License : BSD2
Maintainer : me@thomas-sutton.id.au
Stability : experimental
Portability : portable
This module, and it's sub-modules, provides support for interacting
wit... | thsutton/tincan | src/Learning/TinCan.hs | bsd-2-clause | 686 | 0 | 5 | 112 | 59 | 42 | 17 | 9 | 0 |
{-# LANGUAGE BangPatterns #-}
module Main where
import Control.Monad (unless)
import Data.List (isPrefixOf)
import Options.Applicative
import System.Exit (die, exitFailure)
import Web.MarkovBot (getTwInfoFromEnv, textSourceFromRemoteTweetJS, textSourceFromTweetJS, postPoemWithTable)
import Web.MarkovBot.MarkovChain (... | ryota-ka/markov-bot | app/Main.hs | bsd-3-clause | 1,439 | 0 | 14 | 319 | 378 | 196 | 182 | 42 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependenci... | sonyandy/wart | src/Control/Lens/Tuple/Extras.hs | bsd-3-clause | 3,829 | 0 | 17 | 915 | 1,461 | 798 | 663 | -1 | -1 |
-- |
-- Module: FRP.Timeless.Framework.RPG.Scene.MapScene
-- Copyright: (c) 2015 Rongcui Dong
-- License: BSD3
-- Maintainer: Rongcui Dong <karl_1702@188.com>
module FRP.Timeless.Framework.RPG.Scene.MapScene
where
import Prelude hiding ((.), id)
import qualified SDL as SDL
import Control.Monad
import ... | carldong/timeless-RPG | src/FRP/Timeless/Framework/RPG/Scene/MapScene.hs | bsd-3-clause | 1,125 | 0 | 9 | 259 | 229 | 133 | 96 | 23 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.