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 CommandsSpec (spec) where
import Test.Hspec
import Commands (parse, Command(..))
import LambdaWithSynonyms
spec :: SpecWith ()
spec = describe "Commands" $
describe "parse" $ do
it "should parse :help to Help" $ do
parse ":help" `shouldBe` Right Help
parse ":help " `shouldBe` Right Help
... | hughfdjackson/abattoir | test/CommandsSpec.hs | mit | 1,658 | 0 | 18 | 413 | 619 | 298 | 321 | 33 | 1 |
module IRC.Commands where
import Control.Monad.Reader (asks)
import Data (Bot, BotState(..))
import Net (write)
import IRC.Parser (Message(..), Sender(nick))
import Config (Config(..))
privmsg :: String -> String -> Bot ()
privmsg to text = write $ "PRIVMSG " ++ to ++ " :" ++ text
respond' :: Message -> String -> ... | jdiez17/HaskellHawk | IRC/Commands.hs | mit | 993 | 0 | 11 | 283 | 389 | 207 | 182 | 26 | 3 |
module QCheckSpec where
import SpecHelper
-- import Test.Hspec
-- import Test.QuickCheck
-- `main` is here so that this module can be run from GHCi on its own. It is
-- not needed for automatic spec discovery.
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "read" $ do
it "is inver... | akimichi/haskell-labo | test/QCheckSpec.hs | mit | 386 | 0 | 15 | 99 | 88 | 48 | 40 | 9 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.Generics.K
-- Copyright : (c) David Lazar, 2011
-- License : MIT
--
-- Maintainer : lazar6@illinois.edu
-- Stability : experimental
-- Portability : unknown
--
-- Convert K terms to and from 'Data' va... | davidlazar/generic-k | src/Data/Generics/K.hs | mit | 533 | 0 | 5 | 90 | 51 | 38 | 13 | 5 | 0 |
module Import (
module Import
) where
import Happstack.Server as Import (toResponse, ok)
import Web.Routes as Import (showURL)
import Web.Routes.Happstack as Import ()
import Template as Import (layout)
import Sitemap as Impor... | akru/happsite | Import.hs | mit | 323 | 0 | 5 | 127 | 63 | 44 | 19 | 7 | 0 |
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverlappingInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UndecidableInstances #-}
-- | Provi... | pikajude/ruby-qq | src/RubyQQ.hs | mit | 7,327 | 0 | 17 | 1,712 | 1,677 | 918 | 759 | -1 | -1 |
{-# LANGUAGE
UndecidableInstances, OverlappingInstances #-}
module GUI (
MonadGUI(..),
Output(..) )
where
import ClassyPrelude hiding (getLine)
import Control.Monad.Trans
import Control.Monad.Base
class Monad m => MonadGUI m where
getLine :: Text → m Text
getLine... | aelve/Jane | GUI.hs | mit | 1,283 | 0 | 10 | 394 | 454 | 234 | 220 | -1 | -1 |
--
-- Copyright (c) 2012 Citrix Systems, Inc.
--
-- 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 progra... | OpenXT/manager | xenmgr/Vm/Templates.hs | gpl-2.0 | 9,647 | 0 | 17 | 2,642 | 2,604 | 1,314 | 1,290 | 201 | 4 |
module Shared.Drawing (
withBlankScreen
) where
import qualified Graphics.UI.SDL as SDL
import Control.Monad
withBlankScreen :: SDL.Renderer -> IO a -> IO ()
withBlankScreen renderer operation = do
clearScreen renderer
_ <- operation
drawToScreen renderer
clearScreen :: SDL.Renderer -> IO ()
clearSc... | ShigekiKarita/haskellSDL2Examples | src/Shared/Drawing.hs | gpl-2.0 | 546 | 0 | 9 | 105 | 174 | 85 | 89 | 16 | 1 |
module Fixer.VMap(
VMap(),
Proxy(..),
vmapSingleton,
vmapArgSingleton,
vmapArg,
vmapValue,
vmapMember,
vmapProxyIndirect,
vmapPlaceholder,
vmapDropArgs,
vmapHeads
)where
import Data.Monoid(Monoid(..))
import Data.Typeable
import List(intersperse)
import qualified Data.Ma... | dec9ue/jhc_copygc | src/Fixer/VMap.hs | gpl-2.0 | 4,880 | 0 | 17 | 1,210 | 2,320 | 1,222 | 1,098 | -1 | -1 |
{-# OPTIONS_GHC -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Bits
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- S... | kaoskorobase/mescaline | resources/hugs/packages/base/Data/Bits.hs | gpl-3.0 | 11,877 | 11 | 17 | 5,702 | 1,628 | 942 | 686 | 107 | 2 |
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
module BioInf.RNAdesign.CandidateChain where
import Control.Arrow (first)
import Control.Monad (foldM)
import Control.Monad.Primitive
import Control.Monad.Primitive.Class
imp... | choener/RNAdesign | BioInf/RNAdesign/CandidateChain.hs | gpl-3.0 | 4,062 | 0 | 17 | 1,111 | 843 | 467 | 376 | 61 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeOperators #-}
-- | This module exposes a low-level Servant-built API for the LXD daemon.
--
-- You can query this API using Servant functions and a client created
--... | hverr/haskell-lxd-client | src/Network/LXD/Client/API.hs | gpl-3.0 | 21,223 | 0 | 214 | 6,125 | 5,489 | 2,814 | 2,675 | 358 | 4 |
{-# LANGUAGE FlexibleContexts #-}
module TestWait (
testWait
) where
import Data.Maybe (isJust)
import Test.Framework (Test, buildTest, testGroup)
import Test.Framework.Providers.HUnit (testCase)
import Test.HUnit (assertEqual)
import Utils (assertConstantMemory, testLogsOfMatch, runAppWithoutLogging)
import Co... | zoranbosnjak/longrun | test/TestWait.hs | gpl-3.0 | 2,215 | 0 | 13 | 559 | 613 | 307 | 306 | 63 | 1 |
module Sara.Semantic.TypeCheckerTest (typeCheckerGroup) where
import Control.Monad.Except
import Sara.TestUtils.AstGenUtils()
import Sara.TestUtils.AstTestUtils
import Sara.Semantic.TypeChecker
import Sara.Ast.Meta
import Test.Framework
import Test.Framework.Providers.QuickCheck2
import Test.QuickCheck
prop_addsType... | Lykos/Sara | tests/Sara/Semantic/TypeCheckerTest.hs | gpl-3.0 | 662 | 0 | 9 | 86 | 149 | 84 | 65 | 16 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/NodePools/Create.hs | mpl-2.0 | 7,777 | 0 | 24 | 1,894 | 1,099 | 637 | 462 | 167 | 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/SimulateMaintenanceEvent.hs | mpl-2.0 | 4,113 | 0 | 17 | 929 | 467 | 278 | 189 | 78 | 1 |
{-
FCA - A generator of a Formal Concept Analysis Lattice
Copyright (C) 2014 Raymond Racine
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
... | RayRacine/hsfca | src/Data/Fca/CElem.hs | agpl-3.0 | 973 | 0 | 6 | 237 | 69 | 38 | 31 | -1 | -1 |
{-
Created : 2014 Dec 27 (Sat) 14:38:17 by Harold Carr.
Last Modified : 2014 Dec 29 (Mon) 00:11:55 by Harold Carr.
-}
module Lab6 where
import Prelude as P
import Test.HUnit as T
import Test.HUnit.Util as U
-------------------------------------------------------------... | haroldcarr/learn-haskell-coq-ml-etc | haskell/course/2014-10-edx-delft-fp101x-intro-to-fp-erik-meijer/lab6.hs | unlicense | 7,544 | 0 | 32 | 2,115 | 3,614 | 1,914 | 1,700 | 189 | 2 |
{-# LANGUAGE UnicodeSyntax #-}
{-# LANGUAGE RecordWildCards #-}
module Mechanics where
import Types
import Debug.Trace as D
--import Data.Foldable
intersects :: Line → Line → Bool
intersects ((x1,y1), (x2,y2)) ((x3,y3), (x4,y4)) =
isCrossing || isSameLine
where isSameLine = (denominator == 0) && (numerato... | nrolland/racetrack | src/Mechanics.hs | apache-2.0 | 1,008 | 0 | 12 | 244 | 448 | 252 | 196 | 22 | 1 |
module Github.Review.Filters
( sortByCommitDate
, getCommitDate
, ascending
, descending
, offsetByDays
, spanAfter
, getAfterOrMinimum
) where
import Data.List (sortBy)
import Data.Ord
import Data.Time
import Github.Data
import Github.Review.Types
sortByCommitDate :: [RepoCommit] -... | erochest/gitreview-core | Github/Review/Filters.hs | apache-2.0 | 1,200 | 0 | 11 | 295 | 391 | 218 | 173 | 35 | 2 |
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeOperators #-}
-- | K3 Program constructor
module Language.K3.Parser.ProgramBuilder (
defaultRoleName,
processInitsAndRoles,
endpointMethods,
bindSource,
mkRunSourceE,
mkRunSinkE,
declareBuiltins,
resolveFn
) where
import C... | yliu120/K3 | src/Language/K3/Parser/ProgramBuilder.hs | apache-2.0 | 11,059 | 0 | 16 | 2,473 | 3,368 | 1,780 | 1,588 | 203 | 12 |
module Main where
mapcolors = ["red", "green", "blue"]
mapcoloring = [(a, m, g, t, f) | a <- mapcolors, m <- mapcolors, g <- mapcolors, t <- mapcolors, f <- mapcolors, m /= t, m /= a, a /= t, a /= m, a /= g, a /= f, g /= f, g /= t] | frankiesardo/seven-languages-in-seven-weeks | src/main/haskell/day1/mapcoloring.hs | apache-2.0 | 240 | 0 | 7 | 63 | 145 | 79 | 66 | 3 | 1 |
{-| Node freeing scheduler
-}
{-
Copyright (C) 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright notice,
this list of ... | dimara/ganeti | src/Ganeti/HTools/Program/Hsqueeze.hs | bsd-2-clause | 14,540 | 0 | 18 | 3,422 | 3,312 | 1,770 | 1,542 | -1 | -1 |
module PregenKeys where
import qualified Crypto.PubKey.RSA as RSA
import qualified Crypto.PubKey.DSA as DSA
import qualified Crypto.PubKey.DH as DH
import qualified Crypto.PubKey.ECC.ECDSA as ECDSA
import qualified Crypto.Types.PubKey.ECC as ECC
rsaPrivatekey = RSA.PrivateKey
{ RSA.private_pub = rsaPublickey
... | vincenthz/hs-crypto-pubkey | Benchs/PregenKeys.hs | bsd-2-clause | 3,444 | 0 | 8 | 343 | 341 | 206 | 135 | 40 | 1 |
------------------------------------------------------------------------
-- |
-- Module : WaiMiddlewareThrottleSpec
-- Description : WAI Request Throttling Middleware
-- Copyright : (c) 2015 Christopher Reichert
-- License : BSD3
-- Maintainer : Christopher Reichert <creichert07@gmail.com>
-- Stability : ... | circuithub/wai-middleware-throttle | test/WaiMiddlewareThrottleSpec.hs | bsd-3-clause | 1,810 | 0 | 16 | 438 | 306 | 174 | 132 | 31 | 1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, DeriveFunctor,
PatternGuards #-}
module Core.Typecheck where
import Control.Monad.State
import Debug.Trace
import qualified Data.Vector.Unboxed as V (length)
import Core.TT
import Core.Evaluate
-- To check conversion, normalise each term wrt the cu... | christiaanb/Idris-dev | src/Core/Typecheck.hs | bsd-3-clause | 10,860 | 26 | 24 | 4,321 | 3,480 | 1,788 | 1,692 | 208 | 42 |
-- http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_7_C
-- Spreadsheet
-- input:
-- 4 5
-- 1 1 3 4 5
-- 2 2 2 4 5
-- 3 3 0 1 1
-- 2 3 4 4 6
-- output:
-- 1 1 3 4 5 14
-- 2 2 2 4 5 15
-- 3 3 0 1 1 8
-- 2 3 4 4 6 19
-- 8 9 9 13 17 56
import Control.Applicative ((<$>))
import qualified Control.Monad as Mon... | ku00/aoj-haskell | src/ITP1_7_C.hs | bsd-3-clause | 1,012 | 0 | 11 | 231 | 347 | 191 | 156 | 20 | 1 |
module Network.Checksum (inChecksum) where
import Data.Bits (complement, shiftL, shiftR, (.|.), (.&.))
import Data.Word (Word8, Word16, Word32)
inChecksum :: [Word8] -> Word16
inChecksum ws = fromIntegral . complement . twice addHi16ToLow16 $ ws'
where
ws' = sum . map fromIntegral . packWord16 $ ws
packWord16 ... | ymmtmsys/checksum | Network/Checksum.hs | bsd-3-clause | 773 | 0 | 10 | 160 | 318 | 175 | 143 | 18 | 1 |
module Text.New.NumberToText
(
numberToText,
digitToText,
numberToEnglish,
digitToEnglish
) where
import Data.List.Split
import Data.Char
import qualified Data.List.Split.Internals as SI
import Data.String.Utils
-- | useless later
-- | given an Integer n, show its words i... | eccstartup/numberToText | src/Text/New/NumberToText.hs | bsd-3-clause | 7,829 | 0 | 14 | 2,230 | 2,911 | 1,491 | 1,420 | 166 | 1 |
module SLD (sld) where
import Data.List
import qualified Data.Set as S
import Control.Monad
import Control.Applicative
import Term
import Unify
import Parse
import Text.Parsec
testProg =
[ Clause (Fun "conn" [Fun "berlin" [],Fun "moscow" []]) []
, Clause (Fun "conn" [Fun "berlin" [],Fun "bonn" []]) []
, ... | ziman/simple-prolog | SLD.hs | bsd-3-clause | 1,408 | 0 | 12 | 319 | 731 | 392 | 339 | 31 | 1 |
module Main (main) where
import Prelude (IO)
import qualified Guide.Main
main :: IO ()
main = Guide.Main.main
| aelve/guide | back/src/site/Main.hs | bsd-3-clause | 113 | 0 | 6 | 20 | 41 | 25 | 16 | 5 | 1 |
{-# LANGUAGE CPP, GADTs #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
-- ----------------------------------------------------------------------------
-- | Handle conversion of CmmProc to LLVM code.
--
module LlvmCodeGen.CodeGen ( genLlvmProc ) where
#include "HsVersions.h"
import Llvm
import LlvmCodeGen.Base
import... | gridaphobe/ghc | compiler/llvmGen/LlvmCodeGen/CodeGen.hs | bsd-3-clause | 71,533 | 0 | 25 | 21,030 | 19,433 | 9,599 | 9,834 | 1,235 | 64 |
module Reader (
ask
, asks
, local
, Reader
, runReader
)
where
newtype Reader a b = Reader { runReader :: a -> b }
instance Functor (Reader a) where
fmap f (Reader g) = Reader $ f . g
instance Applicative (Reader a) where
pure = Reader . const
(Reader rf) <*> (Reader rv) = Reader (\e -> rf e $ rv e)
insta... | pcrama/message-compiler | src/Reader.hs | bsd-3-clause | 617 | 0 | 13 | 168 | 329 | 170 | 159 | 22 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.ProvokingVertex
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/ProvokingVertex.hs | bsd-3-clause | 851 | 0 | 4 | 97 | 58 | 46 | 12 | 8 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
module Azure.DocDB.ETag (
ETag(..),
ETagged(..),
ifMatch,
ifNoneMatch,
) where
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import Network.HTTP.Types.Header (Header, hIfMatch, hIfNoneMatch)
import ... | jnonce/azure-docdb | lib/Azure/DocDB/ETag.hs | bsd-3-clause | 1,462 | 0 | 9 | 303 | 474 | 255 | 219 | 33 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module ViewDataApi
( viewDataAPI
, OxygenClientInfo(..)
, OxygenClientToken(..)
, OSSObjectPolicy(..)
, O... | chainone/HForgeAPIClient | src/ViewDataApi.hs | bsd-3-clause | 7,560 | 0 | 15 | 1,086 | 1,818 | 976 | 842 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Day5 where
import qualified Data.ByteString.Char8 as C
import qualified Data.ByteString as S
import Data.ByteString (ByteString)
import qualified Data.IntMap.Strict as IntMap
import Data.IntMap.Strict (IntMap)
import Control.Monad.State
import ... | cl04/advent2016 | src/Day5.hs | bsd-3-clause | 1,533 | 0 | 11 | 381 | 714 | 382 | 332 | 42 | 1 |
module System.FTDI
( -- *Devices
Device
, ChipType(..)
, getChipType
, setChipType
, fromUSBDevice
, guessChipType
-- *Interfaces
, Interface(..)
-- *Device handles
, DeviceHandle
, resetUSB
, getTimeout
, setTimeout
, openDevice
, closeDevice
... | roelvandijk/ftdi | System/FTDI.hs | bsd-3-clause | 1,579 | 0 | 5 | 519 | 215 | 153 | 62 | 51 | 0 |
{-# LANGUAGE TypeFamilies #-}
module EFA2.Interpreter.Interpreter where
import qualified Data.Map as M
import qualified Data.List as L
import qualified EFA2.Signal.Index as Idx
import qualified EFA2.Signal.Signal as S
import qualified EFA2.Signal.Data as D
import qualified EFA2.Signal.Base as Base
import qualified EF... | energyflowanalysis/efa-2.1 | attic/src/EFA2/Interpreter/Interpreter.hs | bsd-3-clause | 7,047 | 0 | 18 | 2,001 | 2,666 | 1,372 | 1,294 | 130 | 17 |
--
-- Insert Documentation here :-)
--
module Reactive.Banana.BOGRE.OGRE where
import Reactive.Banana
import Reactive.Banana.Frameworks (
Frameworks,
AddHandler,
fromAddHandler,
newAddHandler
)
import Control.Concurrent (
forkIO... | DavidEichmann/boger-banana | src/Reactive/Banana/BOGRE/OGRE.hs | bsd-3-clause | 5,607 | 0 | 16 | 1,640 | 1,240 | 625 | 615 | 93 | 3 |
{-# OPTIONS_HADDOCK show-extensions #-}
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : Network.Syncthing.Session
-- Copyright : (c) 2014 Jens Thomas
--
-- License : BSD-style
-- Maintainer : jetho@gmx.de
-- Stability : experimental
-- Portability : GHC
--
-- This module provides functions for manua... | jetho/syncthing-hs | Network/Syncthing/Session.hs | bsd-3-clause | 4,105 | 0 | 10 | 827 | 397 | 247 | 150 | 29 | 2 |
module Language.XHaskell.Target where
import Language.Haskell.TH as TH
import qualified Language.Haskell.Exts.Syntax as HSX
import qualified Data.Map as M
import Control.Monad.State.Lazy
import Data.List
import Language.XHaskell.TypeSpec
import Language.XHaskell.Error
import Language.XHaskell.Subtype
-- | retur... | luzhuomi/xhaskell | Language/XHaskell/Target.hs | bsd-3-clause | 10,442 | 0 | 18 | 2,977 | 3,652 | 1,879 | 1,773 | 205 | 5 |
----------------------------------------------------------------
-- Модуль приложения
-- Графический интерфейс (UI)
-- Тема ГИП: Solarized
----------------------------------------------------------------
module WebUI.Themes.SolarizedUITheme
( SolarizedTh (..)
, thC_03
, thC_02
, thC_01
, thC_00
... | iqsf/HFitUI | src/WebUI/Themes/SolarizedUITheme.hs | bsd-3-clause | 2,021 | 0 | 8 | 501 | 435 | 236 | 199 | 59 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Types where
import Data.Aeson (ToJSON(..), object, (.=))
import Data.Int (Int64)
import Data.Text (Text)
import Database.SQLite.Simple
import Database.SQLite.Simple.FromR... | odi/tcl-reservation | src/Types.hs | bsd-3-clause | 5,165 | 0 | 11 | 1,661 | 1,151 | 662 | 489 | 137 | 2 |
{-# LANGUAGE DataKinds #-}
module LDrive.Calibration.Inductance where
import Ivory.Language
import Ivory.Stdlib
import Ivory.Tower
import LDrive.Types
import LDrive.Control.Modulation
import LDrive.Ivory.Types.CalI
import LDrive.Ivory.Types.Calibration
import LDrive.Ivory.Types.Adc
phaseInductanceTower :: IFloat
... | sorki/odrive | src/LDrive/Calibration/Inductance.hs | bsd-3-clause | 2,477 | 0 | 27 | 842 | 774 | 372 | 402 | 61 | 1 |
{-# LANGUAGE ForeignFunctionInterface #-}
module HLearn.Data.Image
( CIELab
, RGB
, rgb2cielab
, ColorSig
, loadColorSig
)
where
import SubHask
import SubHask.Compatibility.Vector
import SubHask.TemplateHaskell.Deriving
import qualified Data.Vector as V
import qualified Data.Vector.Storab... | ehlemur/HLearn | src/HLearn/Data/Image.hs | bsd-3-clause | 7,208 | 1 | 17 | 2,050 | 2,705 | 1,387 | 1,318 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module YesodCoreTest.ParameterizedSite
( parameterizedSiteTest
) where
import Data.ByteString.Lazy (ByteString)
import Network.Wai.Test (runSession, request, defaultRequest, assertBodyContains)
import Test.Hspec (Spec, describe, it)
import Yesod.Core (YesodDispatch)
import Ye... | geraldus/yesod | yesod-core/test/YesodCoreTest/ParameterizedSite.hs | mit | 1,392 | 0 | 12 | 261 | 360 | 186 | 174 | 29 | 1 |
module Ditto.Expand
( expand
, expands
, expandBind
, deltaForm
, metaForm
) where
import Ditto.Syntax
import Ditto.Monad
import Ditto.Sub
----------------------------------------------------------------------
type Form = [Expansion]
data Expansion = XDelta | XBeta | XMeta | XGuard
deriving (Show, Read,... | ditto/ditto | src/Ditto/Expand.hs | gpl-3.0 | 2,048 | 0 | 14 | 427 | 923 | 457 | 466 | -1 | -1 |
{-# LANGUAGE QuasiQuotes #-}
module Nirum.Docs.ReStructuredTextSpec where
import Test.Hspec.Meta
import Text.InterpolatedString.Perl6 (q)
import Nirum.Docs.ReStructuredText (ReStructuredText, render)
import Nirum.DocsSpec (sampleDocument)
expectedRst :: ReStructuredText
expectedRst = [q|Hello
=====
Tight list\:
- ... | spoqa/nirum | test/Nirum/Docs/ReStructuredTextSpec.hs | gpl-3.0 | 552 | 0 | 8 | 93 | 96 | 59 | 37 | 13 | 1 |
module Distribution.Simple.GHCJS (
configure, getInstalledPackages, getPackageDBContents,
buildLib, buildExe,
replLib, replExe,
startInterpreter,
installLib, installExe,
libAbiHash,
hcPkgInfo,
registerPackage,
componentGhcOptions,
getLibDir... | edsko/cabal | Cabal/src/Distribution/Simple/GHCJS.hs | bsd-3-clause | 39,801 | 0 | 23 | 12,888 | 7,845 | 4,054 | 3,791 | 680 | 6 |
import Database.HaskellDB.FlatDB
import RunTests
opts = [("filepath","flatdb-test.db")]
main = dbTestMain $ Conn {
dbLabel = "flat",
dbConn = connect driver opts
}
| m4dc4p/haskelldb | test/test-flat.hs | bsd-3-clause | 246 | 0 | 8 | 104 | 52 | 31 | 21 | 6 | 1 |
main :: IO ()
main = getContents >>= putStrLn
| rahulmutt/ghcvm | tests/suite/basic/run/Echo.hs | bsd-3-clause | 46 | 0 | 6 | 9 | 20 | 10 | 10 | 2 | 1 |
{-#LANGUAGE NoImplicitPrelude #-}
{-#LANGUAGE OverloadedStrings #-}
{-#LANGUAGE TypeFamilies #-}
{-#LANGUAGE MultiParamTypeClasses #-}
{-#LANGUAGE FlexibleInstances #-}
{-#LANGUAGE FlexibleContexts #-}
{-#LANGUAGE LambdaCase #-}
-- | Literal backend loader
module Web.Sprinkles.Backends.Loader.LiteralLoader
( literalLo... | tdammers/templar | src/Web/Sprinkles/Backends/Loader/LiteralLoader.hs | bsd-3-clause | 1,479 | 0 | 16 | 433 | 294 | 180 | 114 | 39 | 2 |
-- file test/Spec.hs
{-# OPTIONS_GHC -F -pgmF hspec-discover #-} | mwotton/datomic-peer | test/Spec.hs | bsd-3-clause | 64 | 0 | 2 | 8 | 4 | 3 | 1 | 1 | 0 |
bar f = (f, f f)
| bitemyapp/tandoori | input/occurs.hs | bsd-3-clause | 17 | 0 | 6 | 6 | 18 | 9 | 9 | 1 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
import Graphics.UI.Gtk
import Data.Text (Text)
-- A function like this can be used to tag string literals for i18n.
-- It also avoids a lot of type annotations.
__ :: Text -> Text
__ = id -- Replace with getText from the hgettext package in locali... | mimi1vx/gtk2hs | gtk/demo/actionMenu/ActionMenu.hs | gpl-3.0 | 4,268 | 0 | 12 | 925 | 831 | 392 | 439 | 66 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
-----------------------------------------------------------------------------
-- |
-- Module : Diagrams.TwoD.Path.Metafont
-- Copyright : (c) 2013 Daniel Bergey
-- License : BSD-style (see LICENSE)
-- Maintainer : bergey@alum.mit.edu
--
... | wherkendell/diagrams-contrib | src/Diagrams/TwoD/Path/Metafont.hs | bsd-3-clause | 3,512 | 0 | 11 | 853 | 753 | 416 | 337 | 36 | 2 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="sr-CS">
<title>>Run Applications | ZAP Extensions</title>
<maps>
<homeID>top</homeID>
... | thc202/zap-extensions | addOns/invoke/src/main/javahelp/org/zaproxy/zap/extension/invoke/resources/help_sr_CS/helpset_sr_CS.hs | apache-2.0 | 982 | 76 | 55 | 159 | 419 | 211 | 208 | -1 | -1 |
{-# OPTIONS_GHC -XTransformListComp #-}
module Foo where
import List
import GHC.Exts
foo = [ ()
| x <- [1..10]
, then take 5
, then sortWith by x
, then group by x
, then group using inits
, then group by x using groupWith
]
| hvr/jhc | regress/tests/0_parse/2_pass/ghc/read062.hs | mit | 287 | 2 | 8 | 108 | 76 | 42 | 34 | 11 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.HelloWorld
-- Copyright : (c) Andrea Rossato
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Jose A. Ortega Ruiz <jao@gnu.org>
-- Stability : unstable
-- Portability : unportable
--
-- A pl... | dragosboca/xmobar | samples/Plugins/HelloWorld.hs | bsd-3-clause | 682 | 0 | 6 | 114 | 67 | 42 | 25 | 7 | 0 |
-- A second test for trac #3001, which segfaults when compiled by
-- GHC 6.10.1 and run with +RTS -hb. Most of the code is from the
-- binary 0.4.4 package.
{-# LANGUAGE CPP, FlexibleInstances, FlexibleContexts, MagicHash #-}
module Main (main) where
import Data.Monoid
import Data.ByteString.Internal (inlinePerfor... | frantisekfarka/ghc-dsi | testsuite/tests/profiling/should_run/T3001-2.hs | bsd-3-clause | 7,830 | 0 | 18 | 2,456 | 3,012 | 1,557 | 1,455 | 199 | 3 |
import Prelude hiding (catch)
import Data.Ord (comparing)
import Data.Char (toUpper,toLower)
import Data.List
import Data.Time
import Data.Maybe
import Control.Arrow (first)
import Control.Monad
import Control.Monad.Error
import Control.Exception (catch, finally, SomeException(..))
import Control.Concurrent (forkIO)
im... | singpolyma/imapmd | imapmd.hs | isc | 29,079 | 1,071 | 28 | 6,253 | 12,023 | 6,332 | 5,691 | 683 | 37 |
{-# LANGUAGE TypeApplications #-}
module Main
( main
) where
import qualified Data.ByteString as BS
import Data.Bits
import System.IO
import Control.Monad
import Control.Monad.IO.Class
import Control.Monad.Par.Class
import Control.Monad.Par.IO
-- some random task to perform. in this case
-- we fetch some random b... | Javran/misc | monad-par-playground/src/Main.hs | mit | 1,028 | 0 | 15 | 231 | 422 | 217 | 205 | 34 | 1 |
module AbsJasm where
newtype Ident = Ident String deriving (Eq,Ord,Show)
data JProgram =
Prog Ident [JFun]
deriving (Eq,Ord,Show)
data JFun =
Fun JType Ident [JArg] [JStm]
deriving (Eq,Ord,Show)
data JType =
TVoid
| TInt
| TDbl
| TString
| TArray JType
deriving (Eq,Ord,Show)
data JBranchType =
... | davidsundelius/JLC | src/AbsJasm.hs | mit | 1,034 | 0 | 7 | 253 | 404 | 234 | 170 | 62 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
module Tinc.Install (
installDependencies
#ifdef TEST
, cabalInstallPlan
, cabalDryInstall
, copyFreezeFile
, generateCabalFile
#endif
) where
import C... | robbinch/tinc | src/Tinc/Install.hs | mit | 6,425 | 0 | 17 | 1,345 | 1,647 | 840 | 807 | -1 | -1 |
module Moz.Linkscape
( urlMetrics
, runMozT
) where
import Control.Monad.Trans (MonadIO)
import qualified Data.ByteString.Char8 as C8
import Moz.Client (MozT, mozGet, runMozT)
import Moz.Linkscape.URLMetrics (URLMetrics(..), URLMetricCol(..), sumUrlMetricCols)
urlMetrics :: MonadIO m => String -> [URLMetricCo... | ags/hs-moz | src/Moz/Linkscape.hs | mit | 486 | 0 | 10 | 70 | 157 | 94 | 63 | 10 | 1 |
let add = \a -> \b -> a + b
in
add 3 4
(\a -> (\b -> a + b)) 3 4
(\b -> 3 + b) 4
3 + 4
7
let ad = (let add a b = a + b in add 3) in ad 4
| CindyLinz/Tutor-Haskell | start/lambda.hs | mit | 150 | 2 | 14 | 63 | 134 | 63 | 71 | -1 | -1 |
module HAD
( check
, checkSolution
, checkCurrent
, edit
, editCurrent
, readExercise
, readSolution
, readCurrentExercise
)
where
import Data.List (intercalate)
import Data.Time
import Text.Printf (printf)
import Test.DocTest (doctest)
import System.FilePath.Posix (joinPath)
import System.Cmd (ra... | Raveline/1HAD | src/HAD.hs | mit | 2,905 | 0 | 11 | 609 | 826 | 445 | 381 | 63 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module DataStructures.Arrays where
import qualified Data.Map.Lazy as M
import qualified Data.List as L
import Data.Maybe
import Control.Exception
import Data.Typeable
type Array a = (M.Map Int a, Int)
data ArraysException = IndexOutOfRange Int
deriving (Show, Typ... | ricardopenyamari/ir2haskell | clir-parser-haskell-master/src/DataStructures/Arrays.hs | gpl-2.0 | 4,393 | 0 | 15 | 1,092 | 2,230 | 1,141 | 1,089 | 64 | 6 |
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2014 Matthew Pickering <matthewtpickering@gmail.com>
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 o... | jgm/texmath | src/Text/TeXMath/Readers/MathML/EntityMap.hs | gpl-2.0 | 52,339 | 0 | 7 | 8,745 | 19,213 | 12,803 | 6,410 | 2,133 | 1 |
{- |
Module : $Header$
Description : utilitary functions used throughout the CMDL interface
Copyright : uni-bremen and DFKI
License : GPLv2 or higher, see LICENSE.txt
Maintainer : r.pascanu@jacobs-university.de
Stability : provisional
Portability : portable
CMDL.Utils contains different basic functions t... | nevrenato/HetsAlloy | CMDL/Utils.hs | gpl-2.0 | 14,171 | 113 | 31 | 4,708 | 3,636 | 1,940 | 1,696 | 255 | 11 |
{- |
Module : $Header$
Copyright : (c) T.Mossakowski, W.Herding, C.Maeder, Uni Bremen 2004-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@informatik.uni-bremen.de
Stability : provisional
Portability : portable
Abstract syntax for hybrid logic extension of CASL
Only the added syn... | nevrenato/HetsAlloy | Hybrid/AS_Hybrid.der.hs | gpl-2.0 | 1,651 | 0 | 10 | 441 | 324 | 180 | 144 | 25 | 0 |
{-# OPTIONS -fno-warn-unused-do-bind #-}
{-# LANGUAGE GeneralizedNewtypeDeriving
, TupleSections
, NamedFieldPuns #-}
module Testing.QuickGen.ExpGen
( ExpGen
, EGState
, generate
, match
) where
import Control.Applicative
import Control.Mona... | solarus/quickgen | src/Testing/QuickGen/ExpGen.hs | gpl-3.0 | 9,358 | 0 | 33 | 3,298 | 3,387 | 1,739 | 1,648 | 197 | 16 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE GADTs #-}
import Prelude hiding (pred)
import Data.List (intercalate, partition)
import Control.Monad.State
type Object = String
type Pr... | GU-CLASP/FraCoq | AnaphoraProto0/AnaMon.hs | gpl-3.0 | 19,793 | 1 | 18 | 4,064 | 5,832 | 3,132 | 2,700 | 370 | 2 |
module Equ.Exercise.Conf where
import Equ.Theories (Grouped)
import Equ.Proof hiding (Simple, Focus, Cases)
import qualified Data.Set as S (Set, empty)
import Control.Applicative ((<$>), (<*>))
import Data.Serialize (Serialize, get, getWord8, put, putWord8)
{- Auto: se hace automáticamente al parsear
Manual: no ... | miguelpagano/equ | Equ/Exercise/Conf.hs | gpl-3.0 | 4,228 | 0 | 16 | 1,241 | 950 | 526 | 424 | 82 | 1 |
module Ampersand.Prototype.ValidateEdit where
import Ampersand.Basics
import Ampersand.Classes
import Ampersand.ADL1
import Ampersand.FSpec
import Ampersand.FSpec.SQL
import qualified Ampersand.Misc.Options as Opts
import Ampersand.Prototype.PHP
import ... | AmpersandTarski/ampersand | src/Ampersand/Prototype/ValidateEdit.hs | gpl-3.0 | 7,774 | 2 | 21 | 2,279 | 1,823 | 958 | 865 | 102 | 7 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Routes.Products
( ProductAPI
, productRoutes
) where
import Control.Monad (when)
import Control.Monad.Trans (lift)
import Data.Aeson ((.=), (.:), (.:?), ToJSON(..), FromJSON(..), object, withObject)
import D... | Southern-Exposure-Seed-Exchange/southernexposure.com | server/src/Routes/Products.hs | gpl-3.0 | 7,522 | 0 | 21 | 2,304 | 1,856 | 981 | 875 | 158 | 3 |
module LiName.ParsersSpec where
import LiName.Types
import LiName.Parsers
import Data.Either
import Test.Hspec
import Text.ParserCombinators.Parsec.Error
fn = "<HSpec>"
spec :: Spec
spec = do
describe "parseEntry" $ do
it "Rename" $ do
parseEntry fn "023\tCAT" `shouldBe` (Right $ LiNameEntry (L... | anekos/liname-hs | test/LiName/ParsersSpec.hs | gpl-3.0 | 1,714 | 0 | 18 | 368 | 584 | 292 | 292 | 31 | 1 |
module Exponential
( exponentialPDF
, exponentialAltPDF
, exponentialCDF
, exponentialQuantile
, exponentialValGen
) where
import StatUtils
-- The following two functions are the different parameterisations
-- of the exponential PDF. The test function of their equivalence
-- will pass through 100 sets of test value... | R-Morgan/hasStat | Exponential.hs | gpl-3.0 | 1,280 | 0 | 11 | 290 | 398 | 208 | 190 | -1 | -1 |
module Configuration where
import Data.Word
import Network
udpPort :: PortNumber
udpPort = 9909
maxline :: Int
maxline = 1500
-- |Lights in format of (logical channel, DMX start channel). FIXME stupid types.
lights = [(0,1)
,(1,26)
,(2,11)
,(3,6)
,(4,42)
,(5,31)
... | zouppen/valo | Configuration.hs | gpl-3.0 | 1,202 | 0 | 8 | 554 | 391 | 259 | 132 | 41 | 1 |
{-# LANGUAGE OverloadedStrings, FlexibleInstances #-}
module System.DevUtils.Redis.Helpers.CommandStats.Run (
run'commandStats,
run'commandStats'List
) where
import System.DevUtils.Redis.Helpers.CommandStats.Include
import System.DevUtils.Redis.Helpers.CommandStats.Marshall
import qualified Data.ByteString as B
im... | adarqui/DevUtils-Redis | src/System/DevUtils/Redis/Helpers/CommandStats/Run.hs | gpl-3.0 | 920 | 0 | 15 | 140 | 270 | 144 | 126 | 25 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-firestore/gen/Network/Google/Resource/FireStore/Projects/Databases/Documents/Rollback.hs | mpl-2.0 | 5,620 | 0 | 17 | 1,213 | 784 | 458 | 326 | 117 | 1 |
-- | Put all CSS for these widgets in templates/project_feed.cassius
module View.SnowdriftEvent where
import Import
import Model.Comment
import Model.Comment.ActionPermissions
import Model.Comment.Routes
import Model.Currency
import Model.User
import View.Comment
import View.Time
import qualified Data.Map as M
im... | akegalj/snowdrift | View/SnowdriftEvent.hs | agpl-3.0 | 14,104 | 0 | 21 | 4,261 | 1,789 | 923 | 866 | -1 | -1 |
module Tokenizer where
import Debug.Trace
import Text.Regex.Posix
data Token =
FTok Float
| ITok Int
| Finit
| Iinit
| PrintTok
| PlusTok
| MinusTok
| AssignTok
| IdentifierTok Char
deriving (Show, Eq)
type Tokens = [Token]
type PartialInt = (String, String)
type PartialFlo... | gik0geck0/ac_dc_compiler | tokenizer.hs | unlicense | 1,903 | 0 | 21 | 429 | 892 | 497 | 395 | 54 | 11 |
{-# LANGUAGE OverloadedStrings #-}
module Erd.Parse
( loadER
)
where
import Erd.ER
import Control.Exception (bracket_)
import Control.Monad (when,unless)
import Data.List (find)
import Data.Maybe
import Data.Text.Lazy h... | BurntSushi/erd | src/Erd/Parse.hs | unlicense | 3,662 | 0 | 18 | 1,254 | 1,167 | 606 | 561 | 70 | 6 |
-- Copyright (c) 2015 Jonathan M. Lange <jml@mumak.net>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by appli... | jml/hazard | lib/Hazard/Games.hs | apache-2.0 | 15,913 | 0 | 31 | 4,725 | 4,569 | 2,421 | 2,148 | 344 | 6 |
{-|
Module : Pulsar.Output
Description : Manage file handles and general output.
Copyright : (c) Jesse Haber-Kucharsky, 2014
License : Apache-2.0
-}
{-# LANGUAGE OverloadedStrings #-}
module Pulsar.Output
(withHandle
,writeImage
,writeHexDump
,writeListing)
where
import Prelude ... | hakuch/Pulsar | src/Pulsar/Output.hs | apache-2.0 | 3,535 | 0 | 17 | 1,067 | 992 | 518 | 474 | 82 | 3 |
module Haggis.Types where
data Type = TInt
| TReal
| TStr
| TBool
| TArr Type
| TGuiIn
| TGuiOut
| TVoid deriving Eq
instance Show Type where
show t = case t of
TInt -> "integer"
TReal -> "real number"
TStr -> "string"
TBool -> "boolean"
... | sivawashere/haggis | src/Haggis/Types.hs | bsd-2-clause | 432 | 0 | 11 | 169 | 115 | 62 | 53 | 18 | 0 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QStyleOptionToolBar.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:35
Warning : this file is machine generate... | uduki/hsQt | Qtc/Enums/Gui/QStyleOptionToolBar.hs | bsd-2-clause | 11,915 | 0 | 18 | 2,645 | 3,218 | 1,566 | 1,652 | 275 | 1 |
module LOGL.Application
(
runAppLoop, runAppLoopEx, runAppLoopEx2,
reactWithContext,
module LOGL.Application.Window,
module LOGL.Application.Context
)
where
import LOGL.Application.Window
import LOGL.Application.Context
import Reactive.Banana.Frameworks
import LOGL.FRP
import Graphics.UI.GLFW as GLFW
i... | atwupack/LearnOpenGL | src/LOGL/Application.hs | bsd-3-clause | 1,864 | 0 | 16 | 461 | 561 | 274 | 287 | 48 | 1 |
module Turing where
import qualified Data.Map as Map
type Move = Ordering
type TMMap q s = Map.Map (q, s) (q, s, Move)
-- The Turing Machine's tape is implemented as a list-zipper. The head of the
-- machine is positioned on the first element of the "after" list; stepping
-- forward moves that symbol into the "befor... | kebertx/Automata | src/Turing.hs | bsd-3-clause | 5,829 | 0 | 12 | 1,553 | 1,679 | 874 | 805 | 81 | 2 |
module HaskellCraft.Block where
import qualified Text.Show as S (Show)
import qualified Text.Show.Text as T (Show)
import Text.Show.Text hiding (Show)
import Text.Show.Text.TH (deriveShow)
import Text.Show.Text.Data.Char
data Block = Air | Stone | Grass | Dirt | Cobblestone | Wood_planks... | markgrebe/haskell-craft | HaskellCraft/Block.hs | bsd-3-clause | 9,287 | 0 | 8 | 3,392 | 2,185 | 1,159 | 1,026 | 247 | 0 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE OverloadedStrings #-}
module Parse where
import qualified Text.XML.Cursor as TXC
import qualified Data.Text.Lazy as TL
import qualified Data.Text as T
import qualified Data.Maybe as M
import qualified Data.ByteString.Lazy as LBS
import Text.XML as TX
import Text.... | aupiff/def | src/Parse.hs | bsd-3-clause | 3,886 | 0 | 13 | 1,033 | 1,005 | 528 | 477 | 73 | 2 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.TextureRectangle
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portabl... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/TextureRectangle.hs | bsd-3-clause | 776 | 0 | 4 | 87 | 46 | 37 | 9 | 6 | 0 |
{-# LANGUAGE CPP #-}
-- | Phantom State Transformer type and functions.
module Control.Applicative.PhantomState (
PhantomStateT
, PhantomState
, useState
, changeState
, useAndChangeState
, runPhantomStateT
, runPhantomState
) where
import Control.Applicative
import Data.Functor.Identity
-- Conditi... | Daniel-Diaz/phantom-state | Control/Applicative/PhantomState.hs | bsd-3-clause | 4,401 | 0 | 10 | 917 | 733 | 410 | 323 | 55 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE UndecidableInstances #-}
-- |
-- Module: ... | trskop/freer-extra | src/Control/Monad/Freer/Class.hs | bsd-3-clause | 5,948 | 0 | 10 | 1,134 | 1,053 | 626 | 427 | 69 | 2 |
-- Copyright (c) 2008 Stephen C. Harris.
-- See COPYING file at the root of this distribution for copyright information.
module HMQ.Metadata.Sqlite3 where
import Control.Monad
import Control.Exception
import Text.Regex
import Data.Maybe
import Database.HDBC
import qualified Database.HDBC.Sqlite3 as S3
import qualif... | scharris/hmq | Metadata/Sqlite3_TODO.hs | bsd-3-clause | 1,641 | 0 | 10 | 308 | 262 | 148 | 114 | 30 | 1 |
import System.Environment (getArgs)
import Data.List (sort)
import Data.Bits (shiftL)
numCards :: Int
numCards = 5
cardval :: Char -> Int
cardval '2' = 2
cardval '3' = 3
cardval '4' = 4
cardval '5' = 5
cardval '6' = 6
cardval '7' = 7
cardval '8' = 8
cardval '9' = 9
cardval 'T' = 10
cardval 'J' = 11
cardval 'Q' = 12
c... | nikai3d/ce-challenges | hard/poker_hands.hs | bsd-3-clause | 3,318 | 13 | 16 | 1,434 | 1,560 | 746 | 814 | 83 | 1 |
{-# LANGUAGE ScopedTypeVariables, DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Distributed.Process.Platform.Call
-- Copyright : (c) Parallel Scientific (Jeff Epstein) 2012
-- License : BSD3 (see the file LICENSE)
--
-- Maint... | haskell-distributed/distributed-process-platform | src/Control/Distributed/Process/Platform/Call.hs | bsd-3-clause | 10,089 | 0 | 17 | 2,995 | 2,210 | 1,183 | 1,027 | 168 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.