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 DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Sizes/List.hs | mpl-2.0 | 4,165 | 0 | 17 | 1,087 | 708 | 407 | 301 | 96 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.Partners.Types.Sum
-- Copyright : (c) 2015-2016 Brenda... | brendanhay/gogol | gogol-partners/gen/Network/Google/Partners/Types/Sum.hs | mpl-2.0 | 106,864 | 0 | 11 | 19,730 | 10,134 | 5,475 | 4,659 | 1,352 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
func
:: forall m
. ColMap2
-> ColInfo
-> ColInfo
-> ColInfo
-> ColInfo
-> ColInfo
-> m ()
| lspitzner/brittany | data/Test33.hs | agpl-3.0 | 144 | 0 | 13 | 40 | 41 | 21 | 20 | 10 | 0 |
module HW08 where
import Data.Maybe
import Text.Read
import Data.List
import Data.Monoid
import Control.Monad.Random
import Control.Monad (replicateM)
-- | Exercise 1: detect wether a string as a certain format and return
-- true
-- >>> stringFitsFormat "3aaa2aa"
-- True
-- >>> stringFitsFormat "100a"
-- False
-- >>>... | romanofski/codesnippets | haskellCIS194/homework8/HW08.hs | unlicense | 2,926 | 0 | 12 | 676 | 702 | 395 | 307 | 45 | 2 |
--(**) Flatten a nested list structure.
--
--Transform a list, possibly holding lists as elements into a `flat' list by replacing each list with its elements (recursively).
--
--Example:
--
-- * (my-flatten '(a (b (c d) e)))
--(A B C D E)
--Example in Haskell:
--
--We have to define a new data type, because lists in Ha... | tiann/haskell-learning | haskell99/p07/main.hs | apache-2.0 | 730 | 0 | 9 | 143 | 114 | 69 | 45 | 4 | 1 |
module NLP.LTAG.Early3.Test1 where
import Control.Applicative ((<$>), (<*>))
import Control.Monad (void)
import qualified Data.IntMap as I
import qualified Data.Set as S
import Data.List (sortBy)
import Data.Ord (comparing)
import NLP.LTAG.Tree (AuxTree(AuxTree), Tr... | kawu/ltag | src/NLP/LTAG/Early3/Test2.hs | bsd-2-clause | 1,496 | 0 | 12 | 421 | 521 | 280 | 241 | 44 | 1 |
{-# LANGUAGE TupleSections, OverloadedStrings #-}
module Handler.Home where
import Import
import Data.Time
import Handler.Quote
import Model.Quote
import Database.Persist.GenericSql.Raw
-- | form widget
quoteCreate :: GWidget App App () -> Enctype -> GWidget App App ()
quoteCreate formWidget enctype = $(widgetFile "q... | qnikst/ygruq | Handler/Home.hs | bsd-2-clause | 1,077 | 0 | 14 | 231 | 301 | 150 | 151 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RankNTypes #-}
#if MIN_VERSION_base(4,7,0)
{-# LANGUAGE RoleAnnotations #-}
#endif
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE Trustworthy #-}
{-# OPTIONS_GHC -fno-cse -fno-full-laziness #-}
--------... | Gabriel439/promises | src/Data/Promise.hs | bsd-2-clause | 6,566 | 0 | 22 | 1,366 | 1,713 | 890 | 823 | 117 | 5 |
--- Copyright (C) 2007 Bart Massey
--- ALL RIGHTS RESERVED
--- Please see the end of this file for license information.
module DelayArgs
where
import System.Console.ParseArgs
data Options =
OptionDelay |
OptionAmplitude |
OptionForward |
OptionInputFile |
OptionOutputFile
deriving (Ord, Eq, S... | BartMassey/sounddelay | DelayArgs.hs | bsd-3-clause | 3,115 | 0 | 8 | 850 | 309 | 199 | 110 | 35 | 1 |
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable, RankNTypes, ConstraintKinds #-}
module Test where
-- TODO: use "Scrap your typeclasses" examples
import Classes ((<$>), (<*>))
import qualified Classes as D
import Prelude (Eq, Read, Show, (+), (-), zipWith, repeat, ($), const, id)
import Templates
import Language.Has... | mgsloan/instance-templates | tests/monads/Test.hs | bsd-3-clause | 1,218 | 0 | 9 | 317 | 248 | 156 | 92 | 30 | 1 |
{-------------------------------------------------------------------------------
DSem.Vector
Vector interface
(c) 2013 Jan Snajder <jan.snajder@fer.hr>
-------------------------------------------------------------------------------}
module DSem.Vector
( Vector (..)
, Weight
, norm1
, norm2
, scale
,... | jsnajder/dsem | src/DSem/Vector.hs | bsd-3-clause | 3,965 | 0 | 13 | 1,001 | 1,337 | 724 | 613 | 94 | 2 |
module Words where
import Prelude hiding (readFile)
import System.IO.UTF8(readFile)
import NLP.Tokenize(tokenize)
import Text.Regex.TDFA((=~))
import Data.Char(toLower)
import Data.List(sortBy, intersperse)
import Data.Ord(comparing)
import Data.HashMap.Strict(empty,
insertWith,
... | RayRacine/hs-word2vec | Words.hs | bsd-3-clause | 2,289 | 0 | 15 | 541 | 602 | 324 | 278 | 42 | 1 |
import System.Environment
import Control.Applicative
import Text.HTML.TagSoup
import qualified Data.ByteString.Char8 as S
main :: IO ()
main = do
[filename] <- getArgs
renderTags . parseTags <$> S.readFile filename >>= S.putStrLn
| yihuang/tag-stream | TestTagSoup.hs | bsd-3-clause | 239 | 0 | 10 | 38 | 73 | 40 | 33 | 8 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
module Data.Folds.Accumulator (
-- * Monoid accumulators
Accumulator(..)
-- ** Data types
, Count(..)
, Max(..)
, Min(..)
) where
import Data.Monoid
----------------------------------------------------------------
-- Mon... | Shimuuar/data-folds | Data/Folds/Accumulator.hs | bsd-3-clause | 2,214 | 0 | 10 | 533 | 837 | 438 | 399 | 55 | 0 |
module Main where
import Control.Monad
import qualified Toc1
import qualified Toc2
import qualified Toc4a
import qualified Toc4b
import qualified Toc4c
import Test.HUnit
main :: IO ()
main = void $ runTestTT tests
where
tests = TestList
[ Toc1.tests
, Toc2.tests
, Toc... | hjwylde/haskell-type-classes-workshop | test/Main.hs | bsd-3-clause | 395 | 0 | 9 | 135 | 91 | 55 | 36 | 16 | 1 |
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
module Value.Integer (
IntegerValue,
fromInt,
getAll,
) where
import SudokuAbstract
import GHC.Generics (Generic)
import Control.DeepSeq
newtype IntegerValue = IntegerValue Integer
deriving (Show, Eq, Generic, NFData)
instance SudokuValue I... | Solpatium/Haskell-Sudoku | src/Value/Integer.hs | bsd-3-clause | 634 | 0 | 7 | 137 | 186 | 96 | 90 | 21 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Views.AddClient (toClient, newClientAddDialog) where
import Graphics.Vty.Widgets.All (Widget, Edit,
editWidget,getEditText,
plainText,
centered,
... | angerman/HInvoice | Views/AddClient.hs | bsd-3-clause | 3,080 | 0 | 20 | 941 | 1,001 | 511 | 490 | 71 | 1 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.Compatibility43
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability ... | haskell-opengl/OpenGLRaw | src/Graphics/GL/Compatibility43.hs | bsd-3-clause | 75,901 | 0 | 5 | 9,833 | 11,521 | 7,108 | 4,413 | 2,676 | 0 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LA... | albertov/hs-mapnik | bindings/src/Mapnik/Bindings/Render.hs | bsd-3-clause | 4,379 | 0 | 20 | 1,009 | 949 | 515 | 434 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE ScopedTypeVariables #-}
import Common
import Database.PostgreSQL.Simple.FromField (FromField)
import Database.PostgreSQL.Simple.Types(Query(..),Values(..))
import Database.PostgreSQL.Simple.HStore
import Database.PostgreSQL.Simple.Copy
im... | avieth/postgresql-simple | test/Main.hs | bsd-3-clause | 13,354 | 0 | 20 | 3,679 | 4,016 | 2,048 | 1,968 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Orbits.Simulation.TensorFlow (createSimulation) where
import Control.Lens hiding (_1, _2)
import Data.Int (Int32, Int64)
import Data.Vector (Vector)
import qualified Data.ByteS... | bjoeris/orbits-haskell-tensorflow | src/Orbits/Simulation/TensorFlow.hs | bsd-3-clause | 9,620 | 0 | 18 | 2,061 | 1,733 | 931 | 802 | 118 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module GeoLabel.Real (R) where
import System.Random (Random)
import Data.Fixed (Fixed, HasResolution, resolution)
newtype R = R (Double) deriving (Eq, Ord, Fractional, Floating, RealFloat, Num, Real, Random, RealFrac, Show)
--instance Floating R where
data E30
insta... | wyager/GeoLabel | src/GeoLabel/Real.hs | bsd-3-clause | 372 | 0 | 6 | 59 | 116 | 66 | 50 | -1 | -1 |
import Fakemain
main :: IO ()
main = main'
| Frefreak/hnem | app/Main.hs | bsd-3-clause | 44 | 0 | 6 | 10 | 19 | 10 | 9 | 3 | 1 |
module Main where
import Data.HashSet (singleton)
import Language.Haskell.TH
import TH
x = 321
main :: IO ()
main = do
let i = $(hinsert)
let ii = $(hinserte)
print $ i 2 (singleton (1 :: Int))
print $ ii 2 (singleton (1 :: Int))
| s9gf4ult/letqq | src/Main.hs | bsd-3-clause | 257 | 0 | 11 | 71 | 117 | 62 | 55 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
module SlitherBot.Prelude
( module All
, MonadSlither
) where
import ClassyPrelude as All hiding (mapM_, toList)
import Prelude as All (mapM_, iterate)
import Data.Foldable as All (to... | chpatrick/slither-bot | src/SlitherBot/Prelude.hs | bsd-3-clause | 596 | 0 | 9 | 82 | 143 | 92 | 51 | 15 | 0 |
module Folly.Lexer(
Token, name, isVar, isPred, pos,
testOp, testVar, testQuant,
testPred, testSep,
lexer) where
import Text.Parsec.Pos
import Text.ParserCombinators.Parsec
import Folly.Utils
data Token =
Var String SourcePos |
Pred String SourcePos |
Sep String SourcePos |
Op String SourcePos ... | dillonhuff/Folly | src/Folly/Lexer.hs | bsd-3-clause | 2,523 | 0 | 11 | 641 | 1,090 | 543 | 547 | 92 | 3 |
module Metropolis (metroStep) where
import Control.Monad.Random
metroStep :: (RandomGen g) => (Double -> Double) -> Double -> Double -> Rand g Double
metroStep p delta x = do
dx <- getRandomR (-delta, delta)
let
newx = x + dx
p0 = p x
p1 = p newx
weightselect = do
let odds = exp (p1 - p0)
... | mstksg/pi-monte-carlo | src/pimc/Metropolis.hs | bsd-3-clause | 450 | 0 | 17 | 129 | 182 | 94 | 88 | 16 | 3 |
module Data.OrgMode.OrgDocView (
OrgDocView(..), generateDocView, getRawElements,
updateDoc, NodeUpdate(..)
) where
import Data.OrgMode.Doc
import Data.OrgMode.Text
import Data.Set (Set(..), member, lookupLE)
import Data.Maybe (mapMaybe, fromJust, catMaybes)
data OrgDocView a = OrgDocView
{... | lally/orgmode | src/Data/OrgMode/OrgDocView.hs | bsd-3-clause | 3,510 | 0 | 18 | 917 | 1,023 | 539 | 484 | 72 | 3 |
module Lib.Revisit
( M, avoid, run
) where
import Control.Monad.Trans.State (StateT, evalStateT)
import Data.Set (Set)
import qualified Control.Monad.Trans.State as State
import qualified Data.Set as Set
import Prelude.Compat
-- Visited:
type M e m = StateT (Set e) m
avoid :: (Mona... | buildsome/buildsome | src/Lib/Revisit.hs | gpl-2.0 | 594 | 0 | 12 | 161 | 233 | 128 | 105 | 18 | 2 |
{- |
Module : ./CSL/SimpleExtendedParameter.hs
Description : Handling of simple extended parameters
Copyright : (c) Ewaryst Schulz, DFKI Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : ewaryst.schulz@dfki.de
Stability : experimental
Portability : portable
This module contains ... | spechub/Hets | CSL/SimpleExtendedParameter.hs | gpl-2.0 | 4,144 | 0 | 12 | 1,141 | 1,062 | 554 | 508 | 71 | 8 |
#!/usr/bin/env runhaskell
{-
generatetimeclock.hs NUMENTRIES
Outputs a dummy timeclock log with the specified number of clock-in/clock-out entries,
one per day.
-}
module Main
where
import System.Environment
import Data.Time.LocalTime
import Data.Time.Calendar
import Text.Printf
main = do
args <- getArgs
let [n... | simonmichael/hledger | tools/generatetimeclock.hs | gpl-3.0 | 626 | 0 | 12 | 99 | 150 | 79 | 71 | 14 | 1 |
{-
Copyright 2010-2012 Cognimeta Inc.
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 agreed to in writ... | bitemyapp/perdure | src/Database/Perdure/WValidator.hs | apache-2.0 | 1,670 | 6 | 10 | 285 | 208 | 127 | 81 | 24 | 0 |
{-# LANGUAGE OverloadedStrings #-}
-- | View library.
module HL.View
(module HL.View
,module V)
where
import HL.Foundation as V (Route(..),App,Human(..),Slug(..))
import HL.Static as V
import Control.Monad as V
import Data.Text as V (Text)
import Lucid as V
import Lucid.Bootstrap as V
import Yesod.Lucid as V
... | gbaz/hl | src/HL/View.hs | bsd-3-clause | 387 | 0 | 7 | 71 | 132 | 86 | 46 | 13 | 1 |
module Main (main) where
import qualified Distribution.ModuleName as ModuleName
import Distribution.PackageDescription
import Distribution.PackageDescription.Check hiding (doesFileExist)
import Distribution.PackageDescription.Configuration
import Distribution.PackageDescription.Parse
import Distribution.System
import... | green-haskell/ghc | utils/ghc-cabal/Main.hs | bsd-3-clause | 25,173 | 53 | 27 | 9,107 | 4,782 | 2,489 | 2,293 | 416 | 14 |
import Diagrams.AST
main = outputImage "recursion.png" 300 300 pilla
pilla = Images $ Atop face body
face = Modifier (Scale 0.3 0.3) $ Images $ Horizontal [pcirc, pcirc]
pcirc = Modifier (Foreground black) $ Shape Circle
body = circles !! 50
circles = iterate (Images . Atop circle . modifier) Blank
... | sordina/Diagrams-AST | test/recursion.hs | bsd-3-clause | 515 | 6 | 10 | 115 | 234 | 108 | 126 | 11 | 1 |
module System.Console.Haskeline.RunCommand (runCommandLoop) where
import System.Console.Haskeline.Command
import System.Console.Haskeline.Term
import System.Console.Haskeline.LineState
import System.Console.Haskeline.Monads
import System.Console.Haskeline.Prefs
import System.Console.Haskeline.Key
import Control.Excep... | judah/haskeline | System/Console/Haskeline/RunCommand.hs | bsd-3-clause | 4,919 | 0 | 17 | 1,486 | 1,600 | 793 | 807 | -1 | -1 |
{-# LANGUAGE MagicHash, NoImplicitPrelude, TypeFamilies, UnboxedTuples,
RoleAnnotations #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Types
-- Copyright : (c) The University of Glasgow 2009
-- License : see libraries/ghc-prim/LICENSE
--... | pparkkin/eta | libraries/ghc-prim/GHC/Types.hs | bsd-3-clause | 9,522 | 4 | 10 | 1,993 | 596 | 421 | 175 | -1 | -1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Stack.Init
( initProject
, InitOpts (..)
) where
import Control.Exception (assert... | deech/stack | src/Stack/Init.hs | bsd-3-clause | 22,455 | 0 | 21 | 7,722 | 4,392 | 2,240 | 2,152 | 420 | 6 |
{-# LANGUAGE TemplateHaskell #-}
module LibC
( someFuncC
) where
import THInSubdir
import Language.Haskell.TH
someFuncC :: IO ()
someFuncC = print $(thFuncC)
| mrkkrp/stack | test/integration/tests/717-sdist-test/files/subdirs/failing-in-subdir/src/LibC.hs | bsd-3-clause | 168 | 0 | 7 | 32 | 41 | 24 | 17 | 7 | 1 |
module A where
import D
import C
import B
main :: Tree Int ->Bool
main t = isSame (sumSquares (fringe t))
(sumSquares (B.myFringe t)+sumSquares (C.myFringe t))
| SAdams601/HaRe | old/testing/moveDefBtwMods/A_TokOut.hs | bsd-3-clause | 189 | 0 | 11 | 55 | 79 | 41 | 38 | 7 | 1 |
-- | A histogram with a uniform reservoir produces quantiles which are valid for the entirely of the histogram’s lifetime.
-- It will return a median value, for example, which is the median of all the values the histogram has ever been updated with.
-- It does this by using an algorithm called Vitter’s R), which random... | graydon/metrics | src/Data/Metrics/Reservoir/Uniform.hs | mit | 5,115 | 0 | 18 | 1,253 | 1,119 | 603 | 516 | 101 | 3 |
module Maior
( exec
, maior
) where
maior [] = error "maximum of empty list"
maior [x] = x
maior (x:xs)
| x > aux = x
| otherwise = aux
where aux = maior xs
-- fiz uma classe em python, para gerar uma lista
-- so precisa retirar a ultima virgula
exec = do
print (maior [415, 753, 480, 367, 492, 326, 603])
p... | tonussi/freezing-dubstep | pratica-04/Maior.hs | mit | 370 | 0 | 10 | 89 | 153 | 84 | 69 | 12 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE OverloadedStrings #-}
module Data.FreeAgent.Generate where
import Control.Arrow (second, (***))
import Control.Monad (forM... | perurbis/hfreeagent | fa-gen-types/Data/FreeAgent/Generate.hs | mit | 8,214 | 0 | 13 | 2,586 | 2,546 | 1,355 | 1,191 | 163 | 4 |
{-# htermination negate :: (Ratio Int) -> (Ratio Int) #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_negate_4.hs | mit | 58 | 0 | 2 | 10 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Initialisation where
import CountedQueue (CountedQueue, writeQueue)
import Crawl
import Directions
import Shared
import Types
import Urls
import Control.Concurrent.STM (atomically, writeTVar)
imp... | jahaynes/crawler | src/Initialisation.hs | mit | 8,263 | 0 | 23 | 2,626 | 2,223 | 1,101 | 1,122 | 139 | 12 |
module Spear.Math.Segment
(
Segment(..)
, seglr
)
where
import Spear.Math.Utils
import Spear.Math.Vector
-- | A line segment in 2D space.
data Segment = Segment {-# UNPACK #-} !Vector2 {-# UNPACK #-} !Vector2
-- | Classify the given point's position with respect to the given segment.
seglr ... | jeannekamikaze/Spear | Spear/Math/Segment.hs | mit | 434 | 0 | 9 | 111 | 105 | 58 | 47 | 11 | 1 |
-- Distributed streaming using Transient
-- See the article: https://www.fpcomplete.com/user/agocorona/streaming-transient-effects-vi
{-# LANGUAGE ScopedTypeVariables, DeriveDataTypeable, MonadComprehensions #-}
module MainCountinuous where
import Transient.Base
import Transient.Move
import Transient.Indeter... | geraldus/transient-universe | examples/PiDistribCountinuous.hs | mit | 4,435 | 0 | 26 | 1,504 | 960 | 494 | 466 | 72 | 2 |
module Commons.Import
( module Commons.NoReflexDom.Import
-- * Re-exported from reflex-dom
, Widget, Element
, DomBuilder, DomBuilderSpace
, AnimationTime (..), AnimationHandler
, PointerEvent, AEventType (..), PEventType (..), PointerEventType (..)
, WheelEvent (..), ModKey (..)
, (=:... | achirkin/qua-view | src/Commons/Import.hs | mit | 422 | 0 | 5 | 82 | 99 | 69 | 30 | 11 | 0 |
module FiniteField.GF256
( GF256Elm(..)
, (/)
) where
import Data.Bits ((.&.), xor, shift, testBit)
import Data.Vector as V
import Prelude hiding ((/))
-- | A Galois Field element. Possible value of 0..255 (inclusive)
newtype GF256Elm = GF256Elm {getInt :: Int}
deriving (Eq, Ord, Read, Sho... | jtcwang/HaskSplit | src/lib/FiniteField/GF256.hs | mit | 2,836 | 0 | 15 | 826 | 779 | 435 | 344 | 47 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-addattributes.html
module Stratosphere.ResourceProperties.IoTAnalyticsPipelineAddAttrib... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/IoTAnalyticsPipelineAddAttributes.hs | mit | 2,691 | 0 | 12 | 251 | 343 | 196 | 147 | 32 | 1 |
-- file: ch04/SplitLines.hs
-- From chapter 4, http://book.realworldhaskell.org/read/functional-programming.html
splitLines :: String -> [String]
splitLines [] = []
splitLines cs =
let (pre, suf) = break isLineTerminator cs
in pre : case suf of
('\r':'\n':rest) -> splitLines rest
... | Sgoettschkes/learning | haskell/RealWorldHaskell/ch04/SplitLines.hs | mit | 486 | 0 | 12 | 149 | 142 | 72 | 70 | 10 | 4 |
import Utils.Fibonacci
main = putStrLn $ show getProblem2Value
getProblem2Value :: Integer
getProblem2Value = sum $ filter even $ takeWhile (<4000000) fibSequence
| jchitel/ProjectEuler.hs | Problems/Problem0002.hs | mit | 165 | 0 | 7 | 23 | 48 | 25 | 23 | 4 | 1 |
-- Copyright 2015 Mitchell Kember. Subject to the MIT License.
-- Project Euler: Problem 40
-- Champernowne's constant
module Problem40 where
import Common (digits, numDigits, takeDigits)
champDigit :: Int -> Int
champDigit = go 1
where
go n i
| i <= d = takeDigits i n `mod` 10
| otherwise = go... | mk12/euler | haskell/Problem40.hs | mit | 466 | 0 | 10 | 123 | 152 | 82 | 70 | 10 | 1 |
module Bindings.Stemmer.Simple
( Stemmer(..)
, Language(..)
, Encoding(..)
, init_stemmer
, simple_stem ) where
import Bindings.Stemmer (StemConfig(..), Stemmer(..),
Language(..), Encoding(..),
init_stemmer, new_stemmer,
... | cosmo0920/bindings-libstemmer | Bindings/Stemmer/Simple.hs | mit | 818 | 0 | 12 | 204 | 213 | 126 | 87 | -1 | -1 |
module LexML.Linker.HtmlCleaner ( cleanEmptyAnchors ) where
import Data.Maybe
import Network.URI
import Text.HTML.TagSoup
import Data.List
import qualified Data.Map as M
import qualified Data.Set as S
import Data.Char
cleanEmptyAnchors :: [Tag String] -> [Tag String]
cleanEmptyAnchors [] = []
cleanEmptyAnchors ((Tag... | lexml/lexml-linker | src/main/haskell/LexML/Linker/HtmlCleaner.hs | gpl-2.0 | 563 | 0 | 11 | 76 | 214 | 115 | 99 | 14 | 1 |
-- -*- mode: haskell -*-
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
module Baum.Order where
import Autolib.ToDoc
import Autolib.Reader
import Data.Typeable
data Order = Pre | In | Post | Level
deriving ( Eq, Ord, Typeable )
$(derives [makeReader, makeToDoc] [''Order])
| Erdwolf/autotool-bonn | src/Baum/Order.hs | gpl-2.0 | 291 | 0 | 9 | 51 | 77 | 45 | 32 | 8 | 0 |
import Graphics.Gloss
main :: IO ()
main = display (InWindow "Dibujo" (300,300) (20,20)) white coronaCircular
coronaCircular :: Picture
coronaCircular = thickCircle 100 30
| jaalonso/I1M-Cod-Temas | src/Tema_25/corona_circular.hs | gpl-2.0 | 174 | 0 | 8 | 25 | 65 | 35 | 30 | 5 | 1 |
module Process (runProgram) where
import Types
import LibPico
import Helpers
import Data.Char (chr, intToDigit)
import Numeric (showHex, showIntAtBase)
import Data.List.Utils (startswith)
import Errors
-- Core Functions --
runProgram :: Program -> Tape -> Int -> String
runProgram _ _ 0 = showError "Maxium number of c... | toish/Pico | src/Process.hs | gpl-3.0 | 4,333 | 54 | 20 | 1,264 | 1,934 | 988 | 946 | 73 | 5 |
module Data.HWDict
( decode
) where
import Control.Applicative ((<$>), (<*>), liftA2)
import Data.List (isPrefixOf)
import Data.Maybe (fromMaybe, mapMaybe, listToMaybe)
import Data.Monoid (All(All, getAll))
import Data.HWDict.Entry
import Text.XML.Light
import Text.XML.Light.Lexer (XmlSource)
type Dict = [Ent... | 23ua/hwdict | src/Data/HWDict.hs | gpl-3.0 | 1,740 | 0 | 12 | 365 | 540 | 299 | 241 | 50 | 1 |
-- Copyright (c) 2013, Diego Souza
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of conditio... | dgvncsz0f/nettty | src/Nettty/nettty.hs | gpl-3.0 | 1,782 | 0 | 7 | 308 | 104 | 61 | 43 | 12 | 1 |
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
-- spurious warnings for view patterns
-- |
-- Copyright : (c) 2010-12 Benedikt Schmidt
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Benedikt Schmidt <beschmi@gmail.com>
--
-- Positions and replacement in terms.
module Term... | tamarin-prover/tamarin-prover | lib/term/src/Term/Positions.hs | gpl-3.0 | 6,087 | 0 | 16 | 1,815 | 2,086 | 1,087 | 999 | 87 | 5 |
import Text.ParserCombinators.Parsec
import Ignifera.GameResult
import Ignifera.Format.PgnParser
import Ignifera.Util.GameResult
main :: IO ()
main = do
print $ testParser terminationMarker showPgnMarker allGameResults
putStrLn "World"
testParser :: Eq a => Parser a -> (a -> String) -> [a] -> Bool
testParser p r... | fthomas/ignifera | test/Main.hs | gpl-3.0 | 445 | 0 | 10 | 107 | 158 | 79 | 79 | 13 | 2 |
module NeuralNetworks where
import Control.Arrow
import Control.Monad
import Control.Monad.State
import Data.Function
import Data.Vector (Vector, (!))
import qualified Data.Vector as V
import Utility
data NN where
NN :: { nnLayers :: !(Ve... | mrlovre/super-memory | Pro5/src/NeuralNetworks.hs | gpl-3.0 | 6,292 | 0 | 25 | 1,887 | 2,166 | 1,107 | 1,059 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ContentCategories/Insert.hs | mpl-2.0 | 3,496 | 0 | 14 | 760 | 406 | 242 | 164 | 64 | 1 |
--
-- Copyright 2017-2018 Azad Bolour
-- Licensed under GNU Affero General Public License v3.0 -
-- https://github.com/azadbolour/boardgame/blob/master/LICENSE.md
--
module Bolour.Util.Empty (
Empty(..)
) where
class Empty a
where isEmpty :: a -> Bool
| azadbolour/boardgame | haskell-server/src/Bolour/Util/Empty.hs | agpl-3.0 | 267 | 0 | 7 | 49 | 39 | 25 | 14 | 4 | 0 |
{-# LANGUAGE TemplateHaskell, DeriveGeneric, DeriveDataTypeable #-}
module Slave.Slave
( Request (..)
, Response (..)
, slaveProc
, slaveProc__static
, remoteTable
) where
import Control.Distributed.Process ( Process, ProcessId, RemoteTable
,... | SneakingCat/distributed-nonsense | src/Slave/Slave.hs | apache-2.0 | 1,006 | 0 | 11 | 265 | 250 | 139 | 111 | 36 | 1 |
module Probability.Repeated (
repeated
) where
import Control.Monad.State (State, runState, get, put)
import Data.Ratio ((%))
-- n-th element in the list represents the probability that the expected event
-- E such that P(E) = init will occur for the first time in (n-1)th attempt.
-- nextProb is the function tha... | Sventimir/bridge-tools | Probability/Repeated.hs | apache-2.0 | 1,588 | 0 | 13 | 448 | 451 | 239 | 212 | 30 | 1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, TypeFamilies #-}
module Data.Function.ArrayMemoize where
import qualified Data.Array.MArray as MArray
import Data.Array.Unboxed
import Data.Array.IO (IOUArray)
import Data.Array.ST (STArray, STUArray, runSTArray)
import Control.Monad.ST
{-| Memoize a function over a... | dorchard/array-memoize | Data/Function/ArrayMemoize.hs | bsd-2-clause | 11,385 | 0 | 23 | 2,908 | 4,319 | 2,349 | 1,970 | 165 | 1 |
module Data.Text.Prettyprint.Doc.Render.Tutorials.TreeRenderingTutorial {-# DEPRECATED "Use \"Prettyprinter.Render.Tutorials.TreeRenderingTutorial\" instead." #-} (
module Prettyprinter.Render.Tutorials.TreeRenderingTutorial
) where
import Prettyprinter.Render.Tutorials.TreeRenderingTutorial
| quchen/prettyprinter | prettyprinter/src/Data/Text/Prettyprint/Doc/Render/Tutorials/TreeRenderingTutorial.hs | bsd-2-clause | 298 | 0 | 5 | 20 | 29 | 22 | 7 | 3 | 0 |
module Spec where
import Control.Monad.State.SubSpec
import Test.Tasty
main :: IO ()
main = defaultMain tests
tests :: TestTree
tests = testGroup "Testing..."
[spec]
| athanclark/sub-state | test/Spec.hs | bsd-3-clause | 173 | 0 | 6 | 30 | 52 | 30 | 22 | 8 | 1 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Andromeda.Types.Hardware.Parameter where
import Data.Typeable
import Andromeda.Types.Physics.Temperature
import Andromeda.Types.Physics.Measurement
import Andromeda.Types.Common.Value
-- First attempt (used in many module... | graninas/Andromeda | src/Andromeda/Types/Hardware/Parameter.hs | bsd-3-clause | 2,357 | 0 | 17 | 402 | 632 | 329 | 303 | -1 | -1 |
{-# OPTIONS_GHC -Wall #-}
module Optimize.Substitute (subst) where
import Control.Arrow (second, (***))
import AST.Expression.General (Expr'(..), PortImpl(..))
import qualified AST.Expression.Optimized as Optimized
import qualified AST.Pattern as Pattern
import qualified AST.Variable as V
import Elm.Utils ((|>))
impo... | pairyo/elm-compiler | src/Optimize/Substitute.hs | bsd-3-clause | 2,604 | 0 | 18 | 1,028 | 856 | 435 | 421 | 75 | 27 |
module Orphans where
import Data.CaseInsensitive (CI, FoldCase, mk, original)
import Data.Aeson (FromJSON(..), ToJSON(..))
instance (FoldCase a, FromJSON a) => FromJSON (CI a) where
parseJSON a = mk <$> parseJSON a
instance ToJSON a => ToJSON (CI a) where
toJSON = toJSON . original
| martyall/kafaka-test | src/Orphans.hs | bsd-3-clause | 303 | 0 | 7 | 63 | 118 | 66 | 52 | 7 | 0 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
module Snap.Util.Proxy.Tests (tests) where
------------------------------------------------------------------------------
import Control.Monad.State hiding (get)
import Data.ByteString.Char8 (ByteString)
import qualified Data.By... | f-me/snap-core | test/suite/Snap/Util/Proxy/Tests.hs | bsd-3-clause | 5,504 | 0 | 14 | 1,334 | 1,027 | 552 | 475 | 86 | 2 |
-- 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.
module Duckling.Numeral.HE.Tests
( tests ) where
import Data.String
import Prelude
import Test.Tasty
import Du... | facebookincubator/duckling | tests/Duckling/Numeral/HE/Tests.hs | bsd-3-clause | 503 | 0 | 9 | 77 | 79 | 50 | 29 | 11 | 1 |
{-# LANGUAGE RankNTypes #-}
module Main where
import qualified Data.ByteString.Char8 as BC
import qualified Data.Text as Text
import qualified Data.Text.Encoding as Text
import qualified Network.HTTP.Client as HTTP
import qualified Network.Wreq.Session as S
import Network.W... | PierreR/vCloudApi | src/vcloud.hs | bsd-3-clause | 2,164 | 1 | 19 | 471 | 564 | 295 | 269 | -1 | -1 |
module Spec where
import Data.PairsSpec
import Test.Tasty
main :: IO ()
main = defaultMain tests
tests :: TestTree
tests = testGroup "Testing..."
[spec]
| athanclark/pairs | test/Spec.hs | bsd-3-clause | 160 | 0 | 6 | 30 | 50 | 28 | 22 | 8 | 1 |
{-# LANGUAGE QuasiQuotes, RecordWildCards #-}
-- | (you should read the source for documentation: just think of this module as a config file)
module Commands.Frontends.Dragon13.Shim.Selection where
import Commands.Frontends.Dragon13.Shim.Types
import Text.InterpolatedString.Perl6
import GHC.Exts ... | sboosali/commands-frontend-DragonNaturallySpeaking | sources/Commands/Frontends/Dragon13/Shim/Selection.hs | bsd-3-clause | 7,478 | 0 | 7 | 2,101 | 81 | 51 | 30 | 7 | 1 |
{-# LANGUAGE LambdaCase #-}
module Main where
import Bound
import Control.Monad
import Control.Monad.Trans
import Control.Lens
import Text.Trifecta (Result(..))
import Text.PrettyPrint.ANSI.Leijen (dullyellow, text)
import System.Console.Haskeline
import System.Environment
import System.Exit
import AST
import Eval
im... | merijn/lambda-except | Main.hs | bsd-3-clause | 1,876 | 0 | 20 | 582 | 571 | 272 | 299 | 52 | 7 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiWayIf #-}
module Game.Monsters.MParasite where
import Control.Lens (use, preuse, ix, zoom, (^.), (.=), (%=), (&), (.~), (%~))
import Control.Monad (when, unless, liftM, void)
import Data.Bits ((.&.), (.|.))
import Linear (V3(..), norm)
import qualified Data.Vector a... | ksaveljev/hake-2 | src/Game/Monsters/MParasite.hs | bsd-3-clause | 24,761 | 0 | 47 | 6,629 | 6,613 | 3,363 | 3,250 | -1 | -1 |
{-# LANGUAGE PatternGuards #-}
module Idris.Core.Unify(match_unify, unify, Fails, FailContext(..), FailAt(..),
unrecoverable) where
import Idris.Core.TT
import Idris.Core.Evaluate
import Control.Monad
import Control.Monad.State.Strict
import Data.List
import Debug.Trace
-- Unification is app... | BartAdv/Idris-dev | src/Idris/Core/Unify.hs | bsd-3-clause | 32,669 | 0 | 22 | 13,932 | 13,221 | 6,580 | 6,641 | 581 | 71 |
-- 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.
{-# LANGUAGE GADT... | rfranek/duckling | Duckling/Temperature/ES/Rules.hs | bsd-3-clause | 2,347 | 0 | 18 | 525 | 542 | 306 | 236 | 60 | 3 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.HABSim.Grib2.CSVParse.Types
-- Copyright : (C) 2017 Ricky Elrod
-- License : (see project LICENSE file)
-- Maintainer : Ricky Elrod <ricky@elrod.me>
-- Stability : experimental
--
-- This module prov... | kg4sgp/habsim | haskell/src/Data/HABSim/Grib2/CSVParse.hs | bsd-3-clause | 3,263 | 0 | 15 | 575 | 489 | 292 | 197 | 38 | 1 |
module Reverse where
import Tip
import qualified Prelude
(++) :: [a] -> [a] -> [a]
[] ++ ys = ys
(x:xs) ++ ys = x:(xs ++ ys)
rev :: [a] -> [a]
rev [] = []
rev (x:xs) = rev xs ++ [x]
-- lemma_assoc xs ys zs = xs ++ (ys ++ zs) === (xs ++ ys) ++ zs
--
-- lemma_rid xs = xs ++ [] === xs
--
-- lemma xs ys = rev x... | danr/emna | examples/Reverse.hs | bsd-3-clause | 383 | 0 | 8 | 108 | 155 | 87 | 68 | 10 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Network.PeyoTLS.Extension (Extension, SignAlg(..), HashAlg(..)) where
import Control.Applicative ((<$>), (<*>))
import Data.Bits (shiftL, (.|.))
import Data.Word (Word8, Word16)
import qualified Data.ByteString as BS
import qualified C... | YoshikuniJujo/forest | subprojects/tls-analysis/server/src/Network/PeyoTLS/Extension.hs | bsd-3-clause | 6,473 | 28 | 18 | 1,220 | 2,600 | 1,337 | 1,263 | 164 | 7 |
-----------------------------------------------------------------------------
-- |
-- Module : Debug.Trace
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : provisional
-- Portability... | OS2World/DEV-UTIL-HUGS | libraries/Debug/Trace.hs | bsd-3-clause | 1,105 | 2 | 8 | 193 | 93 | 56 | 37 | 11 | 1 |
{-# LANGUAGE CPP, DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.Py.SrcLocation
-- Copyright : (c) 2009 Bernie Pope
-- License : BSD-style
-- Maintainer : bjpop@csse.unimelb.edu.au
-- Stability : experimental
-- Portability : ... | codeq/language-py | src/Language/Py/SrcLocation.hs | bsd-3-clause | 7,609 | 0 | 14 | 1,682 | 1,948 | 1,057 | 891 | 166 | 5 |
{-# LANGUAGE RecordWildCards, PatternGuards, ScopedTypeVariables #-}
module Text.HTML.TagSoup.Implementation where
import Data.List
import Text.HTML.TagSoup.Type
import Text.HTML.TagSoup.Options
import Text.StringLike as Str
import Numeric
import Data.Char
import Control.Exception(assert)
import Control.Arrow
------... | nfjinjing/yuuko | src/Text/HTML/TagSoup/Implementation.hs | bsd-3-clause | 7,578 | 0 | 16 | 2,258 | 3,560 | 1,883 | 1,677 | 145 | 31 |
module Example.Internal
(
) where
| smurphy8/refactor-patternmatch-with-lens | src/Example/Internal.hs | bsd-3-clause | 42 | 0 | 3 | 13 | 9 | 6 | 3 | 2 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Targets where
import Types (
Repository,PackageNode,
Variant(Variant),VariantNode,
PackageDescription,Configuration(Configuration),
FinalizedPackageDescription,
Target(Target),TargetNode,
TargetType(LibraryTarget),PackageDependency)
import Variants (loa... | phischu/cabal-analysis | src/Targets.hs | bsd-3-clause | 3,735 | 0 | 16 | 614 | 980 | 513 | 467 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnicodeSyntax #-}
{-|
[@ISO639-1@] to
[@ISO639-2@] ton
[@ISO639-3@] ton
[@Native name@] lea faka-Tonga
[@English name@] ... | telser/numerals | src/Text/Numeral/Language/TON.hs | bsd-3-clause | 1,416 | 0 | 7 | 317 | 265 | 158 | 107 | 29 | 11 |
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Control.Monad
import Molog
import Test.HUnit
import Test.Framework
import Test.Framework.Providers.HUnit
import Test.Framework.TH
main = $(defaultMainGenerator)
case_2vars = runMolog (reify =<< test) @=? [Just 5]
where test :: Molog s (Term s Int)
... | acfoltzer/Molog | test/Tests.hs | bsd-3-clause | 1,140 | 0 | 15 | 483 | 419 | 222 | 197 | 32 | 1 |
{-# OPTIONS_GHC -Wall #-}
module Main where
import Elm.Utils ((|>))
import System.Exit (exitFailure, exitSuccess)
import Messages.Types (Message(..))
import Control.Monad (when)
import Data.Maybe (isJust)
import CommandLine.Helpers
import qualified AST.Module
import qualified Flags
import qualified Data.ByteString a... | fredcy/elm-format | src/Main.hs | bsd-3-clause | 4,270 | 0 | 17 | 1,227 | 1,064 | 532 | 532 | 105 | 3 |
--------------------------------------------------------------------------
-- Copyright (c) 2007-2010, ETH Zurich.
-- All rights reserved.
--
-- This file is distributed under the terms in the attached LICENSE file.
-- If you do not find this file, copies can be found by writing to:
-- ETH Zurich D-INFK, Haldeneggsteig... | daleooo/barrelfish | hake/ARMv5.hs | mit | 6,794 | 8 | 17 | 2,573 | 1,007 | 560 | 447 | 123 | 1 |
module BadPattern where
{-- snippet badExample --}
badExample (x:xs) = x + badExample xs
{-- /snippet badExample --}
{-- snippet goodExample --}
goodExample (x:xs) = x + goodExample xs
goodExample _ = 0
{-- /snippet goodExample --}
| binesiyu/ifl | examples/ch03/BadPattern.hs | mit | 239 | 0 | 7 | 44 | 60 | 33 | 27 | 4 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module InnerEar.Types.Request where
import Text.JSON
import Text.JSON.Generic
import Text.JSON.String (runGetJSON)
import InnerEar.Types.Utility
import InnerEar.Types.Handle
import InnerEar.Types.Password
import InnerEar.Types.Data
import InnerEar.Types.ExerciseId
data Request =
... | JamieBeverley/InnerEar | src/InnerEar/Types/Request.hs | gpl-3.0 | 888 | 0 | 6 | 126 | 152 | 91 | 61 | 21 | 1 |
{-|
Module : Css.Draw
Description : Defines the CSS for the draw page.
Defines the CSS for the draw page, which includes all of the buttons on the
draw page.
-}
module Css.Draw
(drawStyles) where
import Clay hiding (map, repeat, id, i, row, col)
import Prelude hiding ((**))
import Css.Constants
impor... | hermish/courseography | app/Css/Draw.hs | gpl-3.0 | 5,005 | 0 | 18 | 1,488 | 1,449 | 677 | 772 | 160 | 1 |
-- yammat - Yet Another MateMAT
-- Copyright (C) 2015 Amedeo Molnár
--
-- 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) an... | nek0/yammat | Import/NoFoundation.hs | agpl-3.0 | 1,136 | 0 | 5 | 239 | 87 | 67 | 20 | 10 | 0 |
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE DefaultSignatures #-}
module DefaultSignatures where
-- | Documentation for Foo.
class Foo a where
-- | Documentation for bar and baz.
bar, baz :: a -> String
-- | Documentation for the default signature of bar.
default bar :: Show a => a -> String
bar = show
--... | haskell/haddock | latex-test/src/DefaultSignatures/DefaultSignatures.hs | bsd-2-clause | 480 | 0 | 9 | 110 | 86 | 50 | 36 | 10 | 0 |
--
-- Benchmark code: compare http-streams and http-conduit
--
-- Copyright © 2012-2014 Operational Dynamics Consulting, Pty Ltd
--
-- The code in this file, and the program it is a part of, is made
-- available to you by its authors as open source software: you can
-- redistribute it and/or modify it under a BSD licen... | laurencer/confluence-sync | vendor/http-streams/tests/ComparisonBenchmark.hs | bsd-3-clause | 927 | 0 | 11 | 165 | 124 | 70 | 54 | 15 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.