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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE PolyKinds, KindSignatures #-}
module T11203 where
data SameKind :: k -> k -> *
data Q (a :: k1) (b :: k2) c = MkQ (SameKind a b)
| shlevy/ghc | testsuite/tests/polykinds/T11203.hs | bsd-3-clause | 145 | 0 | 8 | 33 | 51 | 32 | 19 | -1 | -1 |
{-# LANGUAGE GADTs #-}
module Ex1 where
-- | A very simple newtype wrapper
newtype Wrap a = Wrap a
-- | A type-indexed representation of a type
data STy ty where
SIntTy :: STy Int
SBoolTy :: STy Bool
SMaybeTy :: STy a -> STy (Maybe a)
-- | Produce a "zero" of that type
zero :: STy ty -> ty
zero SIntTy ... | bwmcadams/lambdaconf-2015 | speakers/goldfirere/exercises/Ex1.hs | artistic-2.0 | 380 | 0 | 9 | 99 | 101 | 56 | 45 | 11 | 1 |
{-# LANGUAGE CPP #-}
module Application (getAlias) where
import Prelude ()
import BasicPrelude
import Control.Error (EitherT(..), eitherT, noteT, hoistMaybe, hushT)
import qualified Data.Text as T
import Network.Wai (Application, queryString)
import Network.HTTP.Types (ok200, badRequest400, notFound404)
import Networ... | singpolyma/RippleUnion-Federation | Application.hs | isc | 2,448 | 32 | 20 | 467 | 871 | 455 | 416 | 57 | 2 |
fibs :: [Integer]
fibs = 0 : 1 : zipWith (+) fibs (tail fibs) | MartinThoma/LaTeX-examples | documents/Programmierparadigmen/scripts/haskell/fibonacci-stream.hs | mit | 61 | 0 | 8 | 13 | 37 | 20 | 17 | 2 | 1 |
-- Problems/Problem001.hs
module Problems.Problem001 (p1) where
main = print p1
p1 :: Int
p1 = sum $ filter (\n -> n `mod` 3 == 0 || n `mod` 5 == 0) [1..999]
| Sgoettschkes/learning | haskell/ProjectEuler/src/Problems/Problem001.hs | mit | 160 | 0 | 13 | 34 | 76 | 44 | 32 | 4 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module UnitTest.RequestParse.MessengerCode where
import Data.Aeson (Value)
import Data.Yaml.TH (decodeFile)
import Test.Tasty as Tasty
import Web.Facebook.Messenger
import UnitTest.Internal
--------------------
-- MESSENGER CODE --
--------------------
messengerCodeTests :: TestTr... | Vlix/facebookmessenger | test/UnitTest/RequestParse/MessengerCode.hs | mit | 969 | 0 | 9 | 125 | 159 | 91 | 68 | -1 | -1 |
{- |
Module : Language.Egison.Math.Arith
Licence : MIT
This module defines some basic arithmetic operations for Egison's computer
algebra system.
-}
module Language.Egison.Math.Arith
( mathPlus
, mathMinus
, mathMult
, mathDiv
, mathPower
, mathNumerator
, mathDenominator
) where
import ... | egison/egison | hs-src/Language/Egison/Math/Arith.hs | mit | 1,697 | 0 | 17 | 345 | 663 | 341 | 322 | 32 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Turnip.Eval.TH (genDecls, genLibLoadFunction, entry, TypeT(..), Sig(..)) where
import qualified Turnip.Eval.Types as Eval
import Turnip.Eval.Util
import Language.Haskell.TH
import Control.Monad
import Data.Char
-- |Function signature has n params and one return value
data Si... | bananu7/Turnip | src/Turnip/Eval/TH.hs | mit | 3,274 | 0 | 15 | 767 | 794 | 435 | 359 | 57 | 3 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- Copyright (C) 2012 John Millikin <jmillikin@gmail.com>
--
-- See license.txt for details
module OptionsTests.Util
( suite_Util
) where
#if defined(OPTIONS_ENCODING_UTF8)
import Data.Bits
import qualified Data.ByteS... | shlevy/haskell-options | tests/OptionsTests/Util.hs | mit | 4,380 | 32 | 18 | 1,009 | 1,504 | 764 | 740 | 52 | 1 |
{-|
Utility functions that are used in multiple "Nebula" modules are
placed in here. This module should be safe for importing into any
other "Nebula" module.
-}
module Nebula.Util
(
-- * Validation functions
isValidHash
, isValidUUID
-- * Miscellaneous
, getTime
-- ... | kisom/nebulahs | src/Nebula/Util.hs | mit | 2,058 | 0 | 10 | 419 | 205 | 126 | 79 | 22 | 2 |
{-# htermination msum :: [Maybe a] -> Maybe a #-}
import Monad
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Monad_msum_3.hs | mit | 63 | 0 | 3 | 12 | 5 | 3 | 2 | 1 | 0 |
-- ================================================================================================
-- http://elemarjr.net/2012/06/09/haskell-para-programadores-c-parte-1-primeiros-passos/
-- H:
sum [1..100]
-- C#:
Enumerable.Range(1, 100).Sum()
-- H:
[1..10]
-- C#:
Enumberable.Range(1, 100)
-- H:
[1,2,3,4,5]
-- C#:... | feliposz/learning-stuff | haskell/haskell and c# (linq).hs | mit | 10,676 | 390 | 28 | 2,347 | 4,686 | 2,561 | 2,125 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Game.Play.Types where
import Control.Lens (makeLenses)
import Control.Monad.Except (ExceptT)
import Control.Monad.Random (Rand, StdGen)
import Control.Monad.Trans.RWS (RWST)
import Game.Api.Types (Game... | rubenmoor/skull | skull-server/src/Game/Play/Types.hs | mit | 705 | 0 | 9 | 197 | 176 | 106 | 70 | 15 | 0 |
--getcontents is an I/O action that teads from standard input
-- until it encounters and end of file character
--it does lazy I/O
import Data.Char
main = do
--contents <- getContents
--putStr (shortLinesOnly contents)
--the pattern of getting contents and transform it is so common that
--it has be... | luisgepeto/HaskellLearning | 09 Input and Output/02_files_and_streams.hs | mit | 588 | 0 | 13 | 135 | 88 | 47 | 41 | 9 | 1 |
{-# LANGUAGE FlexibleContexts, OverlappingInstances #-}
module Tests.Marshal (
tests
) where
import Test.Framework (Test, testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import GHCJS.Marshal.Pure (PFromJSRef(..), PToJSRef(..))
import GHCJS.Marshal (FromJSRef(..), ToJSRef(..))
import Tests.Quick... | tavisrudd/ghcjs-base | test/Tests/Marshal.hs | mit | 4,120 | 0 | 11 | 753 | 1,295 | 684 | 611 | 72 | 1 |
module Feature.AuthSpec where
-- {{{ Imports
import Text.Heredoc
import Test.Hspec
import Test.Hspec.Wai
import Test.Hspec.Wai.JSON
import Network.HTTP.Types
import SpecHelper
import Network.Wai (Application)
import Protolude hiding (get)
-- }}}
spec :: SpecWith Application
spec = describe "authorization" $ do
le... | Skyfold/postgrest | test/Feature/AuthSpec.hs | mit | 7,292 | 0 | 17 | 1,263 | 987 | 534 | 453 | -1 | -1 |
module VM
( Instruction (..)
, runVM
, takeResult
, takePC
, testRunVM ) where
import Control.Applicative ((<$>))
import Data.Array
import Data.Char
import Data.Maybe
import Data.Monoid
import Data.Foldable (foldMap)
import VM.Machine
import VM.Instruction
runVM :: [Instruction] -> Machine
runVM ... | taiki45/hs-vm | src/VM.hs | mit | 3,078 | 0 | 15 | 1,214 | 1,019 | 511 | 508 | 62 | 11 |
module Chapter07.Arith2 where
add :: Int -> Int -> Int
add x y = x + y
addPF :: Int -> Int -> Int
addPF = (+)
addOne :: Int -> Int
addOne = \x -> x + 1
addOnePF :: Int -> Int
addOnePF = (+1) | brodyberg/LearnHaskell | HaskellProgramming.hsproj/Chapter07/Arith2.hs | mit | 215 | 0 | 6 | 71 | 94 | 54 | 40 | 9 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-eventsubscription.html
module Stratosphere.Resources.DMSEventSubscription where
import Stratosphere.Resour... | frontrowed/stratosphere | library-gen/Stratosphere/Resources/DMSEventSubscription.hs | mit | 4,559 | 0 | 15 | 508 | 734 | 417 | 317 | 56 | 1 |
{-# LANGUAGE CPP, ScopedTypeVariables, OverloadedStrings #-}
-----------------------------------------------------------------------------
--
-- Module : IDE.LogRef
-- Copyright : (c) Juergen Nicklisch-Franken, Hamish Mackenzie
-- License : GNU-GPL
--
-- Maintainer : <maintainer at leksah.org>
-- Stabil... | 573/leksah | src/IDE/LogRef.hs | gpl-2.0 | 27,110 | 138 | 24 | 9,698 | 7,417 | 3,689 | 3,728 | 607 | 20 |
{-# OPTIONS_HADDOCK show-extensions #-}
-- |
-- Module : Yi.Boot.Internal
-- License : GPL-2
-- Maintainer : yi-devel@googlegroups.com
-- Stability : experimental
-- Portability : portable
--
-- Internal use for Yi.Boot
module Yi.Boot.Internal where
import Config.Dyre.Relaunch (relaunchWithBinarySta... | atsukotakahashi/wi | src/library/Yi/Boot/Internal.hs | gpl-2.0 | 855 | 0 | 10 | 140 | 143 | 88 | 55 | 13 | 1 |
module Test.QuickFuzz.Gen.Image
( module Test.QuickFuzz.Gen.Image.SVG,
module Test.QuickFuzz.Gen.Image.Gif,
module Test.QuickFuzz.Gen.Image.Png,
module Test.QuickFuzz.Gen.Image.Tiff
) where
import Test.QuickFuzz.Gen.Image.SVG
import Test.QuickFuzz.Gen.Image.Gif
import Test.QuickFuzz.Gen.Image.Png
import Test.Qu... | elopez/QuickFuzz | src/Test/QuickFuzz/Gen/Image.hs | gpl-3.0 | 343 | 0 | 5 | 29 | 78 | 59 | 19 | 9 | 0 |
{-
factorial n = if n>1
then n * factorial (n-1)
else 1
-}
-- Cuando una función no tiene parametros es una definición o un nombre
nombreDefinicion = "Hola mundo, soy una definicion"
{-
Hay diferentes formas de construir funciones, una de ellas es a través de
patrones como en el ejemplo 1.... | rysard/cursos | haskell/forGreatGood/prueba1.hs | gpl-3.0 | 2,051 | 8 | 12 | 469 | 529 | 276 | 253 | 33 | 1 |
module Test where
import Test.HUnit
import TextProcessors
import TextStatistics
testtokens = ["to","be","or","not", "to", "be"]
ngramstest =
TestCase $ assertEqual "Trigrams"
[["to","be","or"],["be","or","not"],["or","not","to"],["not","to","be"]]
(ngrams 3 testtokens)
freqlistte... | proycon/HasCL | Test.hs | gpl-3.0 | 1,111 | 0 | 10 | 363 | 261 | 147 | 114 | 26 | 1 |
-- | See the question here:
--
-- https://stackoverflow.com/questions/47453657/extracting-an-id-with-ghc-generics
--
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# ... | capitanbatata/sandbox | typelevel-computations/src/Identifiable.hs | gpl-3.0 | 3,262 | 0 | 11 | 783 | 1,013 | 546 | 467 | 51 | 1 |
module Lamdu.Sugar.Convert.Inject
( convert
) where
import Control.Monad.Once (OnceT)
import qualified Lamdu.Calc.Term as V
import qualified Lamdu.Calc.Type as T
import qualified Lamdu.Expr.IRef as ExprIRef
import Lamdu.Sugar.Convert.Expression.Actions (addActions)
import qualified Lamdu.Su... | lamdu/lamdu | src/Lamdu/Sugar/Convert/Inject.hs | gpl-3.0 | 1,660 | 9 | 18 | 405 | 489 | 269 | 220 | -1 | -1 |
{-# OPTIONS_GHC -XBangPatterns #-}
module Assembler.SymbolTable
( generateSymbolTable
, generateSymbolTableIns
, initialTable
, replaceSymbol
, replaceSymbols
) where
import Assembler.Instruction
import Data.Either
import Data.List as List
import Data.Map as Map
import Debug.Trace
type SymbolTable = Map.Map Symbol Va... | rifung/nand2tetris | projects/compiler/src/Assembler/SymbolTable.hs | gpl-3.0 | 4,422 | 0 | 16 | 1,542 | 1,341 | 703 | 638 | -1 | -1 |
import Control.Applicative
import Data.Monoid
-- import our assertion function
import Assert
-- We can use the following type to simulate our own list
data List a = Empty | Value a (List a) deriving (Show, Eq)
-- Make the list a Functor
instance Functor List where
fmap _ Empty = Empty
fmap f (Value x xs) = Value... | etrepat/learn-you-a-haskell-exercises | 11-functors-applicative-functors-and-monoids.hs | gpl-3.0 | 3,045 | 0 | 15 | 692 | 970 | 497 | 473 | 59 | 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/TargetHTTPSProxies/SetSSLPolicy.hs | mpl-2.0 | 5,945 | 0 | 18 | 1,280 | 568 | 342 | 226 | 94 | 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/HTTPSHealthChecks/List.hs | mpl-2.0 | 7,348 | 0 | 19 | 1,570 | 758 | 454 | 304 | 111 | 1 |
{-# LANGUAGE ApplicativeDo #-}
module Annotations where
import Control.Applicative
import Control.Monad
import Data.Char
import Parsers
import LexicalStructure
import {-# SOURCE #-} Types
import {-# SOURCE #-} Rules
annotationsP :: Parser String
annotationsP = do
s <- some . tokenLP $ annotationP <|> annotationL... | ice1000/Kt2Dart | src/Annotations.hs | agpl-3.0 | 1,510 | 0 | 12 | 408 | 425 | 209 | 216 | 52 | 2 |
module NGramCrackers.Quant.Stats
( ttrSet
, pMI
, meanSentLength
, sdSentLength
, varSentLength
, sentsPerParagraph
, meanSentsPerParagraph
, sdSentsPerParagraph
, varSentsPerParagraph
) where
import qualified Data.List as L
import qualified Data.Map as M
import qualified Data.Text as T
import qualified Data.Set as... | R-Morgan/NGramCrackers | testsuite/NGramCrackers/Quant/Stats.hs | agpl-3.0 | 3,468 | 0 | 11 | 946 | 639 | 369 | 270 | 51 | 1 |
module LSystem.GeneralDataTypes (
Name,
readsName,
readsNames,
nameFromString
) where
import Data.List
import Data.Char
import LSystem.ShowReadUtils
----------------------------------------------------------------------------------------------------
-- | Name of parameter or variable. First char of n... | NightElfik/L-systems-in-Haskell | src/LSystem/GeneralDataTypes.hs | unlicense | 1,118 | 0 | 9 | 218 | 311 | 166 | 145 | 26 | 2 |
module Geometry.Cube(
area,
volume
) where
import qualified Geometry.Cuboid as Cuboid
area :: Float -> Float
area side = Cuboid.area side side side
volume :: Float -> Float
volume side = Cuboid.volume side side side
| paulbarbu/haskell-ground | Geometry/Cube.hs | apache-2.0 | 227 | 0 | 6 | 46 | 74 | 41 | 33 | 8 | 1 |
module Main (main) where
import Bucketeer.Timers (startBucketManager)
import Bucketeer.Types
import Bucketeer.WebServer (BucketeerWeb(..))
import Bucketeer.Util
import qualified Bucketeer.Testing.Persistence as P (specs)
import qualified Bucketeer.Testing.Util as U (specs)
import qualified Bucketeer.Testi... | MichaelXavier/Bucketeer | Bucketeer/Testing/Main.hs | bsd-2-clause | 1,436 | 0 | 15 | 331 | 408 | 235 | 173 | 35 | 1 |
module Main where
import Control.Monad
import Control.Monad.IO.Class
import FileIO (TransMethod (Naive))
import RuntimeProcessManager (withRuntimeProcess)
import System.Console.Haskeline (runInputT, defaultSettings)
import System.Directory (doesFileExist)
im... | bixuanzju/fcore | repl/Main.hs | bsd-2-clause | 1,091 | 0 | 16 | 329 | 286 | 158 | 128 | 30 | 1 |
-- | The module provides an abstraction over transition maps from
-- alphabet symbols to node identifiers.
module Data.DAWG.Gen.Trans
( Trans (..)
) where
import Data.DAWG.Gen.Types
-- | Abstraction over transition maps from alphabet symbols to
-- node identifiers.
class Trans t where
-- | Empty transition ma... | kawu/dawg-ord | src/Data/DAWG/Gen/Trans.hs | bsd-2-clause | 866 | 0 | 10 | 246 | 156 | 94 | 62 | 11 | 0 |
-- |
-- Module : GRN.Parse
-- Copyright : (c) 2011 Jason Knight
-- License : BSD3
--
-- Maintainer : jason@jasonknight.us
-- Stability : experimental
-- Portability : portable
--
-- Parses a pathway file *.pw to produce the ParseData construction that can
-- then be processed further. See the example pathway f... | binarybana/grn-pathways | GRN/Parse.hs | bsd-2-clause | 5,247 | 0 | 14 | 1,573 | 1,625 | 822 | 803 | 129 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Application.HXournal.Coroutine.Highlighter
-- Copyright : (c) 2011, 2012 Ian-Woo Kim
--
-- License : BSD3
-- Maintainer : Ian-Woo Kim <ianwookim@gmail.com>
-- Stability : experimental
-- Portability : GHC
--
--... | wavewave/hxournal | lib/Application/HXournal/Coroutine/Highlighter.hs | bsd-2-clause | 816 | 0 | 8 | 101 | 99 | 62 | 37 | 10 | 1 |
{-# LANGUAGE QuasiQuotes #-}
-- Compare with tests/pos/StrictPair1.hs
import LiquidHaskell
import Language.Haskell.Liquid.Prelude (liquidAssert)
[lq| measure tsnd :: (a, b) -> b
tsnd (x, y) = y
|]
[lq| type Foo a = ((a, Int), Int)<{\z v -> v <= (tsnd z)}> |]
[lq| poo :: (Foo a) -> () |]
poo :: ((... | spinda/liquidhaskell | tests/gsoc15/unknown/pos/StrictPair0.hs | bsd-3-clause | 384 | 0 | 7 | 91 | 96 | 60 | 36 | 8 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-|
Utility functions used in the construction of the "Views".
-}
module Views.Helpers
( listOfLinks
, pTitle
, pUrl
, pId
, langUrl
, navLinks
, inlineCss
) where
import Control.Monad (forM_)
import Data.Monoid (mconcat)
import Data.List (intersper... | benarmston/hpastie | src/Views/Helpers.hs | bsd-3-clause | 2,205 | 0 | 10 | 418 | 394 | 229 | 165 | 37 | 1 |
{-# LANGUAGE BangPatterns #-}
module LRUCache where
import Control.Applicative ((<$>))
import Data.Hashable (Hashable, hash)
import qualified Data.HashPSQ as HashPSQ
import Data.IORef (IORef, newIORef, atomicModifyIORef')
import Data.Int (Int64)
i... | Garygunn94/DFS | .stack-work/intero/intero3920v71.hs | bsd-3-clause | 2,554 | 0 | 16 | 811 | 1,001 | 529 | 472 | 68 | 3 |
module Data.Minecraft.Release17
( module Data.Minecraft.Release17.Protocol
, module Data.Minecraft.Release17.Version
) where
import Data.Minecraft.Release17.Protocol
import Data.Minecraft.Release17.Version
| oldmanmike/hs-minecraft-protocol | src/Data/Minecraft/Release17.hs | bsd-3-clause | 213 | 0 | 5 | 21 | 39 | 28 | 11 | 5 | 0 |
{-# LANGUAGE ImpredicativeTypes, ConstraintKinds, GADTs, MagicHash, RecursiveDo, BangPatterns, UndecidableInstances, FlexibleInstances, ScopedTypeVariables, FlexibleContexts, KindSignatures, MultiParamTypeClasses #-}
-- | Adapton-style (http://dl.acm.org/citation.cfm?id=2594324) incremental computations.
-- Adapton cu... | cornell-pl/HsAdapton | src/Control/Monad/Incremental/Internal/Adapton/Algorithm.hs | bsd-3-clause | 25,988 | 192 | 22 | 4,852 | 7,941 | 4,026 | 3,915 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE StandaloneDeriving , CPP#-}
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
module Codec.JVM.Pretty
(module Text.PrettyPrint.GenericPretty)
where
import Codec.JVM
import Codec.JVM.ASM.Code.Instr
import Codec.JVM.ConstPool
imp... | HaskellZhangSong/codec-jvm-pretty | src/Codec/JVM/Pretty.hs | bsd-3-clause | 2,242 | 0 | 9 | 248 | 666 | 335 | 331 | -1 | -1 |
module MB.Gen.Index
( buildIndexPage
)
where
import Control.Monad
import Control.Monad.Trans
import System.Directory
import MB.Types
buildIndexPage :: BlogM ()
buildIndexPage = do
blog <- theBlog
when (null $ blogPosts blog) $
error "No blog posts; please create a first post in posts/."
let sr... | jtdaugherty/mathblog | src/MB/Gen/Index.hs | bsd-3-clause | 473 | 0 | 12 | 107 | 135 | 69 | 66 | 15 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Physics.FunPart.MCTest
( runTests
) where
import qualified Data.Vector as V
import Test.QuickCheck
import Data.Maybe (isNothing)
import System.Random (mkStdGen)
import Control.Monad.State (evalState)
import Physics.FunPart.Core
import Physics.FunPart.Approx
import Physics.FunP... | arekfu/funpart | test/Physics/FunPart/MCTest.hs | bsd-3-clause | 1,937 | 0 | 15 | 502 | 623 | 318 | 305 | 43 | 1 |
module Main where
import Control.Monad
import System.Environment
import YaLedger.Types
import YaLedger.Tree
import YaLedger.Pretty
import YaLedger.Parser
import YaLedger.Parser.CSV
main = do
[config, path] <- getArgs
coa <- readCoA "test.accounts"
records <- loadCSV config coa path
forM_ records $ \rec ->
... | portnov/yaledger | CSV.hs | bsd-3-clause | 352 | 0 | 10 | 61 | 104 | 55 | 49 | 14 | 1 |
-- |
module Window (UI(..), initGL, terminate) where
import Prelude hiding (init)
import Control.Applicative
import Control.Monad (when)
import Data.IORef
import Data.Maybe (isNothing)
import Data.Set (Set)
import qualified Data.Set as S
import Data.Time.Clock
import Graphics.UI.GLFW
import Linear
import System.Direc... | rabipelais/record-gl | examples/2D/Window.hs | bsd-3-clause | 3,090 | 0 | 14 | 729 | 893 | 436 | 457 | 62 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Network.CGI
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/core/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : experimental
-- Portabilit... | OS2World/DEV-UTIL-HUGS | libraries/Network/CGI.hs | bsd-3-clause | 8,746 | 20 | 16 | 2,468 | 2,491 | 1,324 | 1,167 | 180 | 3 |
{-# LANGUAGE PolyKinds, DataKinds, TemplateHaskell, TypeFamilies,
GADTs, TypeOperators, RankNTypes, FlexibleContexts, UndecidableInstances,
FlexibleInstances, ScopedTypeVariables, MultiParamTypeClasses,
OverlappingInstances #-}
module Main where
import Test.Framework (defaultMain, testGroup, defaultMainWith... | jfischoff/oxymoron | tests/Main.hs | bsd-3-clause | 3,160 | 8 | 17 | 864 | 921 | 494 | 427 | 64 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UndecidableInstances #-}
module Malgo.Syntax where
import Control.Lens (makeLenses, makePrisms, view, (^.), _2)
import Data.Foldable (foldl1)
import Data.Graph (flattenSCC, stronglyConnComp)
import qualified Data.HashSet as HashSet
import Koriel.Id
import Koriel.Pretty
im... | takoeight0821/malgo | src/Malgo/Syntax.hs | bsd-3-clause | 18,821 | 0 | 17 | 4,444 | 9,422 | 4,737 | 4,685 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Haddock
-- Copyright : Isaac Jones 2003-2005
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- This module deals with the @haddock@ and @hscolour@ commands. Sadly this ... | dcreager/cabal | Distribution/Simple/Haddock.hs | bsd-3-clause | 20,680 | 184 | 27 | 5,870 | 4,396 | 2,274 | 2,122 | 334 | 7 |
{-|
Module : AERN2.MP.Accuracy
Description : Rough accuracy of an enclosure
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portable
A type for measuring the accuracy of an enclosing set,
ro... | michalkonecny/aern2 | aern2-mp/src/AERN2/MP/Accuracy.hs | bsd-3-clause | 9,212 | 0 | 14 | 1,924 | 2,358 | 1,213 | 1,145 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGU... | tvh/llvm-general-quote | src/LLVM/General/Quote/Base.hs | bsd-3-clause | 33,688 | 22 | 14 | 7,028 | 1,738 | 970 | 768 | -1 | -1 |
{-# LANGUAGE CPP
, NoImplicitPrelude
, RankNTypes
, TypeFamilies
, FunctionalDependencies
, FlexibleInstances
, UndecidableInstances
, MultiParamTypeClasses #-}
#if __GLASGOW_HASKELL__ >= 702
{-# LANGUAGE Safe #-}
#endif
#if MIN_VERSION_tran... | jwiegley/monad-control | Control/Monad/Trans/Control.hs | bsd-3-clause | 19,170 | 5 | 13 | 4,455 | 3,412 | 1,952 | 1,460 | -1 | -1 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DeriveFunctor #-}
module Data.Piso (
-- * Partial isomorphisms
Piso(..), forward, backward,
FromPiso(..),
(:-)(..)
) where
import Prelude hiding (id, (.))
import Control.Monad ((>=>))
import Control.Category (Category(..))
-- | Bidirectional isomorphism that... | MedeaMelana/Piso | Data/Piso.hs | bsd-3-clause | 2,142 | 0 | 9 | 531 | 361 | 215 | 146 | 24 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.NV
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
-- A convenience module, combin... | haskell-opengl/OpenGLRaw | src/Graphics/GL/NV.hs | bsd-3-clause | 8,305 | 0 | 5 | 638 | 1,432 | 1,053 | 379 | 189 | 0 |
module Gidl.Backend.Ivory where
import Ivory.Artifact
import Ivory.Artifact.Template
import Data.Char (isSpace)
import Data.List (intercalate, nub)
import Text.PrettyPrint.Mainland
import qualified Paths_gidl as P
import Gidl.Interface
import Gidl.Schema
import Gidl.Backend.Cabal
import Gidl.Backend.Ivory.Types
imp... | GaloisInc/gidl | src/Gidl/Backend/Ivory.hs | bsd-3-clause | 3,332 | 0 | 12 | 746 | 904 | 486 | 418 | 90 | 2 |
---------------------------------------------------------------------------
-- | Module : Math.Statistics.Dirichlet.Mixture
-- Copyright : (c) 2009-2012 Felipe Lessa
-- License : BSD3
--
-- Maintainer : felipe.lessa@gmail.com
-- Stability : experimental
-- Portability : portable
--
-------------------------... | meteficha/statistics-dirichlet | src/Math/Statistics/Dirichlet/Mixture.hs | bsd-3-clause | 19,883 | 0 | 23 | 6,026 | 4,917 | 2,564 | 2,353 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Specify.Config where
import Specify.Constraint
import Autolib.Reader
import Autolib.ToDoc
import Data.Typeable
data Config =
Config { constraints :: System
, checks_per_constraint :: Int
}
deriving Typeable
$(derives [makeReader, makeToDoc] [''Config])
... | florianpilz/autotool | src/Specify/Config.hs | gpl-2.0 | 482 | 6 | 9 | 90 | 110 | 67 | 43 | 15 | 1 |
{-# LANGUAGE DeriveDataTypeable, CPP, MultiParamTypeClasses,
FlexibleContexts, ScopedTypeVariables, PatternGuards,
ViewPatterns #-}
{-
Copyright (C) 2006-2015 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lic... | alexvong1995/pandoc | src/Text/Pandoc/Shared.hs | gpl-2.0 | 39,693 | 687 | 16 | 12,375 | 10,357 | 5,593 | 4,764 | 731 | 21 |
-- Copyright (c) 2010 - Seweryn Dynerowicz
-- 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 applicable law or agree... | sdynerow/Semirings-Library | haskell/Algebra/Constructs/pouet.hs | apache-2.0 | 2,174 | 1 | 12 | 512 | 887 | 468 | 419 | 43 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
-- | Helpers for testing
module Tests.Helpers (
-- * helpers
T(..)
, typeName
, Double01(..)
-- * IEEE 754
, isDenorm
-- * Generic QC tests
, monotonicallyIncreases
, monotonicallyIncreasesIEEE
-- * HUnit helpers
, testAssertion
, testEquality
-... | bos/statistics | tests/Tests/Helpers.hs | bsd-2-clause | 2,897 | 0 | 11 | 582 | 796 | 438 | 358 | 52 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module Main (main) where
import Control.Monad
import Data.Bits
import Data.Word (Word8, Word64)
import Data.List (unfoldr)
import Succinct.Internal.Broadword
import Test.Framework.Providers.HUnit
import Test.Framework.Providers.QuickChe... | Gabriel439/succinct | tests/selectWordTest.hs | bsd-2-clause | 982 | 0 | 11 | 150 | 313 | 172 | 141 | 27 | 1 |
{-|
Module : Data.STM.PriorityQueue.Internal.ListPQ
Description : STM-based Concurrent Priority Queue data structure class implementation
Copyright : (c) Alex Semin, 2015
License : BSD3
Maintainer : alllex.semin@gmail.com
Stability : experimental
Portability : portable
An implementation of 'Data.STM.Prio... | Alllex/stm-data-collection | src/Data/STM/PriorityQueue/Internal/ListPQ.hs | bsd-3-clause | 1,530 | 0 | 12 | 419 | 443 | 230 | 213 | 34 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-- From github package: https://hackage.haskell.org/package/github
-- Copyright 2011-2013 Mike Burns, 2013-2015 John Wiegley, 2016-2020 Oleg Grenrus
--
-- All rights reserved.
--
-- Redistribution and use in source ... | dmjio/aeson | examples/src/GitHub.hs | bsd-3-clause | 8,596 | 0 | 41 | 1,815 | 1,496 | 820 | 676 | -1 | -1 |
--------------------------------------------------------------------
-- |
-- Module : Flickr.Contacts
-- Description : flickr.contacts - fetch user's contact list.
-- Copyright : (c) Sigbjorn Finne, 2008
-- License : BSD3
--
-- Maintainer : Sigbjorn Finne <sof@forkIO.com>
-- Stability : provisional
-- Por... | sof/flickr | Flickr/Contacts.hs | bsd-3-clause | 1,064 | 0 | 14 | 187 | 164 | 95 | 69 | 15 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Halfs.Errors
where
import Data.Word
import Foreign.C.Error
import Halfs.Monad
import Halfs.Types
data HalfsError =
HE_AbsolutePathExpected
| HE_AllocFailed
| HE_BadFileHandleForRead
| HE_BadFileHandleForWrite
| HE_DecodeFail_... | hackern/halfs | Halfs/Errors.hs | bsd-3-clause | 6,058 | 0 | 9 | 2,572 | 1,584 | 764 | 820 | 144 | 1 |
module Reddit.Types.PostSpec where
import Reddit.Types.Post
import Data.Aeson (eitherDecode)
import Data.ByteString.Lazy (ByteString)
import Test.Hspec
isLeft :: Either a b -> Bool
isLeft = const True `either` const False
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "Reddit.Types.Post" $ do
let d... | intolerable/reddit | test/Reddit/Types/PostSpec.hs | bsd-2-clause | 585 | 0 | 14 | 99 | 190 | 99 | 91 | 16 | 1 |
module Distribution.Client.Dependency.Modular.ConfiguredConversion
( convCP
) where
import Data.Maybe
import Prelude hiding (pi)
import Distribution.Package (UnitId)
import Distribution.Client.Types
import Distribution.Client.Dependency.Types (ResolverPackage(..))
import qualified Distribution.Client.Package... | tolysz/prepare-ghcjs | spec-lts8/cabal/cabal-install/Distribution/Client/Dependency/Modular/ConfiguredConversion.hs | bsd-3-clause | 1,712 | 0 | 12 | 444 | 427 | 232 | 195 | 38 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.PackageDescription
-- Copyright : Isaac Jones 2003-2005
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Portabil... | thomie/cabal | Cabal/Distribution/PackageDescription.hs | bsd-3-clause | 50,919 | 0 | 16 | 14,486 | 9,947 | 5,527 | 4,420 | 830 | 3 |
<?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="tr-TR">
<title>Göster | ZAP Uzantıları</title>
<maps>
<homeID>top</homeID>
<mapref loca... | kingthorin/zap-extensions | addOns/reveal/src/main/javahelp/org/zaproxy/zap/extension/reveal/resources/help_tr_TR/helpset_tr_TR.hs | apache-2.0 | 978 | 78 | 66 | 158 | 423 | 213 | 210 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
module CmmExpr
( CmmExpr(..), cmmExprType, cmmExprWidth, maybeInvertCmmExpr
, CmmReg(..), cmmRegType
, CmmLit(..), cmmLitType
, LocalReg... | green-haskell/ghc | compiler/cmm/CmmExpr.hs | bsd-3-clause | 20,742 | 0 | 12 | 5,698 | 4,651 | 2,414 | 2,237 | 344 | 2 |
{-# LANGUAGE JavaScriptFFI, InterruptibleFFI #-}
{-
Test whether throwing exceptions from JavaScript gives the expected result
-}
module Main where
import Control.Concurrent
import qualified Control.Exception as Ex
import System.IO
import GHCJS.Prim
foreign import javascript unsafe
... | beni55/ghcjs | test/ffi/ffiExceptions.hs | mit | 1,274 | 5 | 10 | 296 | 312 | 148 | 164 | 35 | 1 |
module MouseRegion (T, newRegion, coefficients) where
data Origin =
TopLeft
| BottomLeft
deriving (Eq, Show)
data T = T {
origin :: Origin,
width :: Float,
height :: Float,
center_x :: Float,
center_y :: Float
} deriving (Eq, Show)
newRegion :: Origin -> Float -> Float -> T
newRegion o w h... | io7m/jcamera | com.io7m.jcamera.documentation/src/main/resources/com/io7m/jcamera/documentation/haskell/MouseRegion.hs | isc | 743 | 0 | 14 | 222 | 316 | 179 | 137 | 28 | 2 |
module FIFO where
import Control.Monad
import Control.Monad.State
import Data.List
import Data.Maybe
data FIFO a = FIFO [a] [a]
deriving Show
empty :: FIFO a
empty = FIFO [] []
isEmpty :: FIFO a -> Bool
isEmpty (FIFO [] []) = True
isEmpty _ = False
enqueue :: a -> FIFO a -> FIFO a
enqueue x (FIFO fron... | NaevaTheCat/KMC-haskell | src/FIFO.hs | mit | 1,914 | 0 | 13 | 497 | 574 | 295 | 279 | 35 | 3 |
module FRP.Helm.Extras
( near
, wrap
, foldp2
)where
import FRP.Helm (foldp, (<~), (~~), Signal)
{-| Check if two values are within a tolerance -}
near :: (Num a, Ord a) => a -> a -> a -> Bool
near tolerance x y = abs (x - y) <= tolerance
{-| Wraps the third argument within given range. -}
wrap :: (O... | niilohlin/helm-extras | src/FRP/Helm/Extras.hs | mit | 635 | 0 | 10 | 188 | 308 | 163 | 145 | 14 | 1 |
module GenM32 where
import Data.Word
import Data.Monoid
import Data.List
import System.IO
import qualified Data.ByteString as B
import Data.ByteString.Lazy.Builder
import Inst
osecpuSignatureM32 :: [Word8]
osecpuSignatureM32 = [0x05, 0xE2, 0x00, 0xCF, 0xEE, 0x7F, 0xF1, 0x88]
intToWord32 :: Int -> Word32
intToWor... | ryna4c2e/chage | GenM32.hs | mit | 5,259 | 0 | 13 | 2,316 | 1,600 | 808 | 792 | 107 | 30 |
module Data.Integer.Concurrent where
import Control.Applicative
import Control.Concurrent.MVar as MVar
import Control.Concurrent.MVar.Extensions as MVarExt
newAtomicInteger :: Integral a => a -> IO (MVar a)
newAtomicInteger = MVar.newMVar
getAndAdd :: Integral a => MVar a -> a -> IO a
getAndAdd = \mvar change -> ((li... | stevedonnelly/haskell | code/Data/Integer/Concurrent.hs | mit | 838 | 0 | 11 | 139 | 343 | 179 | 164 | 18 | 1 |
module Naming5 where
outer b = b
where
inner :: a -> a
inner a = const b a
const _ b = b
| Lemmih/haskell-tc | tests/Naming5.hs | mit | 101 | 0 | 7 | 36 | 46 | 24 | 22 | 5 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
module Database.Persist.Class.DeleteCascade
( DeleteCascade (..)
, deleteCascadeWhere
) where
import Database.Persist.Class.PersistStore
import Database.Persist.Class.PersistQuery
import Database.Persist.Class.PersistEntity
import qualif... | gbwey/persistentold | persistent/Database/Persist/Class/DeleteCascade.hs | mit | 709 | 0 | 9 | 116 | 180 | 102 | 78 | 15 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Rules where
{-
some kind of chess thingy
-}
import Data.Array.IArray
import Data.List (groupBy, sortBy)
import Data.List.Split (splitOn)
import Data.Text (strip)
import Text.Read (readMaybe)
import Data.Tuple (swap)
import Data.Char (ord, chr, toLower)
import qualified Data.... | nyson/fess | Rules.hs | mit | 9,921 | 9 | 29 | 3,105 | 2,682 | 1,444 | 1,238 | -1 | -1 |
module Trivial where
data Trivial =
Trivial'
instance Eq Trivial where
Trivial' == Trivial' = True | candu/haskellbook | ch6/trivial.hs | mit | 104 | 0 | 6 | 21 | 30 | 16 | 14 | 5 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GADTs #-}
module Web.Markury.Action.Util where
import Web.Markury.Model.DB
import Web.Markury.Model.Input
import Control.Monad.IO.Class ( MonadIO )
import Control.Monad.Logger ( NoLoggingT, runNoLoggingT )
import Control.Monad.Trans.Resource ( ResourceT, runResourceT )
... | y-taka-23/markury | src/Web/Markury/Action/Util.hs | mit | 772 | 0 | 11 | 101 | 221 | 130 | 91 | 16 | 1 |
module Dotfiles.CommandsSpec where
import Control.Monad ((>=>))
import Data.List (sort)
import Test.Hspec
import Dotfiles
import Dotfiles.Commands
import Dotfiles.Config
import Dotfiles.Utils
import SpecHelper
-- re-read config
cmd :: Env -> Command -> Args -> IO ()
cmd env command args =
readEnv (envRoot env) >>... | ilya-yurtaev/hdotfiles | tests/Dotfiles/CommandsSpec.hs | mit | 1,999 | 0 | 23 | 530 | 619 | 317 | 302 | 46 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module GhostLang.InterpreterTests
( oneLevelCallNoParamsPattern
, oneLevelCallOneParamPattern
, localScopeOneParamPattern
, twoLevelTwoParamsPattern
, longChainTwoParamsPattern
) where
import Control.Concurrent.STM (newTVarIO, readTVarIO)
import GhostLang.Runt... | kosmoskatten/ghost-lang | ghost-lang/test/GhostLang/InterpreterTests.hs | mit | 5,241 | 0 | 18 | 1,597 | 1,267 | 639 | 628 | 106 | 1 |
module Y2016.M08.D31.Exercise where
import Crypto.Hash
import qualified Data.ByteString.Lazy.Char8 as BL
{--
We'll look at Merkle trees from the tweet we saw yesterday on @1HaskellADay
from Carlos Galdino @carlosgaldino.
http://blog.carlosgaldino.com/merkle-trees.html
Also, Merkle trees are used in the Blockchain (... | geophf/1HaskellADay | exercises/HAD/Y2016/M08/D31/Exercise.hs | mit | 2,039 | 0 | 7 | 345 | 124 | 75 | 49 | 11 | 1 |
------------------------------------------------------------------------------
module Network.HTTP.Media.Tests (tests) where
import Control.Monad (join, replicateM, (>=>))
import Data.Foldable (foldlM)
import Data.Function ... | zmthy/http-media | test/Network/HTTP/Media/Tests.hs | mit | 9,839 | 0 | 18 | 2,643 | 2,624 | 1,310 | 1,314 | 190 | 2 |
module Problems where
{-|
This module is used to generate the Main module.
This is useful because of the many Problem modules
that need to be included.
It's also not possible at the moment[1] to use TemplateHaskell for this.
[1]: https://ghc.haskell.org/trac/ghc/ticket/1475
|-}
import Data.Function (on)
impor... | runjak/projectEuler | src/Problems.hs | mit | 1,534 | 0 | 14 | 373 | 374 | 211 | 163 | 34 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Language.TypeScript.Pretty
-- Copyright : (c) DICOM Grid Inc. 2013
-- License : MIT
--
-- Maintainer : Phillip Freeman <paf31@cantab.net>
-- Stability : experimental
-- Portability :
--
-- |
--
--------------... | paf31/language-typescript | src/Language/TypeScript/Pretty.hs | mit | 8,354 | 0 | 12 | 1,351 | 2,524 | 1,231 | 1,293 | 217 | 1 |
import Types
import Typechecker
main :: IO ()
main = return ()
| 5outh/Molecule | Main.hs | gpl-2.0 | 64 | 0 | 6 | 13 | 27 | 14 | 13 | 4 | 1 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, OverloadedStrings #-}
module Sound.Tidal.UI where
import Prelude hiding ((<*), (*>))
import Data.Char (digitToInt, isDigit, ord)
import Data.Bits (testBit, Bits, xor, shiftL, shiftR)
-- import System.Random (randoms, mkStdG... | d0kt0r0/Tidal | src/Sound/Tidal/UI.hs | gpl-3.0 | 75,241 | 0 | 26 | 18,019 | 18,726 | 9,556 | 9,170 | -1 | -1 |
-- | Functions for parsing Stockholm alignments
module Biobase.StockholmAlignment.Import (
readExistingStockholm,
parseStockholm,
readStockholm,
module Biobase.StockholmAlignment.Types
) where
import Bioba... | eggzilla/StockholmAlignment | Biobase/StockholmAlignment/Import.hs | gpl-3.0 | 8,132 | 0 | 16 | 1,635 | 2,483 | 1,236 | 1,247 | 188 | 4 |
module View.Panel
( drawPanel
) where
import Control.Lens
import View.State
import View.Convert
import GameLogic
import Middleware.Gloss.Facade
--TODO: Pause checkbox
--TODO: Collapsible panel
drawPanel :: ViewData -> Picture
drawPanel state =
let size = state ^. windowSize
width = fromIntegral $ ... | EPashkin/gamenumber-gloss | src/View/Panel.hs | gpl-3.0 | 5,194 | 0 | 17 | 1,510 | 1,515 | 792 | 723 | -1 | -1 |
module Expand (expandAll, replaceSourceInfoOnXObj) where
import Control.Monad.State.Lazy (StateT(..), runStateT, liftIO, modify, get, put)
import Control.Monad.State
import Debug.Trace
import Types
import Obj
import Util
import Lookup
-- | Used for calling back to the 'eval' function in Eval.hs
type DynamicEvaluator... | eriksvedang/Carp | src/Expand.hs | mpl-2.0 | 10,945 | 0 | 26 | 3,817 | 3,431 | 1,695 | 1,736 | 178 | 36 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-games/gen/Network/Google/Resource/Games/Scores/ListWindow.hs | mpl-2.0 | 7,004 | 0 | 21 | 1,716 | 1,010 | 582 | 428 | 145 | 1 |
-- Copyright (C) 2016-2017 Red Hat, Inc.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any later version.
--
-- This libr... | dashea/bdcs | importer/BDCS/Files.hs | lgpl-2.1 | 2,107 | 0 | 17 | 486 | 436 | 234 | 202 | 27 | 1 |
s=2:3:5:filter(\n->not.any(\p->mod n p==0).takeWhile(<(n-7))$s)[7..];main=print s | Crazycolorz5/Haskell-Code | PrintPrimes.hs | unlicense | 81 | 0 | 14 | 3 | 83 | 44 | 39 | 1 | 1 |
module Git.Command.VerifyTag (run) where
run :: [String] -> IO ()
run args = return () | wereHamster/yag | Git/Command/VerifyTag.hs | unlicense | 87 | 0 | 7 | 15 | 42 | 23 | 19 | 3 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.