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 OverloadedStrings, RecordWildCards, NamedFieldPuns #-}
{-# LANGUAGE FlexibleInstances, ScopedTypeVariables, FlexibleContexts #-}
{-# LANGUAGE BangPatterns #-}
module Sajson.ToJson
( ToJson (..)
, (.=)
, (!.=)
, encodeJson
, encodeJsonStrict
, encodeJsonBuilder
, unsafeUtf8ByteS... | andyfriesen/hs-sajson | src/Sajson/ToJson.hs | mit | 9,678 | 0 | 16 | 2,272 | 2,280 | 1,227 | 1,053 | -1 | -1 |
module LexTypes where
data InnerToken = OParen | CParen
| ColonEq
| Eq
| DoubleEq
| GEq
| LEq
| OAngleBracket
| CAngleBracket
... | samphippen/pony | LexTypes.hs | mit | 2,094 | 0 | 7 | 1,473 | 236 | 149 | 87 | 56 | 0 |
{-# LANGUAGE TemplateHaskell, QuasiQuotes, OverloadedStrings, ScopedTypeVariables #-}
module Main where
import qualified Data.Text as Text
import qualified Data.Text.Lazy as LText
import qualified Data.Binary as Bin
import qualified Data.Acid as Acid
import qualified Data.Map.Strict as Map
import System.Console.ArgP... | BitFunctor/bitfunctor-theory | src/Network/BitFunctor/Theory/theoryd.hs | mit | 2,149 | 0 | 13 | 541 | 445 | 241 | 204 | 46 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGAnimatedTransformList
(js_getBaseVal, getBaseVal, js_getAnimVal, getAnimVal,
SVGAnimatedTransformList, castToSVGAnimatedTransformList,
gTypeSVGAnimatedTransformList)
where
import P... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGAnimatedTransformList.hs | mit | 1,985 | 12 | 10 | 261 | 460 | 283 | 177 | 33 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Y2017.M12.D15.Exercise where
import Data.Text
import System.Directory
{--
New topic!
Today we're going to create an oembed service where we serve some simple
resources, like, goats, ... because I like kids; they are SO CUTE!
So, there are three things that make up a kids o... | geophf/1HaskellADay | exercises/HAD/Y2017/M12/D15/Exercise.hs | mit | 2,576 | 0 | 7 | 446 | 171 | 100 | 71 | 20 | 1 |
{-# htermination addToFM_C :: (b -> b -> b) -> FiniteMap Float b -> Float -> b -> FiniteMap Float b #-}
import FiniteMap
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/FiniteMap_addToFM_C_6.hs | mit | 121 | 0 | 3 | 24 | 5 | 3 | 2 | 1 | 0 |
module CSVUtils (parseCSV, showCSV, colFields, readCSV, writeCSV) where
import Data.List
type Separator = String
type Document = String
type CSV = [Entry]
type Entry = [Field]
type Field = String
doc = "John;Doe;15\nTom;Sawyer;12\nAnnie;Blake;20"
brokenDoc = "One;Two\nThree;Four;Five"
csv = parseCSV ";" doc
-- 8a) D... | kbiscanic/PUH | hw03/CSVUtils.hs | mit | 2,138 | 0 | 12 | 469 | 588 | 303 | 285 | 35 | 2 |
{-# LANGUAGE OverloadedStrings #-}
-- | Types for choosing an option from a limited set.
module Strive.Enums
( ActivityType (..)
, ActivityZoneType (..)
, AgeGroup (..)
, ClubType (..)
, FrameType (..)
, Gender (..)
, MeasurementPreference (..)
, PhotoType (..)
, Resolution (..)
, ResourceState (..... | bitemyapp/strive | library/Strive/Enums.hs | mit | 7,426 | 0 | 8 | 1,450 | 1,995 | 1,054 | 941 | 252 | 0 |
{- Part of possum4
Copyright (c) 2014 darkf
Licensed under the terms of the MIT license
See LICENSE.txt for details -}
module Parser (parse, parseWith, parseString, parseStringWith, ArityMap) where
import AST
import Control.Monad.State
import qualified Data.Map as M
import qualified Tokenizer as T
type Arity... | darkf/possum4 | Parser.hs | mit | 4,449 | 8 | 20 | 936 | 1,521 | 750 | 771 | 114 | 11 |
module Handler.Day where
import Import
import Data.Time.LocalTime
import qualified Model.Event as E
import Helpers
import Calendar
getDayR :: Day -> Handler Html
getDayR date = do
-- let date = fromGregorian year month day
events <- runDB $ E.getEventsDay date
tz <- liftIO getCurrentTimeZone
widget <- calen... | isankadn/yesod-testweb-full | Handler/Day.hs | mit | 510 | 0 | 15 | 97 | 142 | 69 | 73 | -1 | -1 |
--
-- Copyright (c) 2013 Citrix Systems, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This progra... | OpenXT/network | nws/NetworkManager.hs | gpl-2.0 | 4,506 | 0 | 12 | 661 | 720 | 386 | 334 | 73 | 1 |
-- germline_clone_mutation_count_source
-- Mutation Module
-- By G.W. Schwartz
-- Collects all functions pertaining to mutations of codons, including
-- Hamming distances and the like.
module Mutation where
-- Built in
import Data.List
import Data.Maybe
import Control.Applicative
-- Local
import Types
import Transl... | GregorySchwartz/count-mutations | src/Mutation.hs | gpl-2.0 | 6,727 | 0 | 16 | 2,461 | 1,964 | 1,034 | 930 | 125 | 12 |
-- OmegaGB Copyright 2007 Bit Connor
-- This program is distributed under the terms of the GNU General Public License
-----------------------------------------------------------------------------
-- |
-- Module : AsciiTest01
-- Copyright : (c) Bit Connor 2007 <bit@mutantlemon.com>
-- License : GPL
-- Main... | bitc/omegagb | src/AsciiTest01.hs | gpl-2.0 | 1,437 | 0 | 21 | 340 | 363 | 189 | 174 | 24 | 4 |
{-
A lewd IRC bot that does useless things.
Copyright (C) 2012 Shou
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 progr... | Shou/KawaiiBot-hs | KawaiiBot/IRC.hs | gpl-2.0 | 15,954 | 0 | 29 | 7,105 | 4,297 | 2,089 | 2,208 | 332 | 8 |
------------------------------------------------------------------
-- |
-- Module : Gom.Random
-- Copyright : (c) Paul Brauner 2009
-- (c) Emilie Balland 2009
-- (c) INRIA 2009
-- Licence : GPL (see COPYING)
--
-- Maintainer : paul.brauner@inria.fr
-- Stability : provisional
--... | polux/hgom | test/Gom/Random.hs | gpl-3.0 | 2,848 | 0 | 13 | 597 | 950 | 491 | 459 | 58 | 1 |
{- hake: make tool. ruby : rake = haskell : hake
Copyright (C) 2008-2008 Yoshikuni Jujo <PAF01143@nifty.ne.jp>
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 of the License, or
(at ... | YoshikuniJujo/hake_haskell | Main.hs | gpl-3.0 | 2,151 | 2 | 13 | 513 | 449 | 247 | 202 | 33 | 2 |
import qualified Data.Set as Set
import Test.HUnit
import Test.Framework
import Test.Framework.Providers.HUnit
import Pretzel
main :: IO ()
main =
defaultMainWithOpts tests mempty
tests =
[ testCase "show-1" $
showPretzel pretzel @?= diagram
, testCase "read-success" $
readPretzel diagram @?= Just... | mkovacs/pretzel | src/test/UnitReadShow.hs | gpl-3.0 | 935 | 0 | 8 | 276 | 428 | 268 | 160 | 38 | 1 |
{-# LANGUAGE TypeFamilies, TupleSections, DeriveGeneric #-}
{-# Language FlexibleContexts, FlexibleInstances, ViewPatterns #-}
-- | Imagine desiging a key-value store on top of the file system.
-- The 'Simple' store is basically that, with a few added
-- complications due to the versioning.
--
-- The store runs out of... | scvalex/ltc | src/Ltc/Store/Simple.hs | gpl-3.0 | 29,049 | 0 | 26 | 8,248 | 6,570 | 3,420 | 3,150 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Haemu.Exception
( UnknownOpcode(..)
, InvalidAddress(..)
, InvalidRegister(..)
, UnknownOptype(..)
, (?->)
) where
import Haemu.Types
import Control.Monad.Exception
-- | Raised when an opcode is not a valid instruction.
-- The argument is the opcode that is unhandled.
... | bennofs/haemu | src/Haemu/Exception.hs | gpl-3.0 | 1,200 | 0 | 8 | 194 | 253 | 145 | 108 | 21 | 1 |
-- | This module contains a data structure for RNAdistance output
-- For more information on RNAdistance consult: <>
module Bio.RNAdistanceData where
-- | Data structure
data RNAdistance = RNAdistance
{
secondaryStructureDistance :: Int
}
deriving (Show, Eq)
| eggzilla/ViennaRNAParser | src/Bio/RNAdistanceData.hs | gpl-3.0 | 273 | 0 | 8 | 52 | 35 | 22 | 13 | 4 | 0 |
module HFlint.NF.Context
where
import HFlint.Utility.Prelude
import Control.Exception.Safe ( MonadMask )
import Control.Monad.IO.Class ( MonadIO )
import HFlint.Internal.Context
import HFlint.FMPQPoly
import HFlint.NF.FFI
type ReifiesNFContext ctxProxy = ReifiesFlintContext NFCtx ctxProxy
withNFContext
:: NFData... | martinra/hflint | src/HFlint/NF/Context.hs | gpl-3.0 | 700 | 0 | 12 | 133 | 179 | 99 | 80 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-accesscontextmanager/gen/Network/Google/Resource/AccessContextManager/Organizations/GcpUserAccessBindings/Delete.hs | mpl-2.0 | 5,818 | 0 | 15 | 1,179 | 700 | 411 | 289 | 108 | 1 |
-- |
-- Module: SwiftNav.SBP.Tracking
-- Copyright: Copyright (C) 2015 Swift Navigation, Inc.
-- License: LGPL-3
-- Maintainer: Mark Fine <dev@swiftnav.com>
-- Stability: experimental
-- Portability: portable
--
-- Satellite code and carrier-phase tracking messages from the device.
module SwiftNav.SBP.Tr... | mookerji/libsbp | haskell/src/SwiftNav/SBP/Tracking.hs | lgpl-3.0 | 6,532 | 0 | 11 | 1,010 | 1,172 | 612 | 560 | -1 | -1 |
import Test.Hspec
import Test.QuickCheck
import Control.Exception (evaluate)
import FizzBuzz
main :: IO()
main = hspec $ do
describe "fizzBuzzer" $ do
context "when is not divisible by 3 or 5" $ do
it "returns the number" $ do
fizzBuzzer 1 `shouldBe` "1"
context "when is divisible by 3" $ do
... | arthurms/tw-coding-dojo | test/FizzBuzzSpec.hs | apache-2.0 | 621 | 0 | 18 | 171 | 181 | 84 | 97 | 19 | 1 |
loop context n = do
send context $ do
clearRect (0,0,width context,height context)
beginPath()
save()
translate (width context / 2,height context / 2)
rotate (pi * n)
beginPath()
moveTo(-100,-100)
lineTo(-100,100)
lineTo(100,100)
lineTo... | ku-fpg/talks | blank-canvas/examples/RotatingTile.hs | bsd-2-clause | 492 | 0 | 13 | 181 | 228 | 102 | 126 | 19 | 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.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
module Duckling.AmountOfMon... | facebookincubator/duckling | Duckling/AmountOfMoney/EN/NZ/Rules.hs | bsd-3-clause | 1,819 | 0 | 17 | 390 | 452 | 264 | 188 | 51 | 2 |
module Owl.Service.API.Internal.Res where
import Control.Applicative ((<$>),(<*>))
import Control.Monad (mzero)
import Data.Aeson
import qualified Data.ByteString.Lazy.Char8 as LB
data OwlRes = OwlRes { cipher :: LB.ByteString }
instance FromJSON OwlRes where
parseJSON (Object o) = OwlRes <$> o .: "cipher"
parseJ... | cutsea110/owl-api | Owl/Service/API/Internal/Res.hs | bsd-3-clause | 410 | 0 | 9 | 64 | 138 | 81 | 57 | 11 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Types shared by many modules in this application.
module TauSigma.Types
( Domain(..)
, TimeData
, FreqData
, Tagged(..)
, TauSigma(..)
... | sacundim/tau-sigma | src/TauSigma/Types.hs | bsd-3-clause | 2,052 | 0 | 11 | 476 | 567 | 312 | 255 | 50 | 1 |
{-# LANGUAGE RecordWildCards #-}
-- | DSL for testing the modular solver
module UnitTests.Distribution.Solver.Modular.DSL (
ExampleDependency(..)
, Dependencies(..)
, ExTest(..)
, ExPreference(..)
, ExampleDb
, ExampleVersionRange
, ExamplePkgVersion
, ExamplePkgName
, ExampleAvailable(..)
, Examp... | thomie/cabal | cabal-install/tests/UnitTests/Distribution/Solver/Modular/DSL.hs | bsd-3-clause | 21,040 | 0 | 20 | 5,657 | 4,470 | 2,476 | 1,994 | 325 | 19 |
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving #-}
module Oracles.WindowsRoot (
windowsRoot, fixAbsolutePathOnWindows, topDirectory, windowsRootOracle
) where
import Data.Char (isSpace)
import Base
import Oracles.Config.Setting
newtype WindowsRoot = WindowsRoot ()
deriving (Show, Typeable, Eq... | quchen/shaking-up-ghc | src/Oracles/WindowsRoot.hs | bsd-3-clause | 1,796 | 0 | 15 | 388 | 372 | 194 | 178 | 34 | 3 |
{-# LANGUAGE ScopedTypeVariables, BangPatterns #-}
{-# LANGUAGE ExistentialQuantification #-}
module ECC.Types
( -- * Types
ECC(..),
Code(..),
BEs, -- abstract
Log(..),
-- * Type Synonyms
MessageLength,
CodewordLength,
Rat... | ku-fpg/ecc-manifold | src/ECC/Types.hs | bsd-3-clause | 5,630 | 2 | 13 | 1,535 | 1,182 | 661 | 521 | 83 | 2 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
module Day10 where
import qualified Data.List as List
import qualified Data.Map as Map
import Data.Map (Map)
import Data.Maybe
import Text.Parsec hiding (State)
type Parser = Parsec String ()
data Destination = Bot Int | Output Int
deriving (Show)
data ... | mbernat/aoc16-haskell | src/Day10.hs | bsd-3-clause | 3,039 | 0 | 12 | 684 | 1,184 | 629 | 555 | 87 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Main where
import Options.Generic
import System.Environment
import Text.Parsec.String (parseFromFile)
import qualified Language.Brainfuck.Internals.Interpreter as Inter... | remusao/Hodor | app/Main.hs | bsd-3-clause | 2,159 | 0 | 13 | 468 | 440 | 262 | 178 | 51 | 7 |
module Sexy.Instances.Plus.Maybe () where
import Sexy.Data (Maybe(..))
import Sexy.Classes (Plus(..))
instance (Plus a) => Plus (Maybe a) where
Nothing + my = my
mx + Nothing = mx
(Just x) + (Just y) = Just (x + y)
| DanBurton/sexy | src/Sexy/Instances/Plus/Maybe.hs | bsd-3-clause | 237 | 0 | 8 | 60 | 117 | 64 | 53 | 7 | 0 |
{-# language CPP #-}
-- No documentation found for Chapter "Promoted_From_VK_KHR_sampler_ycbcr_conversion"
module Vulkan.Core11.Promoted_From_VK_KHR_sampler_ycbcr_conversion ( createSamplerYcbcrConversion
, withSamplerYcbcrConversion
... | expipiplus1/vulkan | src/Vulkan/Core11/Promoted_From_VK_KHR_sampler_ycbcr_conversion.hs | bsd-3-clause | 47,902 | 0 | 17 | 8,086 | 6,531 | 3,802 | 2,729 | -1 | -1 |
module Handler.Preview where
import Control.Exception hiding (Handler)
import qualified Data.ByteString.Lazy as LB
import Data.Default
import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.Lazy as LT
import qualified Data.Text.Lazy.Encoding as LT
import Text.Blaze
import Yesod
impo... | Kwarrtz/flash | Handler/Preview.hs | bsd-3-clause | 1,142 | 0 | 12 | 211 | 322 | 177 | 145 | -1 | -1 |
module Hydra (
module Hydra.Data
, module Hydra.Stages.Simulate
, module Hydra.Stages.Quote
)
where
import Hydra.Data
import Hydra.Stages.Simulate
import Hydra.Stages.Quote | giorgidze/Hydra | src/Hydra.hs | bsd-3-clause | 175 | 0 | 5 | 21 | 43 | 29 | 14 | 7 | 0 |
-- The Timber compiler <timber-lang.org>
--
-- Copyright 2008-2009 Johan Nordlander <nordland@csee.ltu.se>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
--
-- 1. Redistributions of sour... | mattias-lundell/timber-llvm | src/Syntax2Core.hs | bsd-3-clause | 21,951 | 0 | 18 | 9,503 | 6,702 | 3,316 | 3,386 | 278 | 5 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
module Text.Digestive.Heist.Extras.Value
( dfPathList
, dfValueList
) where
import Data.Map.Syntax ((##))
import Data.Monoid (mempty, (<>))
import qualified Data.Text as T
impor... | cimmanon/digestive-functors-heist-extras | src/Text/Digestive/Heist/Extras/Value.hs | bsd-3-clause | 1,866 | 12 | 14 | 321 | 454 | 248 | 206 | 36 | 2 |
even :: [a] -> [a]
even [] = []
even [x] = []
even (x:y:z) = y : even z
main :: Stream -> Stream
main stdin = toStream $ unlines $ even $ lines $ fromStream stdin
| tromp/hs2blc | examples/even_lines.hs | bsd-3-clause | 164 | 0 | 8 | 39 | 103 | 53 | 50 | 6 | 1 |
module ABFA.Event where
-- the event queue that handles all user input and many
-- other things is defined
import qualified Control.Concurrent.STM as STM
import Control.Concurrent.STM.TChan
import Control.Concurrent.STM.TMVar
import qualified Control.Concurrent as CC
import qualified GLUtil.ABFA as GLFW
import ABFA.S... | coghex/abridgefaraway | src/ABFA/Event.hs | bsd-3-clause | 3,746 | 0 | 13 | 739 | 1,111 | 550 | 561 | 144 | 2 |
{-# LANGUAGE TypeFamilies #-}
module Test.AllStarTests where
import Test.HUnit
import ParserGenerator.AllStar
import qualified Data.Set as DS
--------------------------------TESTING-----------------------------------------
instance Token Char where
type Label Char = Char
type Literal Char = Char
getLabel c = ... | slasser/AllStar | Test/AllStarTests.hs | bsd-3-clause | 11,072 | 0 | 21 | 5,960 | 2,519 | 1,314 | 1,205 | 131 | 2 |
module League.Types.Version
( Version(..)
, VersionString(..)
, version ) where
import Control.Applicative
import Control.Lens
import Data.Aeson
import Data.Monoid (mempty)
import Data.Text (Text, splitOn, unpack)
import Text.Read (readMaybe)
import qualified Data.Version as Version
data VersionString = Version... | intolerable/league-of-legends | src/League/Types/Version.hs | bsd-3-clause | 802 | 0 | 10 | 138 | 291 | 161 | 130 | 24 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK show-extensions #-}
{-|
Module : $Header$
Copyright : (c) 2016 Deakin Software & Technology Innovation Lab
License : BSD3
Maintainer : Rhys Adams <rhys.ada... | rimmington/eclogues | eclogues-impl/app/client/Main.hs | bsd-3-clause | 6,108 | 0 | 21 | 1,403 | 1,820 | 972 | 848 | 111 | 10 |
-- #hide
--------------------------------------------------------------------------------
-- |
-- Module : Sound.OpenAL.AL.SourceState
-- Copyright : (c) Sven Panne 2003-2005
-- License : BSD-style (see the file libraries/OpenAL/LICENSE)
--
-- Maintainer : sven.panne@aedion.de
-- Stability : provisi... | FranklinChen/hugs98-plus-Sep2006 | packages/OpenAL/Sound/OpenAL/AL/SourceState.hs | bsd-3-clause | 1,759 | 0 | 9 | 289 | 193 | 116 | 77 | 17 | 1 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, PatternGuards #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.Gaps
-- Description : Create manually-sized gaps along edges of the screen.
-- Copyright : (c) 2008 Brent Yorgey
-- License ... | xmonad/xmonad-contrib | XMonad/Layout/Gaps.hs | bsd-3-clause | 8,489 | 0 | 15 | 2,091 | 1,432 | 795 | 637 | 82 | 4 |
{-# LANGUAGE FlexibleContexts #-}
module Ifrit.Framework where
import Control.Failure
data Message = TitledMessage { title :: String
, message :: String }
deriving (Eq, Show)
class Sendable a where
send :: a -> Message -> IO Bool
class Receivable a where... | frio/ifrit | src/hs/Ifrit/Framework.hs | bsd-3-clause | 349 | 0 | 9 | 114 | 90 | 49 | 41 | 10 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TupleSections #-}
module Main
( main
) where
import Jerimum.Storage.LMDB.Device as D
import Jerimum.Storage.LMDB.Segment as S
import qualified Jerimum.Tests.Unit.PostgreSQL.CodecTest as PostgreS... | dgvncsz0f/nws | test/unit-tests.hs | bsd-3-clause | 3,067 | 0 | 11 | 589 | 716 | 426 | 290 | 74 | 1 |
-------------------------------------------------------------------------------
-- |
-- Module : Network.MacAddress
-- Copyright : (c) 2009, Tom Lokhorst
-- License : BSD3
--
-- Maintainer : Tom Lokhorst <tom@lokhorst.eu>
-- Stability : Experimental
--
-- A 'sort of' reusable module for mac addresses.
--
... | tomlokhorst/wol | src/Network/MacAddress.hs | bsd-3-clause | 1,390 | 0 | 18 | 317 | 364 | 199 | 165 | 23 | 2 |
-- |
-- Module : Data.OI.Force
-- Copyright : (c) Nobuo Yamashita 2012-2016
-- License : BSD3
-- Author : Nobuo Yamashita
-- Maintainer : nobsun@sampou.org
-- Stability : experimental
--
module Data.OI.Force (
-- * Forcing utility functions
force
,force'
,forceSeq
) where
import Control.P... | nobsun/oi | src/Data/OI/Force.hs | bsd-3-clause | 551 | 0 | 9 | 128 | 140 | 86 | 54 | 11 | 1 |
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
{-# LANGUAGE OverloadedStrings #-}
module NLP.Verba.Parser (
readInflections,
readDictEntries,
readInflectionsFile,
readDictEntriesFile
) where
import Control.Applicative ((<|>))
import Control.Monad (void)
import Data.Char (digitToIn... | micxjo/verba | src/NLP/Verba/Parser.hs | bsd-3-clause | 14,175 | 0 | 10 | 3,168 | 4,236 | 2,233 | 2,003 | 432 | 2 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
-- | Transition map with a hash.
module Data.DAWG.Trans.Hashed
( Hashed (..)
) where
import Prelude hiding (lookup)
import Control.Applicative ((<$>), (<*>))
import Data.DAWG.Util (combine)
import Data.Binary (Bin... | kawu/dawg | src/Data/DAWG/Trans/Hashed.hs | bsd-2-clause | 1,645 | 0 | 11 | 441 | 472 | 260 | 212 | 47 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
module Numeric.Units.Dimensional.Parsing.Units2
(
Parser
, ParsedUnitName
, topLevel
, lexeme
, symbol
, quantity
, unitName
, atomicUnitName
, decimal
, superscriptInteger
, superscriptDecimal
)
where
import Data.Text (Text, pack)
import Data.Void (Void)... | dmcclean/dimensional-parsing | src/Numeric/Units/Dimensional/Parsing/Units2.hs | bsd-3-clause | 4,494 | 0 | 25 | 1,060 | 1,321 | 692 | 629 | 113 | 2 |
{-# LANGUAGE FlexibleContexts #-}
module Distribution.Parsec.Class (
Parsec(..),
-- * Warnings
parsecWarning,
-- * Utilities
parsecTestedWith,
parsecToken,
parsecToken',
parsecFilePath,
parsecQuoted,
parsecMaybeQuoted,
parsecCommaList,
parsecOptCommaList,
) where
imp... | themoritz/cabal | Cabal/Distribution/Parsec/Class.hs | bsd-3-clause | 17,757 | 0 | 18 | 5,545 | 4,648 | 2,406 | 2,242 | 378 | 2 |
{-# LANGUAGE CPP #-}
-- | Groups black-box tests of cabal-install and configures them to test
-- the correct binary.
--
-- This file should do nothing but import tests from other modules and run
-- them with the path to the correct cabal-install binary.
module Main
where
-- Modules from Cabal.
import Distributi... | sopvop/cabal | cabal-install/tests/IntegrationTests.hs | bsd-3-clause | 13,713 | 0 | 16 | 2,859 | 2,674 | 1,423 | 1,251 | 196 | 4 |
-- (c) The University of Glasgow 2006
{-# LANGUAGE CPP, DeriveDataTypeable #-}
-- | Module for (a) type kinds and (b) type coercions,
-- as used in System FC. See 'CoreSyn.Expr' for
-- more on System FC and how coercions fit into it.
--
module Coercion (
-- * Main data type
Coercion(..), Var, CoVar,
... | christiaanb/ghc | compiler/types/Coercion.hs | bsd-3-clause | 80,254 | 1,008 | 12 | 21,193 | 11,664 | 7,222 | 4,442 | 938 | 16 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section{SetLevels}
***************************
Overview
***************************
1. We attach binding levels to Core bindings, in preparation for floating
outwards (@FloatOut@).
2. We also let... | vTurbine/ghc | compiler/simplCore/SetLevels.hs | bsd-3-clause | 48,953 | 0 | 21 | 14,305 | 7,846 | 4,170 | 3,676 | -1 | -1 |
module Data.Ranged (
module Data.Ranged.Boundaries,
module Data.Ranged.Ranges,
module Data.Ranged.RangedSet
) where
import Data.Ranged.Boundaries
import Data.Ranged.Ranges
import Data.Ranged.RangedSet
| beni55/alex | src/Data/Ranged.hs | bsd-3-clause | 211 | 0 | 5 | 27 | 47 | 32 | 15 | 7 | 0 |
{-# LANGUAGE Trustworthy #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.STRef
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability ... | frantisekfarka/ghc-dsi | libraries/base/Data/STRef.hs | bsd-3-clause | 1,666 | 0 | 10 | 368 | 206 | 122 | 84 | 18 | 1 |
module IdIn5 where
{-To rename an identifier name, stop the cursor at any occurrence of the name,
then input the new name in the mini-buffer, after that, select the 'rename'
command from the 'Refactor' menu.-}
--Any value variable name declared in this module can be renamed.
--Rename top level 'x' to 'y' will f... | kmate/HaRe | test/testdata/Renaming/IdIn5_TokOut.hs | bsd-3-clause | 388 | 0 | 6 | 78 | 61 | 36 | 25 | 6 | 1 |
-- test tryPutMVar
import Control.Concurrent
main = do
m <- newMVar ()
r <- tryPutMVar m ()
print r
takeMVar m
r <- tryPutMVar m ()
print r
| siddhanathan/ghc | testsuite/tests/concurrent/should_run/conc028.hs | bsd-3-clause | 154 | 0 | 9 | 42 | 70 | 30 | 40 | 8 | 1 |
module Noise (
value
) where
import Data.Bits
import Data.Int
-- 2D integer noise function
inf :: Int32 -> Int32 -> Double
inf x y = 1.0 - (fromIntegral j / 1073741824.0)
where
m = x + y*57
n = (shiftR m 13) `xor` m
j = (n * (n*n*15731 + 789221) + 1376312589) .&. 0x7fff... | fmenozzi/functional-programming | Noise.hs | mit | 1,513 | 0 | 14 | 541 | 673 | 360 | 313 | 28 | 2 |
module Main where
import Graphics.Rendering.Cairo
import Proxy.PreProcessing.RowBased
import Proxy.Types.Game
myDraw :: Render ()
myDraw = do
setSourceRGB 0 0 0
arc 200 200 100 0 (2*pi)
stroke
main :: IO ()
main = do
mapRaw <- readFile "../../MapData/Map-Midnight Lagoon"
let mapD = map (map walkable) $ map... | mapinguari/SC_HS_Proxy | src/hello.hs | mit | 2,234 | 0 | 17 | 702 | 865 | 429 | 436 | 60 | 2 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Yesod.Auth.OAuth
( authOAuth
, oauthUrl
, authTwitter
, authTwitterUsingUserId
, twitterUrl
... | yesodweb/yesod | yesod-auth-oauth/Yesod/Auth/OAuth.hs | mit | 6,653 | 0 | 17 | 2,230 | 1,265 | 674 | 591 | 136 | 5 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveGeneric #-}
module RWPAS.Direction
( Direction4(..)
, Direction8(..)
, deltaToDirection8
, direction4ToDelta
, direction8ToDelta
, direction4To8
, directions8 )
where
import Data.Data
import Data.SafeCopy
import GH... | Noeda/rwpas | src/RWPAS/Direction.hs | mit | 2,693 | 0 | 10 | 540 | 926 | 483 | 443 | 85 | 1 |
{-|
Various utility functions
-}
module Web.ZeroBin.Utils (
toWeb
, makePassword
) where
import Crypto.Random.Entropy (getEntropy)
import Data.ByteString (ByteString)
import Data.ByteString.Base64 (encode)
import Data.ByteString.Char8 (unpack)
-- | Encodes to base64 and drops padding '='.
toWeb :: ByteString -- ^ ... | zalora/zerobin | src/Web/ZeroBin/Utils.hs | mit | 644 | 0 | 8 | 130 | 123 | 75 | 48 | 13 | 1 |
-- This is some random code I found on the internet
-- data JSONNumberOperation = Add Path Int
-- deriving Show
-- data JSONStringOperation = StringInsert Path Position Text
-- | StringDelete Path Position Text
-- deriving Show
-- data JSONArr... | thomasjm/ot.hs | src/Control/OperationalTransformation/Misc.hs | mit | 968 | 0 | 2 | 381 | 20 | 19 | 1 | 1 | 0 |
{- Materials module. Exports all modules in Materials. -}
module Graphics.ThreeJs.Materials
(
module Graphics.ThreeJs.Materials.MeshBasicMaterial
) where
import Graphics.ThreeJs.Materials.MeshBasicMaterial
| sanghakchun/three-js-haste | src/Graphics/ThreeJs/Materials.hs | mit | 216 | 0 | 5 | 28 | 25 | 18 | 7 | 4 | 0 |
import Text.Printf
import Data.List
{--
data Line = Line {
a :: Double,
b :: Double,
c :: Double
}
lineFromTwoPoint (x1, y1) (x2, y2) =
Line {a = y1-y2, b = x2-x1, c = (y2-y1)*x1-(x2-x1)*y1}
pointDistFromLine (x, y) (Line a b c) =
abs (a*x + b*y + c) / sqrt (a*a + b*b)
maximiumPoint ps (Line a b c) (x,... | atupal/oj | hackerrank/practices/function_programming/recursion/convex_hull_fp.hs | mit | 2,966 | 1 | 26 | 767 | 990 | 545 | 445 | 33 | 2 |
power :: (Eq a, Num a, Ord a) => a -> a -> a
power _ 0 = 1
power a n
| n < 0 = error "only non-negative number"
| otherwise = a * power a (n - 1)
-- power 2 3
-- = { applying power }
-- 2 * power 2 2
-- = { applying power }
-- 2 * 2 * power 2 1
-- = { applying power }
-- 2 * 2 * 2 * power 2 0
-- = { ap... | fabioyamate/programming-in-haskell | ch06/ex01.hs | mit | 463 | 0 | 9 | 157 | 153 | 83 | 70 | 9 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TemplateHaskell #-}
module Circuit.Format.Acirc
( Circuit.Format.Acirc.read
, Circuit.Format.Acirc.write
, Circuit.Format.Acirc.show
, writeWithTests
, readWithTests
, showWithTests
, parse
) where
import Circuit
import Circ... | spaceships/circuit-synthesis | src/Circuit/Format/Acirc.hs | mit | 7,900 | 0 | 23 | 2,186 | 2,902 | 1,447 | 1,455 | -1 | -1 |
fact 0 = 1
fact 1 = 1
fact n = n * fact (n-1) | MaxHorstmann/myfirsthaskell | factorial.hs | mit | 47 | 0 | 8 | 16 | 39 | 19 | 20 | 3 | 1 |
module Watcher.Arguments (getArguments) where
import System.Directory
import System.Environment
getArguments :: IO [String]
getArguments = do
cmdArgs <- getArgs
if null cmdArgs
then getConfigFile
else return cmdArgs
getConfigFile :: IO [String]
getConfigFile = do
fExist <- doesFileExist... | Miguel-Fontes/hs-file-watcher | src/Watcher/Arguments.hs | mit | 982 | 0 | 13 | 214 | 357 | 183 | 174 | 25 | 2 |
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI,
UnliftedFFITypes, DeriveDataTypeable, MagicHash
#-}
{- | GHCJS has two types of threads. Regular, asynchronous threads are
started with `h$run`, are managed by the scheduler and run in the
background. `h$run` returns immediately.
Sync... | tavisrudd/ghcjs-base | GHCJS/Concurrent.hs | mit | 3,575 | 8 | 10 | 862 | 391 | 218 | 173 | 41 | 2 |
{-# LANGUAGE TemplateHaskell #-}
module Language.Paradocs.Rule where
import Control.Lens
import qualified Data.HashMap.Strict as HashMap
import qualified Language.Paradocs.File as File
import qualified Language.Paradocs.RuleName as RuleName
import qualified Language.Paradoc... | pasberth/paradocs | Language/Paradocs/Rule.hs | mit | 941 | 0 | 10 | 275 | 194 | 124 | 70 | 27 | 1 |
module Main where
import Control.DeepSeq (NFData(..))
import Criterion.Main
import Data.Pocketmine.Block
instance NFData BlockType
decodingN :: Int -> [BlockType]
decodingN i = take i $ map toEnum (cycle [0..255])
isUnknown (Unknown _) = True
isUnknown _ = False
main = defaultMain [
bgroup "decode" [ bench "init... | greyson/HasCraft | test/BlockBenchmark.hs | gpl-2.0 | 436 | 0 | 12 | 105 | 157 | 83 | 74 | 12 | 1 |
-- Copyright (C) 2009 Ganesh Sittampalam
--
-- BSD3
{-# LANGUAGE CPP, GADTs, PatternGuards, TypeOperators, NoMonomorphismRestriction, ViewPatterns, UndecidableInstances #-}
module Darcs.Patch.Rebase
( Rebasing(..), RebaseItem(..), RebaseName(..), RebaseFixup(..)
, simplifyPush, simplifyPushes
, mkSuspende... | DavidAlphaFox/darcs | src/Darcs/Patch/Rebase.hs | gpl-2.0 | 26,538 | 0 | 17 | 5,886 | 7,811 | 4,022 | 3,789 | -1 | -1 |
import XMLTree
-- PREGUNTA 2 --
tags:: XMLTree -> [Tag]
tags (Fulla t _) = [t]
tags (Node t _ (x:xs)) = (t:(concat (map tags (x:xs))))
-- PREGUNTA 3 --
type Condicio = (Atribut, (Valor -> Bool))
selectFW:: [Tag] -> (Tag,Condicio) -> XMLTree -> XMLTree
selectFW l c a = (Node "resultat" (LParells []) (selectFW0 l ... | marccomino/Small_Programs_in_Haskell | Practica1/XMLops.hs | gpl-3.0 | 1,908 | 12 | 14 | 495 | 1,176 | 632 | 544 | 45 | 3 |
{-
This file is part of HNH.
HNH 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 of the License, or
(at your option) any later version.
HNH is distributed in the hope that ... | fferreira/hnh | TransformMonad.hs | gpl-3.0 | 2,148 | 0 | 16 | 579 | 628 | 331 | 297 | 40 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Utils.Yukari.Settings where
import Control.Lens
import Data.List (isPrefixOf)
import Utils.Yukari.Types
data YukariSettings = YukariSettings { _siteSettings :: SiteSettings
, _spendSettings :: SpendSettings
... | Fuuzetsu/yukari | src/Utils/Yukari/Settings.hs | gpl-3.0 | 3,942 | 0 | 10 | 1,754 | 588 | 356 | 232 | 72 | 2 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables, DataKinds #-}
module Modernator.App where
import Modernator.Types
import Modernator.Commands
import Modernator.API
import Network.Wai (Application)
import Data.Acid
import Servant
import Servant.Server.Experimental.Auth
import Servant.Server.Experimental.Auth.Cookie... | mojotech/modernator-haskell | src/Modernator/App.hs | gpl-3.0 | 2,930 | 0 | 17 | 509 | 744 | 387 | 357 | 53 | 2 |
{-# LANGUAGE CPP #-}
module TickerTimeSerie (
TimeSerie (..)
, DataItem (..)
, TimeItem (..)
, mkSineTimeSerie
, showTime
) where
#ifdef FAY
import Prelude
#endif
-- | Data structure for the time serie data. The time serie will be
-- rendered "as is", it's the server's responsibility to ensure the
-- form... | SneakingCat/fay-ticker | src/TickerTimeSerie.hs | gpl-3.0 | 1,638 | 0 | 13 | 492 | 500 | 275 | 225 | 40 | 1 |
module Hadolint.Rule.DL3037 (rule) where
import qualified Data.Text as Text
import Hadolint.Rule
import qualified Hadolint.Shell as Shell
import Language.Docker.Syntax
rule :: Rule Shell.ParsedShell
rule = simpleRule code severity message check
where
code = "DL3037"
severity = DLWarningC
message = "Spec... | lukasmartinelli/hadolint | src/Hadolint/Rule/DL3037.hs | gpl-3.0 | 1,017 | 0 | 17 | 203 | 290 | 161 | 129 | 22 | 2 |
{-# LANGUAGE OverloadedStrings #-}
-- Module : Main
-- Copyright : (c) 2014-2015 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 file or
-- ... | brendanhay/semver | bench/Main.hs | mpl-2.0 | 5,368 | 0 | 16 | 2,376 | 962 | 498 | 464 | 120 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-cloudsearch/gen/Network/Google/Resource/CloudSearch/Indexing/Datasources/Items/Push.hs | mpl-2.0 | 5,821 | 0 | 17 | 1,256 | 791 | 464 | 327 | 114 | 1 |
module Terrain where
-- | only one primary terrain
data PrimaryTerrain = Clear
| NOGO1 -- no-go for wheeled
| NOGO2 -- no-go for wheeled & tracked
| NOGO3 -- no-go for vehicles & dismounts
| Rough1
| Rough2
... | nbrk/datmap2html | Terrain.hs | unlicense | 2,506 | 0 | 13 | 1,019 | 540 | 288 | 252 | 61 | 9 |
module Kornel.LineHandler.Money
( setup
) where
import qualified Data.Attoparsec.Text as P
import Data.Char (isSpace)
import qualified Data.Map as Map
import Kornel.Common
import Kornel.LineHandler
import qualified Network.HTTP.Client.TLS as HTTPS
impor... | michalrus/kornel | src/Kornel/LineHandler/Money.hs | apache-2.0 | 1,941 | 0 | 20 | 549 | 624 | 333 | 291 | -1 | -1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
{-
Copyright 2017 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 the License.
You may obtain a copy of the License ... | parvmor/codeworld | funblocks-server/src/Funblocks.hs | apache-2.0 | 11,771 | 0 | 23 | 2,640 | 3,491 | 1,663 | 1,828 | 225 | 6 |
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeFamilies #-}
-----------------------------------------------------------------------------
-- |
-- Module : System.Log.Logger.Handler
-- Copyright : (C) 2015 Flowbox
-- License : Apache-2.0
-- Maintainer : Wojciech Daniło <wojciech.danilo@gmail.com... | wdanilo/haskell-logger | src/System/Log/Logger/Priority.hs | apache-2.0 | 2,269 | 0 | 11 | 360 | 463 | 261 | 202 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeFamilies #-}
#ifndef HLINT
{-# LANGUAGE ViewPatterns #-}
#endif
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE DeriveTraversable #-}
module Concurrent.Internal.Counted where
import Control.Applicative
import Control.Monad
import Control.Monad.Zip
import Control.Monad.Fix
import Dat... | ekmett/concurrent | src/Concurrent/Internal/Counted.hs | bsd-2-clause | 2,089 | 0 | 16 | 447 | 852 | 442 | 410 | 50 | 0 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANG... | sjakobi/stack | src/Stack/Build/Cache.hs | bsd-3-clause | 15,483 | 0 | 20 | 4,171 | 3,492 | 1,806 | 1,686 | 281 | 3 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
module Control.Monad.Trans.Control
( -- * Introduction
-- $intro
-- ** Nesting calls to the base monad
-- $nesting... | jwiegley/monad-base-control | Control/Monad/Trans/Control.hs | bsd-3-clause | 24,888 | 0 | 15 | 5,945 | 4,516 | 2,494 | 2,022 | 282 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
module Tinfoil.Random.Internal(
explodeBS
, readBitsLE
, dropMS
, segmentsOf
) where
import Data.Bits
import Data.ByteString (ByteString)
import qualified Data.ByteString as BS
impo... | ambiata/tinfoil | src/Tinfoil/Random/Internal.hs | bsd-3-clause | 798 | 0 | 10 | 191 | 274 | 153 | 121 | 25 | 2 |
{-# LANGUAGE CPP #-}
module GhcPkgSpec where
import Language.Haskell.GhcMod.GhcPkg
import Language.Haskell.GhcMod.Types
import System.Directory
import System.FilePath ((</>))
import Test.Hspec
spec :: Spec
spec = do
describe "getPackageDbStack" $ do
#if !MIN_VERSION_Cabal(1,18,0)
it "does not include a s... | darthdeus/ghc-mod-ng | test/GhcPkgSpec.hs | bsd-3-clause | 864 | 0 | 15 | 195 | 163 | 87 | 76 | 19 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module: $HEADER$
-- Description: Pronounceable passwords similar to what pwgen does.
-- Copyright: (c) 2013 Peter Trsko
-- License: BSD3
--
-- Maintainer: peter.trsko@gmail.com
-- Stability: experimental
-- Portability: non-portable (OverloadedStrings)
--
... | trskop/hpwgen | src/Text/Pwgen/Pronounceable.hs | bsd-3-clause | 10,752 | 0 | 19 | 2,910 | 2,664 | 1,483 | 1,181 | 185 | 17 |
{-# LANGUAGE CPP #-}
#ifdef __GLASGOW_HASKELL__
{-# LANGUAGE DeriveDataTypeable #-}
# if __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE DeriveGeneric #-}
# endif
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702
{-# LANGUAGE Trustworthy #-}
#endif
#endif
--------------------------------------------------------... | treeowl/bound | src/Bound/Name.hs | bsd-3-clause | 8,193 | 0 | 12 | 1,485 | 2,010 | 1,072 | 938 | 131 | 2 |
module Main where
main :: IO ()
main = do
putStrLn "Here we do the DEMO..."
| qrilka/kontiki-demo | src/Main.hs | bsd-3-clause | 81 | 0 | 7 | 21 | 25 | 13 | 12 | 4 | 1 |
-- ------------------------------------------------------------
{- |
Module : Yuuko.Text.XML.HXT.DOM.Unicode
Copyright : Copyright (C) 2005-2008 Uwe Schmidt
License : MIT
Maintainer : Uwe Schmidt (uwe@fh-wedel.de)
Stability : experimental
Portability: portable
Unicode and UTF-8 Conversi... | nfjinjing/yuuko | src/Yuuko/Text/XML/HXT/DOM/Unicode.hs | bsd-3-clause | 31,323 | 392 | 13 | 7,795 | 7,498 | 4,573 | 2,925 | 706 | 3 |
{-# LANGUAGE Safe #-}
module Language.SexpGrammar.Generic
( -- * GHC.Generics helpers
with
, match
, Coproduct (..)
) where
import Data.InvertibleGrammar.Generic
| esmolanka/sexp-grammar | sexp-grammar/src/Language/SexpGrammar/Generic.hs | bsd-3-clause | 176 | 0 | 5 | 35 | 30 | 21 | 9 | 7 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
-- | Description: servers for Servant APIs.
m... | anchor/servant-route | lib/Servant/Route.hs | bsd-3-clause | 5,394 | 0 | 15 | 1,211 | 1,342 | 730 | 612 | 100 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.