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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
-- !!! Re-exporting a module whose contents is partially hidden.
module ShouldCompile ( module Data.List ) where
import Data.List hiding ( sort )
| siddhanathan/ghc | testsuite/tests/rename/should_compile/rn025.hs | bsd-3-clause | 148 | 0 | 5 | 25 | 24 | 16 | 8 | 2 | 0 |
module Main where
import Common
import GridCoord
import Data.List
import qualified Data.Set as Set
import Text.Megaparsec
import Text.Megaparsec.Char
-- | Vectors used for incremental steps
data Vec = Vec !Int !Int
deriving (Eq, Ord, Show, Read)
data Command = Com... | glguy/advent2016 | Day01.hs | isc | 1,923 | 0 | 11 | 522 | 676 | 351 | 325 | 58 | 2 |
t = [5,"kkk"]
| mortum5/programming | haskell/ITMO-Course/test.hs | mit | 14 | 1 | 5 | 3 | 15 | 7 | 8 | 1 | 1 |
module Main where
import qualified Data.ByteString.Lazy as BS
import qualified Codec.Picture.Types as PicTypes
import qualified Codec.Picture.Png as Png
import Data.IDX
import Data.List.Split
import qualified Data.Vector.Unboxed as DU
import System.Random.Mersenne.Pure64
import Data.Maybe -- FIXME: for fromJust, which... | jmptable/mnist-classifier | src/Main.hs | mit | 7,114 | 0 | 17 | 1,398 | 2,563 | 1,368 | 1,195 | 122 | 2 |
{-|
Programming Languages
Fall 2015
Implementation in Haskell of the concepts covered in Chapter 1 of
Nielson & Nielson, Semantics with Applications
Author: Haritz Puerto-San-Roman
-}
module Exercises01 where
import While
import Test.HUnit hiding (State)
import Data.List
-- |-------------------------------------... | HaritzPuerto/SemanticsforWhileLanguage | While/Exercises01.hs | mit | 10,032 | 66 | 14 | 2,334 | 3,967 | 2,065 | 1,902 | 156 | 6 |
import Control.Applicative
import Control.Arrow
import Data.List.Split
(|>) :: a -> (a -> b) -> b
(|>) x y = y x
infixl 0 |>
main :: IO ()
main = do
_ <- getLine
widths <- readInts <$> getLine
interact $ lines >>> map (readInts >>> solve widths >>> show) >>> unlines
readInts :: String -> [Int]
readInts =... | Dobiasd/HackerRank-solutions | Algorithms/Warmup/Service_Lane/Main.hs | mit | 604 | 1 | 13 | 136 | 275 | 142 | 133 | 18 | 1 |
module Players.SinglePlayer where
import Players.Player
import TicTacToe as T hiding (win)
import Util
data SinglePlayer = SinglePlayer String Token
deriving Show
instance Player SinglePlayer where
iToken (SinglePlayer _ t) = t
iName (SinglePlayer n _) = n
iMove = move
iChooseSize = ... | davidarnarsson/tictactoe | Players/SinglePlayer.hs | mit | 1,626 | 0 | 13 | 516 | 493 | 246 | 247 | 48 | 3 |
module STree ( STree
, snil
, sisNil
, sisNode
, sleftSub
, srightSub
, streeVal
, sinsTree
, sdelete
, sminTree
, sindexT
, successor
, ancientor
, cl... | tonyfloatersu/solution-haskell-craft-of-FP | STree.hs | mit | 3,564 | 0 | 11 | 1,494 | 1,396 | 670 | 726 | 89 | 2 |
import Data.List
import Data.Function
main :: IO ()
main = interact (run . map read . words)
run :: [Int] -> String
run (n:xs) = out (solve (pairs xs)) where
-- show result
out :: [Int] -> String
out ys = unlines [show (length ys), unwords (map show ys)]
-- form input
pairs :: [Int] -> [(Int, Int)]
pairs ... | da-eto-ya/trash | haskell/algos/segments-points/Main.hs | mit | 598 | 1 | 17 | 159 | 347 | 183 | 164 | 15 | 3 |
module Urbit.Vere.Ames.LaneCache (cache) where
import Urbit.Prelude
import Urbit.Noun.Time
expiry :: Gap
expiry = (2 * 60) ^. from secs
cache :: forall a b m n
. (Ord a, MonadIO m, MonadIO n)
=> (a -> m b)
-> n (a -> m b)
cache act = do
cas <- newTVarIO (mempty :: Map a (Wen, b))
let fun x =... | urbit/urbit | pkg/hs/urbit-king/lib/Urbit/Vere/Ames/LaneCache.hs | mit | 705 | 0 | 18 | 286 | 299 | 151 | 148 | -1 | -1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Betfair.APING.Types.PersistenceType
( PersistenceType(..)
) where
import Data.Aeson.TH ... | joe9/betfair-api | src/Betfair/APING/Types/PersistenceType.hs | mit | 663 | 0 | 9 | 145 | 107 | 67 | 40 | 18 | 0 |
module SemiGroupAssociativeLaw (
semigroupAssoc
) where
import Data.Semigroup
semigroupAssoc :: (Eq m, Semigroup m) => m -> m -> m -> Bool
semigroupAssoc a b c = (a <> (b <> c)) == ((a <> b) <> c)
| NickAger/LearningHaskell | HaskellProgrammingFromFirstPrinciples/Chapter15.hsproj/SemiGroupAssociativeLaw.hs | mit | 208 | 0 | 9 | 49 | 90 | 50 | 40 | 5 | 1 |
module Jan22MoreRec where
-- import Data.Char
-- : set expandtab ts=4 ruler number spell
import Test.QuickCheck
{- Most everything in Haskell is a function. If it isn't data.
Church of Recursion
Recursion gets you everything you would want just as well as a Turing Machine
a recursive definition of a list
it'... | HaskellForCats/HaskellForCats | 30MinHaskell/z_notes/3_ab_quickCheck.hs | mit | 3,406 | 0 | 11 | 851 | 310 | 167 | 143 | -1 | -1 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.HTMLMeterElement
(setValue, getValue, setMin, getMin, setMax, getMax, setLow,
getLow, setHigh, getHigh, s... | ghcjs/jsaddle-dom | src/JSDOM/Generated/HTMLMeterElement.hs | mit | 4,363 | 0 | 10 | 515 | 1,035 | 584 | 451 | 47 | 1 |
{-# LANGUAGE PackageImports #-}
import "lambda-arduino" Application (develMain)
import Prelude (IO)
main :: IO ()
main = develMain
| aufheben/lambda-arduino | app/devel.hs | mit | 132 | 1 | 6 | 19 | 37 | 20 | 17 | 5 | 1 |
{-# LANGUAGE OverloadedStrings, FlexibleInstances, TemplateHaskell#-}
module Dom where
import Data.Maybe (maybe)
import Data.Monoid ((<>))
import Data.Foldable
import qualified Data.HashMap.Strict as HM
import qualified Data.Text as T
import Data.HashSet
import Control.Lens
data NTree a = NTree { _root :: a, _chil... | Hrothen/Hubert | src/Dom.hs | mit | 1,285 | 0 | 10 | 255 | 495 | 263 | 232 | 34 | 1 |
{-# LANGUAGE PackageImports #-}
{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-}
-- | Reexports "Data.Either.Compat"
-- from a globally unique namespace.
module Data.Either.Compat.Repl.Batteries (
module Data.Either.Compat
) where
import "this" Data.Either.Compat
| haskell-compat/base-compat | base-compat-batteries/src/Data/Either/Compat/Repl/Batteries.hs | mit | 286 | 0 | 5 | 31 | 29 | 22 | 7 | 5 | 0 |
module ProjectEuler.Problem020Spec (main, spec) where
import Test.Hspec
import ProjectEuler.Problem020
main :: IO ()
main = hspec spec
spec :: Spec
spec = parallel $
describe "solve" $
it "finds the sum of the digits in the number 100!" $
solve 100 `shouldBe` 648
| hachibu/project-euler | test/ProjectEuler/Problem020Spec.hs | mit | 279 | 0 | 9 | 58 | 79 | 43 | 36 | 10 | 1 |
module Lisley.Types
( module Lisley.Types
, module Control.Monad.Error
) where
import Data.Maybe
import Data.Map (Map)
import qualified Data.Map as Map
import Data.IORef
import Control.Monad.Error
import Control.Applicative ((<$>))
import Text.ParserCombinators.Parsec (ParseError)
type SimpleFn = [Expr] -> Acti... | goshakkk/lisley | src/Lisley/Types.hs | mit | 4,172 | 0 | 13 | 1,069 | 1,708 | 896 | 812 | 102 | 4 |
-- GenI surface realiser
-- Copyright (C) 2009 Eric Kow
-- Copyright (C) 2005 Carlos Areces
--
-- 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 ... | kowey/GenI | src/NLP/GenI/GeniVal.hs | gpl-2.0 | 1,849 | 0 | 5 | 362 | 152 | 115 | 37 | 16 | 0 |
{-# LANGUAGE OverloadedStrings #-}
-------------------------------------------------------------------------------
-- |
-- Module : OpenSandbox.Protocol.Handle.Status
-- Copyright : (c) 2016 Michael Carpenter
-- License : GPL3
-- Maintainer : Michael Carpenter <oldmanmike.dev@gmail.com>
-- Stability ... | oldmanmike/opensandbox | src/OpenSandbox/Protocol/Handle/Status.hs | gpl-3.0 | 1,599 | 0 | 15 | 308 | 332 | 184 | 148 | 29 | 2 |
module Main where
import HomMad.Goban (initGame)
import HomMad.AI (move)
import Data.Time.Clock
main :: IO ()
main = do
start <- getCurrentTime
putStrLn $ show $ move 0 initGame
end <- getCurrentTime
putStrLn $ "running move for init Game took " ++ show (diffUTCTime end start)
| h-hirai/hommad | bench/bench-move.hs | gpl-3.0 | 288 | 0 | 10 | 55 | 97 | 50 | 47 | 10 | 1 |
{-| Module : LexerMessage
License : GPL
Maintainer : helium@cs.uu.nl
Stability : experimental
Portability : portable
-}
module Database.Design.Ampersand.Input.ADL1.LexerMessage
( LexerError(..)
, LexerErrorInfo(..)
, LexerWarning(..)
, LexerWarningInfo(..)
, keepOn... | DanielSchiavini/ampersand | src/Database/Design/Ampersand/Input/ADL1/LexerMessage.hs | gpl-3.0 | 5,250 | 0 | 15 | 1,378 | 754 | 411 | 343 | 75 | 9 |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings #-}
module Lamdu.GUI.ExpressionEdit.GetFieldEdit
( make
) where
import Prelude.Compat
import Control.Lens.Operators
import Control.MonadA (MonadA)
import qualified Graphics.UI.Bottle.EventMap as E
import qualified Graphics.UI.Bott... | rvion/lamdu | Lamdu/GUI/ExpressionEdit/GetFieldEdit.hs | gpl-3.0 | 1,947 | 0 | 19 | 437 | 461 | 262 | 199 | -1 | -1 |
-- CSE 240H Lab 1 - Word Count & Histogram
import Data.Char
import Data.List
import qualified Data.Map as Map
import Text.Regex
import System.Environment
normalize :: String -> String
normalize word = map toLower (strip_cruft word) where
strip_cruft word' = subRegex (mkRegex "[^a-zA-Z]*(.*[a-zA-Z])[^a-zA-Z]*") word... | alevy/cs240h-lab1 | hist.hs | gpl-3.0 | 1,707 | 1 | 13 | 502 | 557 | 279 | 278 | 31 | 2 |
module Hadolint.Rule.DL4003 (rule) where
import Hadolint.Rule
import Language.Docker.Syntax (Instruction (..))
data HasCmd = HasCmd | NoCmd
rule :: Rule args
rule = customRule check (emptyState NoCmd)
where
code = "DL4003"
severity = DLWarningC
message =
"Multiple `CMD` instructions found. If you... | lukasmartinelli/hadolint | src/Hadolint/Rule/DL4003.hs | gpl-3.0 | 845 | 0 | 10 | 203 | 199 | 110 | 89 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ViewPatterns #-}
-- Module : Keiretsu.Config
-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>
-- License : This Source Code Form is subject to the terms of
-- ... | bnordbo/keiretsu | src/Keiretsu/Config.hs | mpl-2.0 | 3,903 | 0 | 17 | 1,283 | 1,097 | 559 | 538 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dlp/gen/Network/Google/Resource/DLP/Projects/Locations/InspectTemplates/Delete.hs | mpl-2.0 | 5,602 | 0 | 15 | 1,177 | 701 | 412 | 289 | 109 | 1 |
module Handler.Partials
( _userInfo'
, ConsoleType(..)
, _console'
, _chart'
) where
import Import
import Yesod.Auth
_userInfo' :: Entity User -> Widget
_userInfo' (Entity uid user) = $(widgetFile "partials/_userInfo")
data ConsoleType = ModuleConsole | SynthaxConsole
_console' :: ConsoleType -> Maybe Text -> Widge... | burz/sonada | Handler/Partials.hs | apache-2.0 | 502 | 0 | 9 | 73 | 136 | 72 | 64 | -1 | -1 |
module Network.Eureka.SemVer (
addSemVer
) where
import Data.Version (Version, showVersion)
import Network.Eureka (InstanceConfig (..), addMetadata)
addSemVer
:: Version
-> InstanceConfig
-> InstanceConfig
addSemVer semver = addMetadata ("semver", showVersion semver)
| taphu/haskell-eureka-semver | src/Network/Eureka/SemVer.hs | apache-2.0 | 304 | 0 | 7 | 65 | 75 | 44 | 31 | 9 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeOperators #-}
module CI.CurrentTime where
import Control.Monad.Eff
import Control.Monad.Eff.Lift
import Data.Time
data CurrentTime x where
CurrentTime :: CurrentTime LocalTime
currentTime :: M... | lancelet/bored-robot | src/CI/CurrentTime.hs | apache-2.0 | 1,077 | 0 | 9 | 181 | 289 | 153 | 136 | 24 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -Wno-name-shadowing #-}
{-
Copyright 2019 The CodeWorld Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with ... | alphalambda/codeworld | codeworld-api/src/CodeWorld/Color.hs | apache-2.0 | 6,785 | 0 | 24 | 1,889 | 2,579 | 1,342 | 1,237 | -1 | -1 |
-- | Static semantics errors
module Language.Example.MiniCore.Errors where
import Control.Monad.Except
import Language.Common.Label
import Language.Example.MiniCore.Syntax
data TypeSpine =
ForallSp
| FunctionSp
| ProductSp
| SigmaSp
deriving Show
data CoreErr =
ExpectedTypeExpr TypeSpine Expr
| Expect... | lambdageek/emile | src/Language/Example/MiniCore/Errors.hs | bsd-2-clause | 1,851 | 0 | 8 | 290 | 508 | 264 | 244 | -1 | -1 |
import NLP.General
import NLP.Crubadan
import NLP.Freq
import NLP.Tools
import Control.Exception (evaluate)
import System.IO (hPutStrLn, stderr)
import Options.Applicative
import Control.Monad
import System.Directory
import System.IO.Strict
import qualified Data.List as L
import qualified Data.Map.Strict as M
percen... | RoboNickBot/nlp-tools | src/Analyze.hs | bsd-2-clause | 8,429 | 7 | 17 | 2,872 | 2,822 | 1,445 | 1,377 | 174 | 2 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell, QuasiQuotes #-}
module Main where
import Prelude hiding (lookup)
import Blaze.ByteString.Builder.ByteString (fromLazyByteString)
import Control.Monad.Trans.Resource (withIO)
import Data.Aeson (encode)
import Data.Text.Lazy.Encoding (decodeUtf8)
import Database.MongoDB
... | mkscrg/wheresmikecraig | server/main.hs | bsd-2-clause | 1,894 | 0 | 15 | 310 | 662 | 355 | 307 | 50 | 1 |
module TelnetHandler where
import System.IO
import Network.Socket
import Control.Monad
import Paths_harlson (version)
import Data.Version (showVersion)
import Data.Char
handleTelnet :: (String -> IO String) -> SockAddr -> Handle -> IO ()
handleTelnet runCmd sa h = do
hPutStrLn h "\n"
hPutStrLn h ("harlson " +... | EchoTeam/harlson | TelnetHandler.hs | bsd-2-clause | 1,014 | 0 | 15 | 325 | 349 | 169 | 180 | 31 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
-- | A bare transaction; that is, one without any serial numbers.
--
-- Contrast a 'Penny.Core.Transaction', which has serial numbers.
module Penny.Transaction where
import Penny.Ents
import ... | massysett/penny | penny/lib/Penny/Transaction.hs | bsd-3-clause | 731 | 0 | 11 | 112 | 96 | 58 | 38 | 12 | 0 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- | See "Control.Monad.Ether.State.Lazy".
module Control.Monad.Ether.Implicit.State.Lazy
(
-- * MonadState class
MonadState
, get
, put
, state
, modify
, gets
-- * The State monad
, State
, runState
... | bitemyapp/ether | src/Control/Monad/Ether/Implicit/State/Lazy.hs | bsd-3-clause | 2,463 | 0 | 10 | 471 | 646 | 360 | 286 | 48 | 1 |
module Lexer where
import Prelude hiding (lex)
import Data.Char (isSpace)
import Control.Applicative
import qualified Text.Parsec as P
import qualified Text.Parsec.Token as PT
data Token
= LParen
| RParen
| LBracket
| RBracket
| Period
| Pipe
| Bind
| Name String
| Keyword String
| Arg String
|... | rjeli/luatalk | src/Lexer.hs | bsd-3-clause | 3,734 | 0 | 15 | 977 | 1,384 | 710 | 674 | 111 | 2 |
import Data.Sound
import Data.Sound.Draw
main :: IO ()
main = renderFileSound "sine2.pdf" $ sine 1 1 1 0 <|> sine 1 1 1 (pi/2) | Daniel-Diaz/Wavy-Draw | examples/sine2.hs | bsd-3-clause | 128 | 1 | 8 | 25 | 66 | 32 | 34 | 4 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE UndecidableInstances #-}
module Data.CompactMap.Types where
import Control.Monad
import Foreign
import Foreign.Storable
im... | dmjio/CompactMap | src/Data/CompactMap/Types.hs | bsd-3-clause | 2,772 | 0 | 14 | 902 | 847 | 443 | 404 | -1 | -1 |
{-|
Module : Idris.PartialEval
Description : Implementation of a partial evaluator.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE PatternGuards #-}
module Idris.PartialEval(
partial_eval, getSpecApps, specType
, mkPE_TyDecl, mkPE_TermDecl, PEArgType(..)
, pe_app, pe_d... | enolan/Idris-dev | src/Idris/PartialEval.hs | bsd-3-clause | 14,546 | 1 | 20 | 4,845 | 4,614 | 2,393 | 2,221 | 241 | 17 |
-- Pipes-based UDP-to-reliable-protocol adapter
module Network.Punch.Peer.Reliable (
module Network.Punch.Peer.Reliable.Types,
newRcb,
newRcbFromPeer,
gracefullyShutdownRcb,
sendRcb,
recvRcb,
-- XXX: The functions below have unstable signatures
sendMailbox,
recvMailbox,
toMailbox,
fromMailbox
... | overminder/punch-forward | src/Network/Punch/Peer/Reliable.hs | bsd-3-clause | 14,987 | 3 | 27 | 3,836 | 4,311 | 2,168 | 2,143 | -1 | -1 |
{-#LANGUAGE OverloadedStrings#-}
{-
Min Zhang
Oct 14, 2015
Functions on DNA sequences
v.0.1.0 (Oct 14, 2015): switch from Data.Text to Data.Text.Lazy
-}
module Dna
( copySeq
, complSeq
, revSeq
, revCompSeq
, dnaToRna
, gcPct
)
where
import qualified Data.Text.Lazy as T
import Data... | Min-/fourseq | src/lib/Dna.hs | bsd-3-clause | 1,344 | 0 | 10 | 411 | 323 | 174 | 149 | 37 | 5 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Data.Type.Nat (
Nat (..), KnownNat (..)
) where
import Data.Proxy (Proxy (..))
data Nat = Zero | Succ Nat
class KnownNat (n :: Nat) where
natVal :: proxy n -> Integer
instance KnownNat 'Zer... | YellPika/effin | src/Data/Type/Nat.hs | bsd-3-clause | 444 | 0 | 9 | 112 | 144 | 81 | 63 | 13 | 0 |
module Main where
import Logic.Pheasant
main :: IO ()
main = do
putStrLn "hello world"
| thsutton/pheasant | src/Main.hs | bsd-3-clause | 101 | 0 | 7 | 29 | 30 | 16 | 14 | 5 | 1 |
{-# LANGUAGE RecordWildCards #-}
module System.Hardware.Z21.XBus where
import System.Hardware.Z21.Types
import qualified Data.ByteString.Lazy as LBS
import Data.ByteString.Lazy (ByteString)
import Data.Binary.Get
import Data.Binary.Put
import Data.Binary
import Data.Bits
data XBus = XBus
{ xbusHeader :: !Word8
,... | akru/z21-hs | src/System/Hardware/Z21/XBus.hs | bsd-3-clause | 1,088 | 0 | 14 | 328 | 280 | 146 | 134 | 35 | 0 |
module Parser where
import Rules
import Data.Char
import Data.List.Split
import Data.List
import Data.Maybe
import Control.Applicative
parse :: FilePath -> IO (Maybe [Rule])
parse path = do
strs <- zip [1..] . map stripComments . lines <$> readFile path
x <- mapM parseRule $ filter (not . null) $ splitWhen (... | liamoc/hilbert | Parser.hs | bsd-3-clause | 1,744 | 0 | 20 | 559 | 625 | 313 | 312 | 40 | 6 |
{-# LANGUAGE ConstraintKinds, DataKinds, FlexibleContexts, GADTs,
OverloadedStrings, PatternSynonyms, QuasiQuotes,
ScopedTypeVariables, TemplateHaskell, TypeOperators,
ViewPatterns #-}
-- This is a loose port of a
-- [[https://ajkl.github.io/2014/11/23/Dataframes/][dataframe tuto... | codygman/Frames | demo/Tutorial.hs | bsd-3-clause | 28,603 | 0 | 11 | 6,394 | 1,478 | 1,037 | 441 | 67 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
--
-- RCC.hs --- the portion of the RCC (Reset and Clock Control) peripehral common
-- to the entire STM32 series (was prev based on F405, its possible some of
-- these are wrong for other c... | GaloisInc/ivory-tower-stm32 | ivory-bsp-stm32/src/Ivory/BSP/STM32/Peripheral/RCC.hs | bsd-3-clause | 1,417 | 0 | 9 | 258 | 244 | 155 | 89 | 27 | 1 |
-- | This module re-export useful top-level definitions.
module Tct.Its (module M) where
import Tct.Its.Config as M (runIts, ItsConfig, itsConfig)
import Tct.Its.Data.Problem as M (Its (..), ItsStrategy, ItsDeclaration)
import Tct.Its.Strategies as M
| ComputationWithBoundedResources/tct-its | src/Tct/Its.hs | bsd-3-clause | 261 | 0 | 6 | 42 | 64 | 45 | 19 | 4 | 0 |
module Addition where
import Test.Hspec
import Test.QuickCheck
main :: IO ()
main = do
hspec $
describe "Addition" $ do
it "15 devided by 3 is 5" $ do
devideBy 15 3 `shouldBe` (5, 0)
it "22 devided by 5 is 4 remainder 2" $ do
devideBy 22 5 `shouldBe` (4, 2)
it "x + 1 is always ... | chengzh2008/hpffp | src/ch14-Testing/addition/Addition.hs | bsd-3-clause | 1,782 | 0 | 16 | 449 | 703 | 358 | 345 | 58 | 1 |
{- Parses the ARFF Header. -}
module ARFFParser.Header (
parseHeader
) where
import ARFFParser.Adecls (parseAdecls)
import ARFFParser.AST
import ARFFParser.BasicCombinators
import ARFFParser.Junk
import ARFFParser.Value (parseStringLit)
import Control.Applicative (liftA2)
parseHeader :: Parser Char Header
parseHea... | shirazb/orpiva-k-means | src/ARFFParser/Header.hs | bsd-3-clause | 395 | 0 | 6 | 48 | 86 | 49 | 37 | 11 | 1 |
{-#LANGUAGE RecordWildCards #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE QuasiQuotes, TemplateHaskell, TypeFamilies #-}
{-# LANGUAGE OverloadedStrings, GADTs, FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving, MultiParamTypeClasses #-}
module DirectoryServer where
import Network hiding (accept, sClose)
imp... | Garygunn94/DFS | .stack-work/intero/intero18496rlb.hs | bsd-3-clause | 11,637 | 266 | 15 | 2,632 | 3,095 | 1,598 | 1,497 | 215 | 5 |
{-# LANGUAGE CPP, OverloadedStrings #-}
{-# OPTIONS_GHC -Wall -fwarn-tabs #-}
module Language.Hakaru.Parser.Parser where
import Prelude hiding (Real)
#if __GLASGOW_HASKELL__ < 710
import Data.Functor ((<$>), (<$))
import Control.Applicative (Applicative(..))
#endif
impor... | zaxtax/hakaru | haskell/Language/Hakaru/Parser/Parser.hs | bsd-3-clause | 14,739 | 0 | 33 | 4,526 | 4,740 | 2,400 | 2,340 | 411 | 5 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Ticket.View.Form (ticketForm
) where
import Data.Maybe
import Control.Monad
import Text.Blaze.Html
import Text.Hamlet (shamlet)
import Ticket.Types (Client ... | ExternalReality/features | src/Ticket/View/Form.hs | bsd-3-clause | 2,258 | 0 | 8 | 413 | 109 | 68 | 41 | 10 | 1 |
module Envirius.Commands.Ls (cmd) where
import Envirius.Types.Command
import Envirius.Util (listEnvs, showEnv)
cmd :: Cmd
cmd = Cmd "ls" action desc usage help
-- main command action
action :: [String] -> IO ()
action opts = do
envs <- listEnvs
let showMetaInfo = "--no-meta" `notElem` opts
case length en... | ekalinin/envirius.hs | src/Envirius/Commands/Ls.hs | bsd-3-clause | 776 | 0 | 14 | 191 | 186 | 101 | 85 | 22 | 2 |
{-|
Module : Data.Algorithm.PPattern.Conflict
Structription : Encapsulate a conflict
Copyright : (c) Laurent Bulteau, Romeo Rizzi, Stéphane Vialette, 2016-2017
License : MIT
Maintainer : vialette@gmail.com
Stability : experimental
Conflict for pattern matching.
-}
module Data.Algorithm.PPattern.Search.C... | vialette/ppattern | src/Data/Algorithm/PPattern/Search/Conflict.hs | mit | 1,081 | 0 | 8 | 214 | 160 | 93 | 67 | 19 | 1 |
quasiQuicksort :: (Ord a) => [a] -> [a]
quasiQuicksort [] = []
quasiQuicksort (head:tail) = smaller ++ [pivot] ++ larger
where pivot = head
smaller = filter (< pivot) (quasiQuicksort tail)
larger = filter (> pivot) (quasiQuicks... | 2015-Fall-UPT-PLDA/labs | week-02/quasi-quicksort.hs | mit | 329 | 0 | 9 | 130 | 110 | 60 | 50 | 6 | 1 |
{-
Notifaika reposts notifications
from different feeds to Gitter chats.
Copyright (C) 2015 Yuriy Syrovetskiy
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 3 ... | cblp/notifaika | src/Data/Aeson/X.hs | gpl-3.0 | 1,263 | 0 | 14 | 287 | 138 | 72 | 66 | 13 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Control.Monad (forM_)
import qualified Data.ByteString as SB
import Data.Maybe (fromMaybe)
import qualified Data.Text.Lazy as L
import System.Exit (exitFailure)
import System.IO (hClose, hPutStrLn, stderr)
import Text.Printf (printf)
import Data.Graph... | fgaray/erd | src/Main.hs | unlicense | 4,024 | 54 | 18 | 976 | 1,266 | 667 | 599 | 80 | 3 |
{-# LANGUAGE MultiParamTypeClasses #-}
-- the content concept of an object
-- core questions: where is this object? is it the same as that object?
-- collections of objects are objects too (consistent with feature collections being features in OGC)
-- objects have temporal state (manifested in their spatial and themat... | spatial-ucsb/ConceptsOfSpatialInformation | CoreConceptsHs/Object.hs | apache-2.0 | 1,314 | 0 | 8 | 251 | 194 | 109 | 85 | 15 | 1 |
{-# LANGUAGE PArr #-}
{-# OPTIONS -fvectorise #-}
module Delaunay ( delaunay, delaunayPoints ) where
import Types
import Hull
import Sort
import Data.Array.Parallel.Prelude
import Data.Array.Parallel.Prelude.Double
import qualified Data.Array.Parallel.Prelude.Int as Int
import Data.Array.Parallel.Prelude.Int ( Int )... | mainland/dph | icebox/examples/delaunay/Delaunay.hs | bsd-3-clause | 6,078 | 124 | 15 | 1,276 | 1,691 | 932 | 759 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
import Control.Applicative
import Data.Aeson.Quick
import Data.ByteString.Lazy (ByteString)
import Lens.Micro
import Test.Tasty
import Test.Tasty.HUnit
main :: IO ()
main = defaultMain $ testGroup "Tests"
[ oneKey
, multipleKeys
, deepKey
, k... | libscott/quickson | test/Test.hs | bsd-3-clause | 3,830 | 0 | 14 | 912 | 1,191 | 639 | 552 | -1 | -1 |
{-| Module describing a node.
All updates are functional (copy-based) and return a new node with
updated value.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published ... | vladimir-ipatov/ganeti | src/Ganeti/HTools/Node.hs | gpl-2.0 | 29,560 | 0 | 18 | 8,238 | 6,971 | 3,816 | 3,155 | 551 | 32 |
--
-- Copyright (c) 2012 Citrix Systems, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This progra... | jean-edouard/manager | dbd2/Rpc.hs | gpl-2.0 | 1,740 | 0 | 9 | 315 | 275 | 156 | 119 | 22 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-|
Copyright : (c) 2016 Dominik Schoop
License : GPL v3 (see LICENSE)
Maintainer : Dominik Schoop dominik.schoop@hs-esslingen.de
Portability : GHC only
Conversion of the graph part of a sequent (constraint system) to a JSON gr... | rsasse/tamarin-prover | lib/theory/src/Theory/Constraint/System/JSON.hs | gpl-3.0 | 17,311 | 3 | 18 | 5,535 | 3,347 | 1,812 | 1,535 | 272 | 6 |
{--------------------------------------------------------------------------------
The 'hello world' demo from the wxWidgets site.
--------------------------------------------------------------------------------}
module Main where
import Graphics.UI.WXCore
main
= run helloWorld
helloWorld
= do -- create file me... | ekmett/wxHaskell | samples/wxcore/HelloWorld.hs | lgpl-2.1 | 1,484 | 0 | 13 | 400 | 302 | 137 | 165 | 30 | 1 |
{- -*- Mode: haskell; -*-
Haskell LDAP Interface
Copyright (C) 2005 John Goerzen <jgoerzen@complete.org>
This code is under a 3-clause BSD license; see COPYING for details.
-}
{- |
Module : LDAP.TypesLL
Copyright : Copyright (C) 2005-2006 John Goerzen
License : BSD
Maintainer : John Goerzen,
... | ezyang/ldap-haskell | LDAP/TypesLL.hs | bsd-3-clause | 563 | 0 | 4 | 111 | 22 | 15 | 7 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-deprecations #-}
module Network.Wai.Handler.Warp.Internal (
-- * Settings
Settings (..)
, ProxyProtocol(..)
-- * Low level run functions
, runSettingsConnection
, runSettingsConnectionMaker
, runSettingsConnectionMakerSecure
, runServe
, runServeEnv
, runServeSetting... | rgrinberg/wai | warp/Network/Wai/Handler/Warp/Internal.hs | mit | 2,460 | 0 | 5 | 511 | 306 | 228 | 78 | 56 | 0 |
{-# LANGUAGE ExistentialQuantification, FlexibleInstances, GeneralizedNewtypeDeriving,
MultiParamTypeClasses, TypeSynonymInstances, CPP, DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Core
-- Copyright : (c) Spencer Jan... | mightymoose/liquidhaskell | benchmarks/xmonad-0.10/XMonad/Core.hs | bsd-3-clause | 22,012 | 0 | 22 | 5,375 | 4,304 | 2,355 | 1,949 | -1 | -1 |
module Definition.Definition where
seven :: Int
seven = 7 | charleso/intellij-haskforce | tests/gold/codeInsight/QualifiedImport_QualifierResolvesMultipleCons_Cons2_NoAs/Definition.hs | apache-2.0 | 58 | 0 | 4 | 9 | 16 | 10 | 6 | 3 | 1 |
module Comonad where
class Functor f => Comonad f where
extract :: f a -> a
duplicate :: f a -> f (f a)
(=>>) :: f a -> (f a -> b) -> f b
x =>> f = fmap f (duplicate x)
| lukegrehan/comonadLife | Comonad.hs | mit | 179 | 0 | 11 | 54 | 106 | 52 | 54 | 6 | 0 |
module D20.Internal.Character.TalentEffect where
-- TODO as much modelling as in FeatEffect.
-- TODO see how much can be extracted into a generic Effect.
data TalentEffect = PermanentTalentEffect | TalentAction
| elkorn/d20 | src/D20/Internal/Character/TalentEffect.hs | mit | 212 | 0 | 5 | 30 | 20 | 14 | 6 | 2 | 0 |
{-# LANGUAGE OverloadedStrings #-}
import Control.Applicative
import Data.Ratio ((%))
import Text.Trifecta
badFraction = "1/0"
alsoBad = "10"
shouldWork = "1/2"
shouldAlsoWork = "2/1"
-- Then we’ll write our actual parser:
parseFraction :: Parser Rational
parseFraction = do
numerator <- decimal
char '/'
denom... | diminishedprime/.org | reading-list/haskell_programming_from_first_principles/24_04.hs | mit | 1,368 | 0 | 12 | 273 | 360 | 171 | 189 | 40 | 2 |
{-# LANGUAGE TupleSections #-}
newtype Point = Point (Integer, Integer) deriving Show
vec (Point (x0, y0)) (Point (x1, y1)) = Point (x0 - x1, y0 - y1)
nrm2 (Point (x, y)) = x * x + y * y
r a b c
| c > a && c > b = c == a + b
| a > c && a > b = a == b + c
| b > c && b > a = b == a + c
| otherwise = False
-- ... | liuyang1/euler | square.091.hs | mit | 629 | 0 | 10 | 176 | 407 | 211 | 196 | 15 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE FlexibleContexts #-}
module Demos.Animation
( AnimationDemo(..)
, allocDemo
, renderDemo
, freeDemo
) where
import Control.Lens hiding (to)
import Control.Varying
import Linear hiding (rotate)
import Gel... | schell/odin | app/Demos/Animation.hs | mit | 5,004 | 0 | 20 | 1,987 | 1,608 | 772 | 836 | 135 | 4 |
{-# LANGUAGE TemplateHaskell #-}
module UnitTest.CallbackParse.MessageCallback where
import Data.Aeson (Value)
import Data.Yaml.TH (decodeFile)
import Test.Tasty as Tasty
import Web.Facebook.Messenger
import UnitTest.Internal
--------------
-- MESSAGES --
--------------
messageTests :: TestTree
messageTests = Tas... | Vlix/facebookmessenger | test/UnitTest/CallbackParse/MessageCallback.hs | mit | 7,634 | 0 | 11 | 2,871 | 1,068 | 553 | 515 | -1 | -1 |
{-# LANGUAGE JavaScriptFFI #-}
-- | An implementation of the NodeJS Certificate API, as documented
-- <https://nodejs.org/api/crypto.html#crypto_class_certificate here>.
module GHCJS.Node.Crypto.Certificate
( SPKAC (..), Challenge (..), PublicKey (..)
, spkacChallenge, spkacPublicKey, spkacVerify
) where
impo... | taktoa/ghcjs-electron | src/GHCJS/Node/Crypto/Certificate.hs | mit | 1,432 | 8 | 6 | 301 | 160 | 100 | 60 | 23 | 0 |
{-# LANGUAGE DeriveGeneric, ScopedTypeVariables, TemplateHaskell, TypeInType, TypeFamilies, KindSignatures, DataKinds, TypeOperators, GADTs, TypeSynonymInstances, FlexibleInstances #-}
module Example.Example07 where
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
import Control.Exception.Safe (Exceptio... | naoto-ogawa/h-xproto-mysql | src/Example/Example07.hs | mit | 3,294 | 0 | 12 | 653 | 409 | 275 | 134 | 42 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import qualified Data.Aeson as JSON
import qualified Data.Bits as Bits
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as LBS
import qualified Data.Map as Map
import qualified Data.Text as Text
import qualified Data.Text.Encoding ... | IreneKnapp/deltavee | Haskell/DeltaVee.hs | mit | 5,436 | 0 | 31 | 1,716 | 1,131 | 601 | 530 | 132 | 3 |
-- | assorted functionality, imported by most modules in this package.
module Workflow.OSX.Extra
( module Workflow.OSX.Extra
, module X
) where
import Workflow.Types (MilliSeconds)
import Control.DeepSeq as X (NFData)
import Data.Hashable as X (Hashable)
import Data.String.Conv as X
import Data.Data as X (Data)
im... | sboosali/workflow-osx | workflow-osx/sources/Workflow/OSX/Extra.hs | mit | 1,232 | 0 | 7 | 239 | 331 | 207 | 124 | 32 | 1 |
module Handler.ModelsSpec (spec) where
import TestImport
spec :: Spec
spec = withApp $ do
describe "getModelsR" $ do
error "Spec not implemented: getModelsR"
| swamp-agr/carbuyer-advisor | test/Handler/ModelsSpec.hs | mit | 174 | 0 | 11 | 39 | 44 | 23 | 21 | 6 | 1 |
{-# htermination isIEEE :: Float -> Bool #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_isIEEE_1.hs | mit | 45 | 0 | 2 | 8 | 3 | 2 | 1 | 1 | 0 |
module SimpleAsmArchitecture(
Word,
word,
int,
word_size,
op_size,
obj_size,
wordJoin,
wordSplit
) where
word_size = op_size + obj_size
op_size = 2
obj_size = 3
complement = 10 ^ word_size
min_word = complement `div` 2
max_word = min_word - 1
newtype Word = Word { runWord :: Int } deriving (Eq)
tensComplem... | kyle-ilantzis/Simple-ASM | SimpleAsmArchitecture.hs | mit | 1,440 | 119 | 13 | 387 | 702 | 376 | 326 | 48 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-cluster-ebsconfiguration.html
module Stratosphere.ResourceProperties.EMRClusterEbsConfigurat... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/EMRClusterEbsConfiguration.hs | mit | 2,300 | 0 | 12 | 204 | 264 | 153 | 111 | 28 | 1 |
-- -*- mode: haskell -*-
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
-- $Id$
module Graph.Circle.Config where
import Autolib.ToDoc
import Autolib.Reader
import Data.Typeable
data Config = Config
{ nodes_circle :: Int -- ^ knoten im kreis
, nodes_complete :: Int -- ^ knoten insgesamt
, ... | Erdwolf/autotool-bonn | src/Graph/Circle/Config.hs | gpl-2.0 | 550 | 6 | 9 | 151 | 121 | 75 | 46 | 15 | 1 |
module CornerPoints.CornerPoints(
CornerPoints(..),
(+++),
(+++-),
(|+++|),
(+++>),
(@+++#@),
(&+++#@),
(|@+++#@|),
scaleCornerPoints,
scaleCornerPointsZ,
CornerPointsBuilder(..),
) where
import CornerPoints.Points (Point(..))
import Control.Applicative
infix 7 +++
infix 6 +++-
infix 5 @+++#@
infix 5 +++>
infix 4... | heathweiss/Tricad | src/CornerPoints/CornerPoints.hs | gpl-2.0 | 17,385 | 0 | 17 | 5,282 | 5,762 | 3,080 | 2,682 | 324 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Bachelor.DataBase where
{-
- Provides a interface for reading/writing RTS State Events to and from
- a database.
- -}
--instance IOEventData where
import Bachelor.Types
import Database.PostgreSQL.Simple
import GHC.RTS.Events
import qualified Data.HashMap.Strict as M
im... | brtmr/Eden-Tracelab-cli-tool | src/Bachelor/DataBase.hs | gpl-3.0 | 7,564 | 0 | 20 | 2,081 | 1,808 | 952 | 856 | 146 | 6 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE GADTs #-}
module Views where
import qualified Data.Map as M
import Data.Map(Map)
import Data.Maybe
import Control.Monad
import Control.Monad.Trans.S... | haraldsteinlechner/lambdaWolf | src/Views.hs | gpl-3.0 | 3,742 | 1 | 13 | 1,013 | 1,722 | 899 | 823 | 101 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Types where
import qualified Data.Text as T
import Lib
import Control.Lens
import Data.Time.Clock
data Order
= Normal
| Reversed
deriving (Show)
data Filter
= None
| OnlyToday UTCTime
deriving (Show)
data InputCase
... | Arguggi/irc-log | frontend/src/Types.hs | gpl-3.0 | 1,195 | 0 | 10 | 292 | 319 | 188 | 131 | 50 | 1 |
module Main where
import qualified Temper as T
import System.USB.Enumeration (getDevices, Device)
import System.USB.Initialization (newCtx)
import Control.Monad (filterM)
import Data.Vector (toList)
import System.USB.DeviceHandling (withDeviceHandle)
main:: IO()
main = do
usbContext <- newCtx
devices <- getDe... | bneijt/temper | src/main/Main.hs | gpl-3.0 | 681 | 0 | 16 | 161 | 186 | 97 | 89 | 19 | 2 |
{-# LANGUAGE OverloadedStrings #-}
-- Module : Keiretsu.Log
-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>
-- License : This Source Code Form is subject to the terms of
-- the Mozilla Public License, v. 2.0.
-- A copy of the MPL can be found in the LICENSE fil... | bnordbo/keiretsu | src/Keiretsu/Log.hs | mpl-2.0 | 2,026 | 0 | 11 | 548 | 453 | 247 | 206 | 44 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.BigQuery.Types.Sum
-- Copyright : (c) 2015-2016 Brenda... | brendanhay/gogol | gogol-bigquery/gen/Network/Google/BigQuery/Types/Sum.hs | mpl-2.0 | 43,099 | 0 | 11 | 11,468 | 6,595 | 3,540 | 3,055 | 848 | 0 |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings, FlexibleInstances, RecordWildCards, UnicodeSyntax, Rank2Types #-}
module Papstehrenwort.Web.Html where
import Protolude as P
import Data.Time.Calendar (Day)
import Text.Blaze.Html5 as H
import Text.Blaze.Html5.Attributes as A
import Text.Blaze (ToMarkup)
import Papst... | openlab-aux/papstehrenwort | src/Papstehrenwort/Web/Html.hs | agpl-3.0 | 2,483 | 0 | 31 | 754 | 734 | 359 | 375 | 57 | 0 |
{-# LANGUAGE DataKinds
, GeneralizedNewtypeDeriving
, TupleSections
, TypeFamilies
#-}
module Avro.Parser
( Parser(Parser, getAttoparsecParser)
, parse
)
where
import Control.Applicative (liftA2)
import qualified Data.Attoparsec.ByteString.Lazy as APS
import Data.Bits ((.&.)... | cumber/havro | src/Avro/Parser.hs | lgpl-3.0 | 3,071 | 0 | 12 | 816 | 845 | 481 | 364 | 83 | 2 |
-- Copyright 2021 Google LLC
--
-- 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 ... | google/hs-portray | portray-pretty/test/Main.hs | apache-2.0 | 8,066 | 0 | 19 | 3,000 | 1,888 | 948 | 940 | 181 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QTextCharFormat.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:35
Warning : this file is machine generated - ... | keera-studios/hsQt | Qtc/Enums/Gui/QTextCharFormat.hs | bsd-2-clause | 5,172 | 0 | 18 | 1,056 | 1,284 | 649 | 635 | 126 | 1 |
module Main where
import System.Console.CmdArgs
import Application.MiscUtils.ProgType
import Application.MiscUtils.Command
main :: IO ()
main = do
putStrLn "misc-utils"
param <- cmdArgs mode
commandLineProcess param | wavewave/misc-utils | oldcode/exe/misc-utils.hs | bsd-2-clause | 227 | 0 | 8 | 35 | 59 | 31 | 28 | 9 | 1 |
{-# LANGUAGE NoMonomorphismRestriction #-}
module Text.OGDL.Parsec where
import Text.Parsec(Column, sourceColumn, (<?>), (<|>), getPosition, getState,
many, modifyState, runParser, try, unexpected, char, oneOf, satisfy, string,
between, choice, count, lookAhead, many1, noneOf, op... | thedward/haskell-ogdl | Text/OGDL/Parsec.hs | bsd-3-clause | 12,841 | 0 | 16 | 3,190 | 2,217 | 1,201 | 1,016 | 111 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.