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 Graphics.Quad(
remapCoords
, transformedQuad
, screenQuad
) where
import Data.Vec
import Graphics.GPipe
-- | Coordinates transformation from viewport system to specified local. This function maps points in particular
-- region into texture coordinates.
remapCoords :: Vec2 Float -> Vec2 Float -> Vec... | NCrashed/sinister | src/client/Graphics/Quad.hs | mit | 1,354 | 0 | 12 | 322 | 613 | 322 | 291 | 18 | 1 |
import GenPw
import System.Random
import Control.Monad
main :: IO ()
main = liftM (genPw 8) getStdGen >>= putStrLn
| dex/genpw | Main.hs | mit | 117 | 0 | 8 | 20 | 44 | 23 | 21 | 5 | 1 |
{-# LANGUAGE NoMonomorphismRestriction
#-}
module Plugins.Gallery.Gallery.Manual10 where
import Diagrams.Prelude
import Graphics.Rendering.Diagrams.Points
example = stroke (star (StarSkip 2) (regPoly 8 1))
||| strutX 1
||| stroke (star (StarSkip 3) (regPoly 8 1))
| andrey013/pluginstest | Plugins/Gallery/Gallery/Manual10.hs | mit | 288 | 0 | 11 | 55 | 87 | 47 | 40 | 7 | 1 |
{-# LANGUAGE TypeOperators #-}
module Lib
(
Grid,
makeGrid,
gridFrom
) where
import Data.Array.Repa
import Data.Array.Repa.Index (DIM2, ix2)
import Data.Ownership
type Grid a = Array U DIM2 a
makeGrid :: Int -> Int -> Grid Ownership
makeGrid w h = gridFrom w h $ replicate (w * h) Nil... | range12/gobang | src/Lib.hs | mit | 468 | 0 | 8 | 113 | 149 | 83 | 66 | 16 | 1 |
-- | This module containts the Oden AST - the representation of the syntax.
{-# LANGUAGE LambdaCase #-}
module Oden.Syntax where
import Oden.Identifier
import Oden.SourceInfo
import Oden.Type.Signature
data NameBinding = NameBinding SourceInfo Identifier
deriving (Show, ... | oden-lang/oden | src/Oden/Syntax.hs | mit | 4,519 | 0 | 9 | 1,722 | 1,174 | 611 | 563 | 113 | 0 |
{-# LANGUAGE TemplateHaskell, OverloadedStrings #-}
module Event where
import DateTime
import Data.Aeson.TH
import Data.Aeson
data Event = Event {
start :: DateTime
, end :: Maybe DateTime
, description :: String
} deriving (Show,Eq)
instance ToJSON Event where
toJSON (Event s Nothing d) = object [ "start" ... | edwardwas/haskcal | src/Event.hs | mit | 475 | 4 | 10 | 88 | 169 | 92 | 77 | 14 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Y2021.M02.D05.Exercise where
{--
Okay, yesterday we found lots of duplicates of wine-labels and, digging further,
we saw some wines had multiple reviews from the same reviewer, but also, some
wines had multiple reviews from multiple reviewers.
This begs the question, howeve... | geophf/1HaskellADay | exercises/HAD/Y2021/M02/D05/Exercise.hs | mit | 2,606 | 0 | 9 | 478 | 198 | 119 | 79 | 17 | 1 |
-- |
-- Module: Math.NumberTheory.Primes.Sieve.Indexing
-- Copyright: (c) 2011 Daniel Fischer
-- Licence: MIT
-- Maintainer: Daniel Fischer <daniel.is.fischer@googlemail.com>
-- Stability: Provisional
-- Portability: Non-portable (GHC extensions)
--
{-# OPTIONS_HADDOCK hide #-}
module Math.NumberTheory.Pr... | cfredric/arithmoi | Math/NumberTheory/Primes/Sieve/Indexing.hs | mit | 3,559 | 0 | 11 | 1,191 | 1,447 | 883 | 564 | 96 | 3 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
import Control.Monad.Reader
import Control.Monad.Writer
import Control.Monad.State
type Stack = [Int]
type Output = [Int]
type Program = [Instr]
type VM a = ReaderT Program (WriterT Output (State Stack)) a
newtype Comp a = Comp { unComp :: VM a }
deriving (Monad, MonadRe... | Airtnp/Freshman_Simple_Haskell_Lib | Intro/WIW/VM.hs | mit | 1,587 | 0 | 13 | 440 | 582 | 303 | 279 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module PivotalTracker.Label(updateLabelsOnStories) where
import Control.Monad.Trans(lift)
import World
import Schema
import Control.Monad.Trans.Reader
import Control.Lens((.~), (^.), (^?), (&), re)
import qualified Data.ByteString.Char8 as BCH
import Control.Monad(lif... | zephyr-dev/flow-api | src/PivotalTracker/Label.hs | mit | 4,935 | 100 | 16 | 896 | 1,323 | 728 | 595 | -1 | -1 |
mergeSort :: (Ord a) => [a] -> [a]
mergeSort xs = merge . divide $ xs
divide :: [a] -> [[a]]
divide = map (\x -> [x])
mergeTwo :: (Ord a) => [a] -> [a] -> [a]
mergeTwo xs [] = xs
mergeTwo [] ys = ys
mergeTwo (x:xs) (y:ys) = if x <= y then x:mergeTwo xs (y:ys) else y:mergeTwo (x:xs) ys
mergeIter :: (Ord a) => [[a]] -... | RAFIRAF/HASKELL | mergeSort2.hs | mit | 604 | 0 | 9 | 138 | 426 | 230 | 196 | 17 | 2 |
module Day03 where
type Triangle = (Int, Int, Int)
intsFromStr :: String -> [Int]
intsFromStr input =
map (\i -> read i ::Int) (words input)
take3 :: [Int] -> [Triangle]
take3 =
take3' []
where
take3' acc [] = acc
take3' acc ints' = take3' ((i,j,k):acc) rest
where [i,j,k] = take 3 ints'
... | tftio/advent-of-code-2016 | src/Day03.hs | cc0-1.0 | 757 | 0 | 12 | 227 | 409 | 226 | 183 | 22 | 2 |
-- |
-- Module : $Header$
-- Description : The base Ohua compiler monad
-- Copyright : (c) Justus Adam 2017. All Rights Reserved.
-- License : EPL-1.0
-- Maintainer : sebastian.ertel@gmail.com, dev@justus.science
-- Stability : experimental
-- Portability : POSIX
-- This source code is licensed under the ... | ohua-dev/ohua-core | core/src/Ohua/Internal/Monad.hs | epl-1.0 | 12,256 | 0 | 14 | 3,161 | 3,712 | 1,949 | 1,763 | -1 | -1 |
module Analyzer (
buildWebGraph,
makeQueryTable,
queryTable,
fetchKeywords,
ResultTable
) where
-------------------------------------------------------------------------------
import Data.Maybe
import Data.Char (toLower)
import qualified Data.List as L
import qualified Data.Map as M
import qualified WebG... | carlostome/HCrawler | src/Analyzer.hs | gpl-2.0 | 2,739 | 0 | 17 | 527 | 888 | 500 | 388 | 43 | 2 |
{-
Copyright (C) 2005 John Goerzen <jgoerzen@complete.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is di... | jgoerzen/media-index | FileDB/DB.hs | gpl-2.0 | 4,184 | 0 | 13 | 1,405 | 728 | 355 | 373 | 74 | 4 |
-- |
-- Copyright : (c) 2010-2012 Benedikt Schmidt
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Benedikt Schmidt <beschmi@gmail.com>
--
-- Computing the variants of a term.
module Term.Narrowing.Variants.Compute (
computeVariantsBound
, computeVariants
-- * for testing
, compareSubstVariant... | samscott89/tamarin-prover | lib/term/src/Term/Narrowing/Variants/Compute.hs | gpl-3.0 | 5,935 | 0 | 17 | 1,572 | 1,461 | 786 | 675 | 92 | 6 |
module ExtraTransformations where
import DataTypes
import Utils (translate)
moveEuclidean :: Float -> Float -> Transformation
moveEuclidean dis theata = (translate x y) where
x = (sin angle) * dis
y = (cos angle) * dis
angle = theata * (pi / 180)
combineTransformation :: Transformation -> Transforma... | Lexer747/Haskell-Fractals | Core/ExtraTransformations.hs | gpl-3.0 | 728 | 0 | 9 | 261 | 267 | 148 | 119 | 15 | 1 |
module Experimentation.P10 (p10_test, rle_rec) where
import Test.HUnit
import Data.List
rle_rec :: (Eq a) => [a] -> [(Int,a)]
rle_rec [] = []
rle_rec (a:as) = (b, a) : rle_rec (dropWhile (== a) as)
where
c = (takeWhile (== a) as)
b = length (c) + 1
-- Tests
p10_test = do
runTestTT p10_tests
test_rle_rec = ... | adarqui/99problems-hs | Experimentation/P10.hs | gpl-3.0 | 481 | 0 | 10 | 89 | 220 | 124 | 96 | 14 | 1 |
module Math.Arithmetic.Digits.Test (tests) where
import Test.QuickCheck
import Test.Framework.Providers.API
import Test.Framework.Providers.QuickCheck2
import Math.Arithmetic.Digits
prop_base10_roundtrip :: Integer -> Property
prop_base10_roundtrip n = n >= 0 ==> (undigits $ digits n) == n
prop_baseB_roundtrip :: ... | sykora/zeta | test/Math/Arithmetic/Digits/Test.hs | gpl-3.0 | 648 | 0 | 9 | 140 | 172 | 95 | 77 | -1 | -1 |
{- A positive fraction whose numerator is less than its denominator is called a
proper fraction. For any denominator, d, there will be d1 proper fractions; for
example, with d = 12: 1/12 , 2/12 , 3/12 , 4/12 , 5/12 , 6/12 , 7/12 , 8/12 ,
9/12 , 10/12 , 11/12 .
We shall call a fraction that cannot be cancelled down a ... | zhensydow/ljcsandbox | lang/haskell/euler/completed/problem243.hs | gpl-3.0 | 2,338 | 0 | 12 | 434 | 475 | 257 | 218 | 18 | 1 |
module Language.LXDFile.Version (
version
) where
import Paths_lxdfile (version)
| hverr/lxdfile | src/Language/LXDFile/Version.hs | gpl-3.0 | 84 | 0 | 5 | 12 | 20 | 13 | 7 | 3 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-books/gen/Network/Google/Resource/Books/Personalizedstream/Get.hs | mpl-2.0 | 4,032 | 0 | 15 | 921 | 472 | 280 | 192 | 72 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-people/gen/Network/Google/Resource/People/People/GetBatchGet.hs | mpl-2.0 | 8,363 | 0 | 19 | 1,840 | 1,025 | 605 | 420 | 151 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-admin-directory/gen/Network/Google/Resource/Directory/Users/Delete.hs | mpl-2.0 | 2,560 | 0 | 13 | 601 | 307 | 188 | 119 | 48 | 1 |
{-# LANGUAGE TypeFamilies #-}
module Math.Topology.KnotTh.Algebra.SurfaceDiagram
( SurfaceDiagram(..)
, rightFace
, rightPlace
, rightPair
, nthDartInCWTraverse
, eulerCharOf
, genusOf
) where
import Control.Arrow ((***), first)
import Math.Topology.KnotTh.Algebra.PlanarAlgebra
class ... | mishun/tangles | src/Math/Topology/KnotTh/Algebra/SurfaceDiagram.hs | lgpl-3.0 | 2,346 | 0 | 11 | 682 | 836 | 435 | 401 | 53 | 1 |
module Git.Traverse where
import Control.Monad
import Data.List
import Data.Maybe
import Git.Hash
import Git.Parser
import Git.Object.Commit
import Git.Repository
printCommit :: Commit -> IO ()
printCommit = putStrLn . onelineCommit
printObject :: Object -> IO ()
printObject (GitCommit commit) = printCommit commit... | wereHamster/yag | Git/Traverse.hs | unlicense | 1,323 | 0 | 11 | 240 | 458 | 239 | 219 | 30 | 2 |
{-# LANGUAGE FlexibleInstances #-}
-- Copyright 2014 (c) Diego Souza <dsouza@c0d3.xxx>
--
-- 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.... | locaweb/leela | src/warpdrive/src/Leela/HZMQ/IOLoop.hs | apache-2.0 | 6,444 | 0 | 17 | 2,013 | 2,076 | 1,046 | 1,030 | 144 | 7 |
module DataBase where
-- Data variants for literals and addition
data Lit = Lit Int
data (Exp l, Exp r) => Add l r = Add l r
-- The open union of data variants
class Exp x
instance Exp Lit
instance (Exp l, Exp r) => Exp (Add l r)
| egaburov/funstuff | Haskell/tytag/xproblem_src/samples/expressions/Haskell/OpenDatatype1/DataBase.hs | apache-2.0 | 236 | 0 | 7 | 57 | 87 | 47 | 40 | -1 | -1 |
-- | Low-level safe interface to gRPC. By "safe", we mean:
-- 1. all gRPC objects are guaranteed to be cleaned up correctly.
-- 2. all functions are thread-safe.
-- 3. all functions leave gRPC in a consistent, safe state.
-- These guarantees only apply to the functions exported by this module,
-- and not to helper func... | awakenetworks/gRPC-haskell | core/src/Network/GRPC/LowLevel.hs | apache-2.0 | 3,630 | 0 | 6 | 1,064 | 515 | 368 | 147 | 96 | 0 |
{-|
Module : Network.IRC.Client
Description : Extensible configuration for the IRC bot.
Copyright : (c) Abhinav Sarkar, 2014-2015
License : Apache-2.0
Maintainer : abhinav@abhinavsarkar.net
Stability : experimental
Portability : POSIX
Extensible configuration for the IRC bot.
-}
{-# LANGUAGE MultiParamT... | abhin4v/hask-irc | hask-irc-core/Network/IRC/Configuration.hs | apache-2.0 | 3,064 | 0 | 9 | 686 | 612 | 338 | 274 | -1 | -1 |
-- Copyright (C) 2013 Fraser Tweedale
--
-- 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 agr... | frasertweedale/hs-jose | src/Crypto/JOSE/JWA/JWS.hs | apache-2.0 | 1,502 | 0 | 8 | 288 | 105 | 79 | 26 | 19 | 0 |
{-# LANGUAGE TemplateHaskell #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Type.Binary.TH
-- Copyright : (C) 2006 Edward Kmett
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stab... | ekmett/type-int | Data/Type/Binary/TH.hs | bsd-2-clause | 1,229 | 0 | 16 | 227 | 227 | 130 | 97 | 15 | 4 |
-- Some simple functions to generate anagrams of words
import Data.Char
import List
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Map (Map)
import qualified Data.Map as Map
wordfile = "/usr/share/dict/words"
stringToKey :: String -> String
stringToKey = sort.(map toLower)
validWord :: String -... | fffej/haskellprojects | basics/anagrams.hs | bsd-2-clause | 857 | 1 | 15 | 195 | 307 | 158 | 149 | 23 | 1 |
module Drasil.Projectile.References where
import Language.Drasil
import Data.Drasil.Citations (cartesianWiki)
import Data.Drasil.People (rcHibbeler)
citations :: BibRef
citations = [accelerationWiki, velocityWiki, hibbeler2004, cartesianWiki]
accelerationWiki, velocityWiki, hibbeler2004 :: Citation
accelerationWiki... | JacquesCarette/literate-scientific-software | code/drasil-example/Drasil/Projectile/References.hs | bsd-2-clause | 805 | 0 | 9 | 91 | 180 | 101 | 79 | 18 | 1 |
-------------------------------------------------------------------------------
--
-- | Main API for compiling plain Haskell source code.
--
-- This module implements compilation of a Haskell source. It is
-- /not/ concerned with preprocessing of source files; this is handled
-- in "DriverPipeline".
--
-- There are var... | nomeata/ghc | compiler/main/HscMain.hs | bsd-3-clause | 70,097 | 7 | 28 | 20,093 | 12,380 | 6,363 | 6,017 | -1 | -1 |
{-# OPTIONS -fno-warn-unused-do-bind #-}
module Data.MultiProto.Protobuf.Parser where
import Control.Applicative
import Data.Attoparsec.ByteString.Char8 hiding (option)
import Data.ByteString.Char8 (ByteString)
import Data.Monoid
import Prelude hiding (Enum)
import Text.Read (readMaybe)
import qualified Data.Attopars... | intolerable/multiproto | src/Data/MultiProto/Protobuf/Parser.hs | bsd-3-clause | 6,975 | 0 | 14 | 1,710 | 2,361 | 1,213 | 1,148 | 196 | 2 |
{-# Language TypeFamilies #-}
module Data.Recons.Dict.Internal.TrieDictSkipMap where
import Data.Monoid
import qualified Data.Map as M
import Data.Recons.Dict.TrieDictMap as T
newtype TrieDictSkipKey k = TrieDictSkipKey { unwrap :: [Maybe k] }
deriving (Eq,Show)
instance Monoid (TrieDict... | voidlizard/recons | src/Data/Recons/Dict/Internal/TrieDictSkipMap.hs | bsd-3-clause | 2,852 | 0 | 17 | 867 | 1,325 | 682 | 643 | 54 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
------------------... | rfranek/duckling | Duckling/Ranking/Classifiers/ZH.hs | bsd-3-clause | 43,739 | 0 | 15 | 21,119 | 8,334 | 5,180 | 3,154 | 739 | 1 |
module Module3.Task16 where
data Odd = Odd Integer deriving (Eq, Show)
instance Enum Odd where
succ (Odd x) = Odd $ x + 2
pred (Odd x) = Odd $ x - 2
toEnum x = Odd $ toInteger x * 2 + 1
fromEnum (Odd x) = quot (fromInteger x - 1) 2
enumFrom = iterate succ
enumFromThen (Odd x) (Odd y) = map Odd [x, y ..]
... | dstarcev/stepic-haskell | src/Module3/Task16.hs | bsd-3-clause | 438 | 0 | 9 | 116 | 256 | 132 | 124 | 11 | 0 |
-- | DBus helpers for MCCtl.
module MCCtl.DBus (dbusCall, dbusCallWith, Client, connectSystem, disconnect) where
import DBus
import DBus.Client
import MCCtl.Config
-- | Create a method call for MCCtl.
dbusMeth :: MemberName -> [Variant] -> MethodCall
dbusMeth member args = (methodCall dbusObj dbusIface member) {
m... | valderman/mcctl | src/MCCtl/DBus.hs | bsd-3-clause | 1,134 | 0 | 9 | 217 | 228 | 122 | 106 | 18 | 1 |
module Graphics.Gloss.Juicy
(
-- * Conversion from JuicyPixels' types to gloss' Picture
fromDynamicImage
, fromImageRGBA8
, fromImageRGB8
, fromImageY8
, fromImageYA8
, fromImageYCbCr8
-- * Loading a gloss Picture from a file through JuicyPixels
, loadJuicy
, loadJuicyJPG
... | alpmestan/gloss-juicy | Graphics/Gloss/Juicy.hs | bsd-3-clause | 3,629 | 0 | 10 | 665 | 568 | 309 | 259 | 57 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
-- | Functions for IDEs.
module Stack.IDE
( listPackages
, listTargets
) where
import qualified Data.Map as Map
import qualified Data.Set ... | MichielDerhaeg/stack | src/Stack/IDE.hs | bsd-3-clause | 1,714 | 0 | 16 | 470 | 306 | 168 | 138 | 37 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
module Llvm.Asm.Printer.LlvmPrint
(module Llvm.Asm.Printer.LlvmPrint
,module Llvm.Asm.Printer.Common
) where
import Llvm.Asm.Printer.Common
import Llvm.Asm.Data
import qualified Llvm.Asm.Printer.SharedEntityPrint as P
import Llvm.Asm.Printe... | mlite/hLLVM | src/Llvm/Asm/Printer/LlvmPrint.hs | bsd-3-clause | 22,650 | 0 | 17 | 5,182 | 8,657 | 4,243 | 4,414 | 464 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -Wno-incomplete-patterns #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
module Punter.Longest where
import qualified Data.Aeson as J
import Data.List (sortBy)
import Data.Ord
import Data.HashMap.Lazy (HashMap)
import qualified Data.HashMap.Lazy as Ha... | nobsun/icfpc2017 | hs/src/Punter/Longest.hs | bsd-3-clause | 3,209 | 0 | 18 | 880 | 1,214 | 679 | 535 | 78 | 0 |
module RamerDouglasPeuckerParts
(
Range,
Stack,
Point,
All(..),
findFarthestPoints,
initStack,
recurProcess,
myfst,
mysnd,
trd,
getRightSliceFromStack,
optimizing,
distFunc
) where
import Data.Maybe
import ... | Chuck-Aguilar/haskell-opencv-work | src/RamerDouglasPeuckerParts.hs | bsd-3-clause | 16,775 | 0 | 20 | 4,855 | 5,596 | 2,939 | 2,657 | 252 | 1 |
module Watch.Matches where
import qualified Data.List.NonEmpty as N
import qualified Data.Map as M
import System.FilePath.Glob
import Watch.Types
-- we use trie search to find the parent dir then match on pattern
-- left is pattern, right is file that worries about it
type Filter = [(Pattern, FilePath)]
matches :: R... | pikajude/src-watch | src/Watch/Matches.hs | bsd-3-clause | 572 | 0 | 11 | 108 | 174 | 105 | 69 | 11 | 1 |
module Report where
import qualified Data.Map.Strict as M
import Imports
import SysInfo (SysInfo (..))
import Types
import Util
header :: IO ()
header = do
putStrLn "-----------+-----------------------+- part 1 ---------------------+- part 2 ---------------------"
... | oshyshko/adventofcode | src.exe/Report.hs | bsd-3-clause | 2,491 | 0 | 15 | 795 | 583 | 302 | 281 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Kafka.Specs.Kafka.ParsingSpecs where
import Data.Serialize.Put
import Network.Kafka.Consumer
import Network.Kafka.Consumer.Basic
import Network.Kafka.Producer
import Network.Kafka.Response
import Network.Kafka.Types
import Network.Kafka.Specs.Kafka.Arbitrary()
import Te... | tcrayford/hafka | Network/Kafka/Specs/Kafka/ParsingSpecs.hs | bsd-3-clause | 1,826 | 0 | 16 | 315 | 512 | 265 | 247 | 41 | 1 |
module Handler.Verify where
import Import
import Data.Maybe
import qualified Data.Text as T
import qualified Data.Text.Lazy as LT
import Data.Text.Lazy.Builder
import Network.Mail.Mime
import System.Random (newStdGen)
import Text.Blaze.Html.Renderer.String
import Text.Hamlet
import Text.Shakespeare.Text (textFile)
imp... | nejstastnejsistene/bannerstalker-yesod | src/Handler/Verify.hs | bsd-3-clause | 2,916 | 0 | 24 | 936 | 645 | 323 | 322 | -1 | -1 |
{-# LANGUAGE PackageImports #-}
import "hint" HLint.Dollar
import "hint" HLint.HLint
| cblp/crdt | HLint.hs | bsd-3-clause | 106 | 0 | 4 | 31 | 14 | 9 | 5 | 3 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Ling.Proto.Skel (
Skel(Act),
combineS,
dotS,
unknownS,
prllActS,
dotActS,
actS,
replS,
prune,
select,
subst,
nonParallelChannelSet,
check,
... | np/ling | Ling/Proto/Skel.hs | bsd-3-clause | 6,829 | 0 | 23 | 2,162 | 2,554 | 1,299 | 1,255 | 177 | 8 |
{-# LANGUAGE OverloadedStrings #-}
module Geekingfrog.Parse (parseGhostExport) where
import Prelude hiding (readFile, head)
import Data.ByteString (readFile, ByteString)
import Data.Aeson (eitherDecodeStrict, Value, parseJSON, FromJSON)
import Data.Aeson.Types (
parseEither
, withObject
, withArray
, Parser... | geekingfrog/geekingfrog.com | src/Geekingfrog/Parse.hs | bsd-3-clause | 2,508 | 0 | 17 | 435 | 763 | 397 | 366 | 54 | 2 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveGeneric #-}
{-# OPTIONS_GHC -fplugin Brisk.Plugin #-}
{-# OPTIONS_GHC -fplugin-opt Brisk.Plugin:main #-}
module Simple00 (main) where
import GHC.Base.Brisk
import Control.Distributed.BriskStatic
import Control.Distributed.Process.Closure
import Control.Distributed.Pr... | abakst/brisk-prelude | examples/SimpleSpawn00.hs | bsd-3-clause | 1,190 | 0 | 12 | 305 | 368 | 192 | 176 | 37 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad (forM_)
import Data.Maybe (fromMaybe)
import qualified Data.Text as T
import qualified Data.Text.Slugger as Slugger
import Hakyll
import Text.Pandoc
( Extension (Ext_fenced_code_attributes, Ext_footnotes, Ext_gfm_auto_identifiers, Ext_implicit_header_references... | rpearce/robertwpearce.com | ssg/src/Main.hs | bsd-3-clause | 6,445 | 17 | 22 | 1,260 | 1,301 | 664 | 637 | 175 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Opts (
ConfigReader
, runConfig
, Config (..)
, parseArgs
, showUsage
) where
import System.Console.GetOpt
import Control.Applicative
import Control.Monad.Reader
newtype ConfigReader m a = ConfigReader { unwrap :: ReaderT Config m a }
deriv... | kataoka271/vmgconv | src/Opts.hs | bsd-3-clause | 2,001 | 0 | 12 | 567 | 584 | 323 | 261 | 59 | 3 |
module RPF.Parser where
import Control.Applicative hiding (many,optional,(<|>))
import Control.Monad
import qualified Data.ByteString.Char8 as BS
import Data.IP
import Data.List
import Data.Maybe
import Network.DNS.Types (Domain)
import Network.DomainAuth
import RPF.Domain
import RPF.IP
import RPF.Lexer
import RPF.Sta... | kazu-yamamoto/rpf | RPF/Parser.hs | bsd-3-clause | 7,662 | 0 | 17 | 2,023 | 2,494 | 1,229 | 1,265 | 197 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Purescript.Ide.CommandSpec where
import Data.Either (isLeft)
import Purescript.Ide.Command
import Test.Hspec
spec :: Spec
spec = do
describe "Parsing commands" $ do
it "parses a load command" $
parseCommand "load Module.Name" `sho... | passy/psc-ide | test/Purescript/Ide/CommandSpec.hs | bsd-3-clause | 1,077 | 0 | 13 | 244 | 248 | 121 | 127 | 24 | 1 |
-----------------------------------------------------------------------------
--
-- Machine-specific parts of the register allocator
--
-- (c) The University of Glasgow 1996-2004
--
-----------------------------------------------------------------------------
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supress... | ekmett/ghc | compiler/nativeGen/PPC/RegInfo.hs | bsd-3-clause | 2,384 | 12 | 10 | 422 | 493 | 259 | 234 | 44 | 2 |
module FRP.Helm.Engine where
import qualified Graphics.UI.SDL as SDL
import qualified Graphics.Rendering.Cairo as Cairo
import qualified Data.Map as Map
{-| A data structure describing the current engine state. -}
data Engine = Engine {
window :: SDL.Window,
renderer :: SDL.Renderer,
cache :: Map.Map FilePat... | didmar/helm | src/FRP/Helm/Engine.hs | mit | 358 | 0 | 10 | 61 | 80 | 53 | 27 | 9 | 0 |
-- File: Optimal2.hs
-- Author: Adam Juraszek
-- Purpose: Partly generated map of optimal second guesses for 2 cards answers.
-- Source: https://github.com/juriad/Cardguess
module Optimal2 where
import Common
import Data.Map as Map
optimal2 :: Map.Map Feedback Selection
optimal2 = Map.fromList [
( ( 0 , 0 , 0 ... | hikui/Cardguess | src/Optimal2.hs | mit | 2,899 | 0 | 9 | 1,038 | 1,560 | 937 | 623 | 43 | 1 |
{-# OPTIONS_GHC -fglasgow-exts #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Functor.Combinators.Of
-- Copyright : (C) 2008 Edward Kmett
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stabil... | urska19/MFP---Samodejno-racunanje-dvosmernih-preslikav | Control/Functor/Combinators/Of.hs | apache-2.0 | 2,291 | 4 | 10 | 475 | 708 | 387 | 321 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables, CPP #-}
module Main where
#if __GLASGOW_HASKELL__ < 709
import Control.Applicative
#endif
import Data.Aeson
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy.Char8 as BL
import Data.List
import System.Directory
import System.FilePath
import Control.Monad
i... | bergmark/http2 | test-hpack/hpack-stat.hs | bsd-3-clause | 2,596 | 0 | 13 | 638 | 885 | 433 | 452 | 76 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Examples.Primes(primes) where
import Development.NSIS
-- Based on primes.nsi from NSIS
--
-- This is an example of the possibities of the NSIS Script language.
-- It calculates prime numbers.
----------------------------------
primes = do
name "primes"
allowRootDi... | ndmitchell/nsis | test/Examples/Primes.hs | bsd-3-clause | 1,636 | 0 | 23 | 560 | 394 | 178 | 216 | 42 | 1 |
{-# LANGUAGE TypeFamilies #-}
module Control.CP.FD.OvertonFD.Sugar (
) where
import Data.Set(Set)
import qualified Data.Set as Set
import Control.CP.Debug
import Control.Mixin.Mixin
import Control.CP.Solver
import Control.CP.FD.FD
import Control.CP.FD.SimpleFD
import Data.Expr.Data
import Data.Expr.Sugar
-- import C... | FranklinChen/monadiccp | Control/CP/FD/OvertonFD/Sugar.hs | bsd-3-clause | 4,012 | 0 | 20 | 818 | 1,668 | 904 | 764 | 89 | 11 |
{-# OPTIONS_GHC -XGADTs -XNoMonoLocalBinds #-}
-- Norman likes local bindings
-- If this module lives on I'd like to get rid of the -XNoMonoLocalBinds
-- flag in due course
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to r... | mcmaniac/ghc | compiler/cmm/CmmStackLayout.hs | bsd-3-clause | 30,511 | 1 | 19 | 8,747 | 6,265 | 3,297 | 2,968 | -1 | -1 |
module TestTypes (
IncPK(..)
, CompoundPK(..)
) where
import qualified Data.Aeson as JSON
import Data.Aeson ((.:))
import Protolude
data IncPK = IncPK {
incId :: Int
, incNullableStr :: Maybe Text
, incStr :: Text
, incInsert :: Text
} deriving (Eq, Show)
instance JSON.FromJSON IncPK where
parseJSON (JSON.Obj... | Skyfold/postgrest | test/TestTypes.hs | mit | 753 | 0 | 13 | 166 | 255 | 144 | 111 | 30 | 0 |
<?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="sl-SI">
<title>Call Home Add-On</title>
<maps>
<homeID>callhome</homeID>
<mapref locati... | thc202/zap-extensions | addOns/callhome/src/main/javahelp/org/zaproxy/addon/callhome/resources/help_sl_SI/helpset_sl_SI.hs | apache-2.0 | 966 | 82 | 53 | 157 | 396 | 209 | 187 | -1 | -1 |
<?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="ja-JP">
<title>DOM XSS Active Scan Rule | ZAP Extension</title>
<maps>
<homeID>top</homeID>
... | kingthorin/zap-extensions | addOns/domxss/src/main/javahelp/org/zaproxy/zap/extension/domxss/resources/help_ja_JP/helpset_ja_JP.hs | apache-2.0 | 1,011 | 91 | 49 | 162 | 395 | 208 | 187 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Text.ParserCombinators.Parsec.Prim
-- Copyright : (c) Paolo Martini 2007
-- License : BSD-style (see the LICENSE file)
--
-- Maintainer : derek.a.elkins@gmail.com
-- Stability : provisional
-- Portability ... | maurer/15-411-Haskell-Base-Code | src/Text/ParserCombinators/Parsec/Prim.hs | bsd-3-clause | 1,408 | 0 | 9 | 383 | 251 | 161 | 90 | 45 | 1 |
{-
(c) The AQUA Project, Glasgow University, 1993-1998
\section[SimplUtils]{The simplifier utilities}
-}
{-# LANGUAGE CPP #-}
module SimplUtils (
-- Rebuilding
mkLam, mkCase, prepareAlts, tryEtaExpandRhs,
-- Inlining,
preInlineUnconditionally, postInlineUnconditionally,
activ... | acowley/ghc | compiler/simplCore/SimplUtils.hs | bsd-3-clause | 79,256 | 0 | 18 | 24,250 | 8,504 | 4,553 | 3,951 | -1 | -1 |
{-# LANGUAGE TypeFamilies #-}
data family T1 a :: * -> *
data instance T1 Int = T1_1 -- must fail: too few args
| siddhanathan/ghc | testsuite/tests/indexed-types/should_fail/SimpleFail1a.hs | bsd-3-clause | 125 | 0 | 5 | 37 | 27 | 16 | 11 | 3 | 0 |
-- | Keeps all game loaders in one record, for easy access from various parts
-- of the game.
module Game.Loaders ( Loaders(..)
, updateLoaders
, runLoadersDeferred
) where
import Prelewd
import IO
import Game.Resource.Loader
import Game.Resource.Texture
... | bfops/Chess | src/Game/Loaders.hs | mit | 1,096 | 0 | 9 | 246 | 138 | 86 | 52 | -1 | -1 |
--------------------------------------------------------------------------
-- Copyright (c) 2007-2010, 2012, 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, CAB F.78... | daleooo/barrelfish | build/hake/Config.hs | mit | 9,451 | 0 | 12 | 2,172 | 1,448 | 895 | 553 | 194 | 47 |
-- File: Config.hs
-- Copyright rejuvyesh <mail@rejuvyesh.com>, 2014
-- License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
module Site.Config
( config
, feedConfiguration
) where
import Hakyll
config :: Configuration
config = defaultConfiguration
{ deployCommand = "/usr/bin/cp -rf ... | rejuvyesh/homepage | src/Site/Config.hs | mit | 797 | 0 | 6 | 166 | 80 | 52 | 28 | 14 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE LambdaCase #-}
module Yage.Rendering.Resources.Types where
import Yage.Prelude
import Yage.Lens
import Control.Monad.RWS
import qualified Graphics.Rendering.OpenGL as GL
import Graphics.GLUtil
import Yage... | MaxDaten/yage-rendering | src/Yage/Rendering/Resources/Types.hs | mit | 2,301 | 0 | 10 | 676 | 580 | 320 | 260 | 54 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Betfair.APING.Requests.Login
( sessionToken
, login
) where
import Control.Exception.Safe
import qualified Data.ByteString.Lazy as L (ByteString)
import Data.String.Conversions
import Data.Text
import ... | joe9/betfair-api | src/Betfair/APING/Requests/Login.hs | mit | 1,765 | 0 | 11 | 321 | 443 | 242 | 201 | 38 | 1 |
module NES.Mapper where
import Data.Word (Word8, Word16)
import Data.Bits ((.&.), shiftR, shiftL, testBit)
import Data.STRef (STRef, newSTRef, readSTRef)
import Data.Array.ST (readArray, writeArray)
import Control.Monad.ST (ST)
import Control.Monad (when)
import NES.ROM
import NES.MemoryMap
data NameTable = NT0 | NT... | ksaveljev/hNES | NES/Mapper.hs | mit | 4,494 | 0 | 23 | 1,429 | 1,482 | 751 | 731 | 89 | 8 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Vindinium.Api
( startTraining
, startArena
, move
)
where
import Vindinium.Types
import Prelude (error,Int)
import Control.Applicative ((<$>), (<*>))
import Control.Monad (liftM, mzero)
import Control.Monad.IO.Class (liftIO)
import Data... | benkolera/dalek-caan | src/Vindinium/Api.hs | mit | 5,300 | 0 | 25 | 1,923 | 1,741 | 909 | 832 | 134 | 9 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.MediaControlsHost
(sortedTrackListForMenu, sortedTrackListForMenu_,
sortedTrackListForMenuAudio, sortedTr... | ghcjs/jsaddle-dom | src/JSDOM/Generated/MediaControlsHost.hs | mit | 13,602 | 0 | 12 | 2,247 | 2,172 | 1,175 | 997 | 180 | 1 |
{-|
Module : TTN.Util
Description : Some mostly generic functions, used in the other modules.
Author : Sam van Herwaarden <samvherwaarden@protonmail.com>
-}
{-# LANGUAGE OverloadedStrings #-}
module TTN.Util where
import Control.Monad ( replicateM_ )
import Data.Maybe ( listToM... | samvher/translatethenews | app/TTN/Util.hs | mit | 3,305 | 0 | 12 | 932 | 1,006 | 526 | 480 | 64 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Frinfo.INotify where
import qualified Control.Concurrent as Conc
import Control.Exception
import qualified Control.Foldl as F
import Control.Monad
import qualified Data.Text as T
import qualified Filesystem.Path.CurrentOS as FS
import qualified Frinfo.Config as Config
import ... | Arguggi/Frinfo | src/Frinfo/INotify.hs | mit | 2,870 | 0 | 17 | 653 | 683 | 366 | 317 | 53 | 2 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
module Cenary.Syntax where
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
... | yigitozkavci/ivy | src/Cenary/Syntax.hs | mit | 1,542 | 0 | 8 | 363 | 409 | 240 | 169 | 61 | 0 |
{- |
Module : Bio.Motions.Callback.Class
Description : Contains the definitions of various 'Callback'-related primitives.
License : MIT
Stability : experimental
Portability : unportable
-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #... | amharc/motions-playground | src/Bio/Motions/Callback/Class.hs | mit | 2,153 | 0 | 12 | 482 | 265 | 158 | 107 | 29 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html
module Stratosphere.ResourceProperties.CodeBuildProjectVpcConfig where
impo... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/CodeBuildProjectVpcConfig.hs | mit | 2,503 | 0 | 12 | 253 | 355 | 202 | 153 | 32 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE ScopedTypeVariables #-}
import Codec.Compression.GZip
import Control.Applicative
import Control.Lens
import Control.Monad
import Control.Monad.IO.Class
import Control.Monad.Trans.Maybe
import qualified Data.ByteString.... | wavewave/lhc-analysis-collection | heavyhiggs/xsecgraphQCD.hs | gpl-3.0 | 3,901 | 0 | 15 | 968 | 965 | 546 | 419 | 95 | 1 |
-- Various utility functions that make writing the parser functions easier and
-- cleaner by separating out common patterns
module Parser.Utils ( Parser(..)
, ParserResult
, ParserResultList
, ParserConsumed
, consume
, ... | bgw/hs-rpal | src/Parser/Utils.hs | gpl-3.0 | 4,287 | 0 | 11 | 1,203 | 965 | 522 | 443 | 69 | 2 |
{-# LANGUAGE OverloadedStrings
, TypeFamilies
, StandaloneDeriving
, DeriveDataTypeable
, TupleSections
, ViewPatterns #-}
module Text.Gedcom.Types
where
import Control.Applicative
import Data.ByteString (ByteString)
import Data.Data
import Data.Functor.Foldable
import Data.Typeable()
import Data.Generic... | benjumanji/gedcom | src/Text/Gedcom/Types.hs | gpl-3.0 | 5,951 | 0 | 17 | 1,515 | 2,543 | 1,331 | 1,212 | 164 | 6 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module ArbitraryGens (
arith,
bool
) where
import CodeBuilders
import Control.Applicative ((<$>), (<*>))
import LLVMRepresentation
import Test.QuickCheck
import Types
arith :: forall a. A... | GaroBrik/haskell-compiler | test/ArbitraryGens.hs | gpl-3.0 | 1,219 | 0 | 13 | 455 | 384 | 206 | 178 | 26 | 2 |
module Types where
import GEGL
import qualified Data.Map as M
data UserData = UserData
{ nodeGraph :: M.Map MapKey GeglNode
, buffer :: GeglBuffer
, state :: State
, screen :: ScreenMode
, tminus :: Double
, mouseAreas :: M.Map Assoc MouseArea
, numberChanged :: Bool
}
data State
= Setting
| Run... | nek0/countdown.hs | src/Types.hs | gpl-3.0 | 686 | 0 | 10 | 192 | 206 | 127 | 79 | 41 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ViewPatterns #-}
-- |
-- Copyright : (c) 2010-2012 Benedikt Schmidt & Simon Meier
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
-- Portability : GHC only
--
-- This module implements all rules that do not result in cas... | ekr/tamarin-prover | lib/theory/src/Theory/Constraint/Solver/Simplify.hs | gpl-3.0 | 16,452 | 0 | 26 | 5,885 | 3,628 | 1,872 | 1,756 | 249 | 7 |
module Filter.Util (splitIt, intoChunks,formatChunk, unlines',sanatizeHtml) where
import Prelude
import Data.Char (isDigit)
import Text.Blaze.Html
import Text.Blaze.Html.Renderer.String
splitIt [] = ([],[])
splitIt l = case break (== '\n') l of
(h,t@(_:x:xs)) -> if x == '|'
... | opentower/carnap | Carnap-Server/Filter/Util.hs | gpl-3.0 | 916 | 2 | 10 | 321 | 378 | 211 | 167 | 24 | 4 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.SourceRepo.... | brendanhay/gogol | gogol-sourcerepo/gen/Network/Google/SourceRepo/Types/Product.hs | mpl-2.0 | 53,013 | 0 | 15 | 11,696 | 7,947 | 4,630 | 3,317 | 865 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-admin-directory/gen/Network/Google/Resource/Directory/MobileDevices/Action.hs | mpl-2.0 | 3,872 | 0 | 18 | 931 | 480 | 285 | 195 | 79 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-youtube/gen/Network/Google/Resource/YouTube/Subscriptions/Insert.hs | mpl-2.0 | 5,212 | 0 | 18 | 1,264 | 807 | 471 | 336 | 116 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleInstances #-}
module Gonimo.Server.State.Types where
import Control.Concurrent.STM (TVar)
import Control.Concurrent.Async (Async)
import Control.Lens
import ... | gonimo/gonimo-back | src/Gonimo/Server/State/Types.hs | agpl-3.0 | 4,954 | 0 | 12 | 1,246 | 877 | 512 | 365 | 86 | 1 |
{-# OPTIONS_GHC -Wall -fno-cse -fno-full-laziness #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Dyno.Interpolant
( Interpolant(..)
-- * FFI
, CInterpolant(..)
, newCInterpolant
... | ghorn/dynobud | dynobud-interpolant/src/Dyno/Interpolant.hs | lgpl-3.0 | 13,206 | 0 | 26 | 3,579 | 4,454 | 2,232 | 2,222 | 312 | 2 |
module DaPhone where
data DaPhone = Daphone
| aniketd/learn.haskell | haskellbook/daphone.hs | unlicense | 45 | 0 | 5 | 8 | 11 | 7 | 4 | 2 | 0 |
module Main where
import Data.List
nucleotideComplement :: Char -> Char
nucleotideComplement 'A' = 'T'
nucleotideComplement 'T' = 'A'
nucleotideComplement 'C' = 'G'
nucleotideComplement 'G' = 'C'
main = do
contents <- getContents
putStrLn $ foldl' accumulateReversedNucleotideComplement [] contents
... | ctimmons/hs_rosalind | 3 - Complementing a Strand of DNA/Main.hs | unlicense | 410 | 0 | 9 | 76 | 95 | 50 | 45 | 11 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Messages.RespFacade where
import Control.Applicative
import Control.Monad
import Data.Aeson
import Model.URI
------------------------------------------------------------------------------ | Data type holding the message's formats Facad... | alexandrelucchesi/pfec | facade-server/src/Messages/RespFacade.hs | apache-2.0 | 732 | 0 | 8 | 174 | 125 | 69 | 56 | 17 | 0 |
module Solar.Continuum.Types where
import qualified Data.Serialize as S
import qualified Data.ByteString as B
import Data.Int
import Control.Applicative
type LogName = B.ByteString
-- | Known positions are meant to be persisted,
-- but data may go through intermediary stages as the positions are finalized
data LogP... | Cordite-Studios/solar-continuum | src/Solar/Continuum/Types.hs | bsd-2-clause | 1,357 | 0 | 11 | 274 | 211 | 121 | 90 | 19 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.