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 #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module OSM
( NodeID(..) , WayID(..), RelationID(..),
RelationRole(..), ElementID(..), RelationMember(..),
TagKey(..), Tags(..),
Coordinates(..),
Element(..), Node, Way, Relation,
node, way, relation,
coordinates, n... | kolen/ptwatch | src/OSM.hs | bsd-2-clause | 2,449 | 0 | 10 | 457 | 770 | 449 | 321 | 59 | 1 |
import System.Nemesis
main = run $ do
clean
[ "**/*.hi"
, "**/*.o"
, "manifest"
]
task "dist" $ do
sh "cabal clean"
sh "cabal configure"
sh "cabal sdist"
task "i" (sh "ghci -isrc src/System/Nemesis.hs")
task "manifest" $ do
sh "find . | grep 'hs$' > manifest"
| nfjinjing/nemesis | test/N1.hs | bsd-3-clause | 305 | 0 | 11 | 91 | 88 | 38 | 50 | 13 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ExplicitNamespaces #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}... | ocharles/hs-quake-3 | RenderGraph.hs | bsd-3-clause | 7,420 | 4 | 18 | 1,725 | 2,486 | 1,321 | 1,165 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables, OverloadedStrings #-}
import Control.Applicative
import qualified Data.ByteString as BS
import Data.X509
import Data.X509.File
import System.Environment
import Network
import HandleLike
import TlsClient
import Client
(+++) :: BS.ByteString -> BS.ByteString -> BS.ByteString
(+++) = B... | YoshikuniJujo/forest | subprojects/https-oadrPoll/oadrPoll.hs | bsd-3-clause | 808 | 6 | 10 | 110 | 223 | 118 | 105 | 25 | 1 |
-- Haskell98!
-- | Monadic and General Iteratees:
-- incremental input parsers, processors and transformers
--
-- The running example, parts 1 and 2
-- Part 1 is reading the headers, the sequence of lines terminated by an
-- empty line. Each line is terminated by CR, LF, or CRLF.
-- We should return the headers in ord... | suhailshergill/liboleg | System/IterateeM.hs | bsd-3-clause | 28,511 | 0 | 19 | 6,548 | 6,093 | 3,133 | 2,960 | 339 | 7 |
-----------------------------------------------------------------------------
-- |
-- Module : transposecsv
-- Copyright : (c) Keith Sheppard 2009-2010
-- License : BSD3
-- Maintainer : keithshep@gmail.com
-- Stability : experimental
-- Portability : portable
--
-- Transpose the CSV file
--
--------... | keithshep/txt-sushi | transposecsv.hs | bsd-3-clause | 907 | 0 | 17 | 227 | 126 | 69 | 57 | 14 | 2 |
module TestMainGen where
import Control.Monad (filterM)
import Data.String.Utils (join, startswith, replace)
import System.Directory
import System.Environment (getArgs)
import System.FilePath.Posix
getVisibleDirectoryContents :: FilePath -> IO [FilePath]
getVisibleDirectoryContents fp = getDirectoryContents fp >>= re... | dyreshark/learn-haskell | TestMainGen.hs | bsd-3-clause | 2,432 | 0 | 11 | 491 | 696 | 357 | 339 | 51 | 2 |
module Utils where
import Protolude
(<&>) :: Functor f => f a -> (a -> b) -> f b
(<&>) = flip (<$>)
(<<) :: Monad m => m a -> m b -> m a
(<<) = flip (>>)
uncurry3 :: (a -> b -> c -> d) -> (a,b,c) -> d
uncurry3 f (x,y,z) = f x y z
| uwap/MyQA | src/Utils.hs | bsd-3-clause | 234 | 0 | 9 | 65 | 160 | 89 | 71 | 8 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.TextureCubeMap
-- Copyright : (c) Sven Panne 2013
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
... | mfpi/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/TextureCubeMap.hs | bsd-3-clause | 1,102 | 0 | 4 | 134 | 80 | 61 | 19 | 15 | 0 |
module Language.Interpreter.StdLib.MatrixOps
( addMatrixStdLib
) where
import Control.Monad.Except ( throwError )
import Gfx.Context ( move
, rotate
, scale
... | rumblesan/improviz | src/Language/Interpreter/StdLib/MatrixOps.hs | bsd-3-clause | 1,319 | 0 | 16 | 587 | 300 | 161 | 139 | 23 | 6 |
{-# LANGUAGE OverloadedStrings, FlexibleContexts, GeneralizedNewtypeDeriving #-}
module IPDetector where
import qualified Data.ByteString as BS
import Control.Monad.IO.Class
( MonadIO
, liftIO
)
import Control.Applicative (Applicative)
import Data.Text (Text, pack)
import Safe (headMay)
import Data.IP (IPv... | tekerson/aws-dyndns | src/IPDetector.hs | bsd-3-clause | 1,740 | 0 | 13 | 346 | 462 | 254 | 208 | 46 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module GeoService.Model.City.Datum where
import GeoService.Model.City
import qualified Database.RethinkDB.NoClash
import qualified Database.RethinkDB.Datum as Datum
import Database.RethinkDB.Datum hiding (LonLat(..))
import Control.Monad
import Control.Applicative
import qualified Da... | Romer4ig/geodb | src/GeoService/Model/City/Datum.hs | bsd-3-clause | 1,938 | 0 | 14 | 812 | 451 | 245 | 206 | 34 | 0 |
import Data.Bits (xor)
import Data.Array.Unboxed
import Data.Array.ST
import Control.Monad
import Control.Monad.ST
import Data.List (sort, nub)
grundy :: Int -> UArray Int Int
grundy n = runSTUArray $ do
ret <- newArray (0, n) 0
forM_ [1 .. n] $ \i -> do
sgs <- forM [1 .. (isqrt i)] $ \j -> readArray ... | foreverbell/project-euler-solutions | src/310.hs | bsd-3-clause | 1,266 | 0 | 18 | 479 | 594 | 312 | 282 | 39 | 2 |
module Web.Heroku (
dbConnParams
, parseDatabaseUrl
) where
import System.Environment
import Network.URI
import Data.Text
import Prelude
import Web.Heroku.Postgres (dbConnParams, parseDatabaseUrl)
| thoughtbot/haskell-heroku | Web/Heroku.hs | bsd-3-clause | 208 | 0 | 5 | 31 | 46 | 29 | 17 | 8 | 0 |
{-# language CPP #-}
-- | = Name
--
-- VK_KHR_shader_float16_int8 - device extension
--
-- == VK_KHR_shader_float16_int8
--
-- [__Name String__]
-- @VK_KHR_shader_float16_int8@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
-- 83
--
-- [__Revision__]
-- 1
--
-- [_... | expipiplus1/vulkan | src/Vulkan/Extensions/VK_KHR_shader_float16_int8.hs | bsd-3-clause | 6,676 | 0 | 8 | 1,226 | 318 | 245 | 73 | -1 | -1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.SGIX.DepthTexture
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
-... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/SGIX/DepthTexture.hs | bsd-3-clause | 716 | 0 | 4 | 84 | 43 | 35 | 8 | 5 | 0 |
{-# LANGUAGE RankNTypes, GADTs #-}
module Language.Forvie.Grammar.ActiveRHS
( RHS (..)
, Grammar
, token
)
where
import Control.Applicative
import Control.Monad (ap)
data RHS nt tok v a where
Return :: a -> RHS nt tok v a
Choice :: RHS nt tok v a -> RHS nt... | bobatkey/Forvie | src/Language/Forvie/Grammar/ActiveRHS.hs | bsd-3-clause | 1,268 | 0 | 10 | 463 | 557 | 287 | 270 | 30 | 2 |
module FixIt where
import Data.Function (fix)
-- | Implement foldr and reverse with fix (4 kyu)
-- | Link: https://biturl.io/FixIt
-- | My original solution
type Fold a b = (a -> b -> b) -> b -> [a] -> b
foldrFix :: Fold a b -> Fold a b
foldrFix _ _ acc [] = acc
foldrFix g f acc (x:xs) = f x (g f acc xs)
foldr' ::... | Eugleo/Code-Wars | src/haskell-kata/FixIt.hs | bsd-3-clause | 499 | 0 | 8 | 116 | 236 | 129 | 107 | 13 | 1 |
module Main (main) where
import Criterion.Main
import qualified Data.Vector as V
import qualified Sort as Subject
main :: IO ()
main = defaultMain
[ env (pure (V.reverse (V.generate 48 id))) (\ ~vec ->
bgroup "Array of 48 elements, reversed"
[ bench "Quicksort"
... | quchen/qa-playground | benchmark/Main.hs | bsd-3-clause | 1,006 | 0 | 15 | 410 | 264 | 138 | 126 | 24 | 1 |
{- |
Module : ./Common/Lib/State.hs
Description : State type from Control.Monad.State but no class MonadState
Copyright : C. Maeder and Uni Bremen 2002-2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : experimental
Portability : portable
State type ... | spechub/Hets | Common/Lib/State.hs | gpl-2.0 | 1,593 | 0 | 12 | 406 | 536 | 284 | 252 | 31 | 1 |
{- |
Module : ./TPTP/Prover/Satallax.hs
Description : Interface for the Satallax Prover.
Copyright : (c) Eugen Kuksa University of Magdeburg 2017
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Eugen Kuksa <kuksa@iks.cs.ovgu.de>
Stability : provisional
Portability : non-portable (imports L... | spechub/Hets | TPTP/Prover/Satallax.hs | gpl-2.0 | 2,343 | 1 | 12 | 544 | 370 | 209 | 161 | 42 | 1 |
{-# LANGUAGE DeriveDataTypeable, CPP, MultiParamTypeClasses,
FlexibleContexts, ScopedTypeVariables, PatternGuards,
ViewPatterns #-}
{-
Copyright (C) 2006-2015 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lic... | royopa/pandoc | src/Text/Pandoc/Shared.hs | gpl-2.0 | 38,908 | 688 | 16 | 12,172 | 10,227 | 5,508 | 4,719 | 722 | 21 |
module Utils.Runner
( runAgentSFTimeSteps
, runAgentMonad
, runAgentMonad_
, runAgentMonadDefaultConst
, runSugEnvSteps
, emptyEnvironment
) where
import Data.Maybe
import Control.Monad.Random
import Control.Monad.Reader
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import Sug... | thalerjonathan/phd | thesis/code/sugarscape/src/test/Utils/Runner.hs | gpl-3.0 | 4,865 | 0 | 17 | 1,499 | 1,030 | 568 | 462 | 93 | 2 |
{-# OPTIONS_GHC -fglasgow-exts #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Morphism.Postpro
-- Copyright : (C) 2008 Edward Kmett
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability ... | urska19/MFP---Samodejno-racunanje-dvosmernih-preslikav | Control/Morphism/Postpro.hs | apache-2.0 | 1,663 | 4 | 16 | 334 | 539 | 285 | 254 | -1 | -1 |
module Bench.Pos.Criterion.FollowTheSatoshiBench
( runBenchmark
) where
import Criterion.Main (Benchmark, bench, defaultConfig,
defaultMainWith, env, whnf)
import Criterion.Types (Config (..))
import Formatting (int, sformat, (%))
import Test.QuickCh... | input-output-hk/cardano-sl | lib/bench/Bench/Pos/Criterion/FollowTheSatoshiBench.hs | apache-2.0 | 1,562 | 0 | 10 | 349 | 377 | 221 | 156 | 28 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
module Snap.Snaplet.Hdbc.Types where
import Control.Concurrent.MVar
import Control.Monad.CatchIO
import Control.Monad.State
import Database.HDBC (IConnection())
import qualified Database.HDBC as H... | soenkehahn/snaplet-hdbc | src/Snap/Snaplet/Hdbc/Types.hs | bsd-3-clause | 1,235 | 0 | 14 | 379 | 343 | 179 | 164 | 32 | 0 |
-- | Common code for DAG-based algebra optimizers.
module Database.DSH.Common.Opt
( module Database.Algebra.Rewrite.Match
, module Database.Algebra.Rewrite.PatternConstruction
, module Database.Algebra.Rewrite.Properties
, module Database.Algebra.Rewrite.Rule
, module Database.Algebra.Rewrite.Traver... | ulricha/dsh | src/Database/DSH/Common/Opt.hs | bsd-3-clause | 2,886 | 0 | 12 | 659 | 644 | 364 | 280 | 63 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
#ifndef MIN_VERSION_mtl
#define MIN_VERSION_mtl(x,y,z) 0
#endif
-----------------------------------------------------------------------------
-- |
-- Module ... | fumieval/machines | src/Data/Machine/Plan.hs | bsd-3-clause | 5,690 | 0 | 16 | 1,423 | 1,679 | 918 | 761 | 104 | 1 |
module SimpleIn1 where
f x@[] = case x of
[] -> error "head:empty list"
(x:xs) -> x
g :: [Int] -> Int
g (x:xs) = x + head ( tail xs)
| kmate/HaRe | old/testing/simplifyExpr/SimpleIn1.hs | bsd-3-clause | 166 | 0 | 9 | 64 | 85 | 45 | 40 | 6 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Stack.Ghci.Script
( GhciScript
, ModuleName
, cmdAdd
, cmdAddFile
, cmdCdGhc
, cmdModule
, scriptToLazyByteString
, scriptToBuilder
, scriptToFile
) where
import Control.Applicative
import Data.ByteString.Lazy (ByteString)
import ... | mrkkrp/stack | src/Stack/Ghci/Script.hs | bsd-3-clause | 3,076 | 0 | 16 | 689 | 882 | 463 | 419 | 77 | 2 |
import qualified Data.Vector as U
import Data.Bits
main = print . U.product . U.map (*2) . U.map (`shiftL` 2) $ U.replicate (100000000 :: Int) (5::Int)
| thomie/vector | old-testsuite/microsuite/product.hs | bsd-3-clause | 153 | 1 | 9 | 26 | 79 | 44 | 35 | 3 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section{Haskell abstract syntax definition}
This module glues together the pieces of the Haskell abstract syntax,
which is declared in the various \tr{Hs*} modules. This module,
therefore, is almost nothing but re-export... | acowley/ghc | compiler/hsSyn/HsSyn.hs | bsd-3-clause | 4,730 | 0 | 21 | 1,467 | 696 | 400 | 296 | 71 | 1 |
{-# LANGUAGE ImplicitParams, RankNTypes #-}
module ImplicitParams where
data X = X
c :: (?x :: X) => X
c = ?x
d :: (?x :: X, ?y :: X) => (X, X)
d = (?x, ?y)
f :: ((?x :: X) => a) -> a
f a = let ?x = X in a
| DavidAlphaFox/ghc | utils/haddock/html-test/src/ImplicitParams.hs | bsd-3-clause | 210 | 0 | 8 | 59 | 108 | 66 | 42 | 9 | 1 |
---------------------------------------------------------------------------------------------------
-- AUTHOR: Andrew Michaud - https://andrewmichaud.com --
-- FILE: xmonad.hs --
-- PURPOSE: XMonad c... | andrewmichaud/config | archive/xmonad/xmonad.hs | isc | 12,559 | 16 | 15 | 3,316 | 2,546 | 1,445 | 1,101 | 154 | 2 |
module Board where
import Utils
data Tile = Player
| Empty
| Wall
| Finish
deriving (Eq)
newtype Board = Board { tiles :: [[Tile]] }
-- Getting the width of a board
boardWidth :: Board -> Int
boardWidth = length . head . tiles
-- Getting the height of a board
boardHeight :: Board ->... | crockeo/maze | src/Board.hs | mit | 885 | 0 | 9 | 205 | 245 | 135 | 110 | 26 | 1 |
{-# LANGUAGE OverloadedStrings, DeriveGeneric #-}
import Web.Spock.Simple hiding (SessionId)
import Web.Spock.Worker
import Control.Monad.Trans
import Control.Monad
import Data.Monoid
import Data.Time
import Data.List (isInfixOf)
import System.Directory
import System.Environment
import GHC.Generics
import Data.Aeson
... | openbrainsrc/makeci | MakeCI.hs | mit | 4,945 | 2 | 19 | 1,210 | 1,682 | 827 | 855 | 124 | 4 |
/*Owner & Copyrights: Vance King Saxbe. A.*//* Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe... | VanceKingSaxbeA/GoldSaxMachineStore | GoldSaxMachineModule2/src/Chapter2/DataTypes.hs | mit | 6,315 | 25 | 16 | 2,224 | 1,550 | 801 | 749 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
module Sprockell.Sprockell where
import Data.Bits
import Sprockell.BasicFunctions
import Sprockell.HardwareTypes
{-------------------------------------------------------------
| SPROCKELL: Simple PROCessor in hasKELL :-)
|
| Initial definition: October 2012, Jan Kuper (j.kuper@utwen... | leonschoorl/sprockell | src/Sprockell/Sprockell.hs | mit | 12,316 | 0 | 12 | 4,471 | 2,272 | 1,299 | 973 | 131 | 28 |
module Unison.Codebase.Editor.Input
( Input(..)
, Event(..)
, OutputLocation(..)
, PatchPath
, BranchId, parseBranchId
, HashOrHQSplit'
) where
import Unison.Prelude
import qualified Unison.Codebase.Branch as Branch
import qualified Unison.HashQualified as HQ
import qualified Unison.Hash... | unisonweb/platform | parser-typechecker/src/Unison/Codebase/Editor/Input.hs | mit | 5,771 | 0 | 9 | 1,206 | 1,108 | 647 | 461 | 111 | 2 |
{-# OPTIONS_HADDOCK not-home #-}
module Derive.List
( -- $introduction
-- $example
-- $conclusion
deriveList
, deriveMonoid
, deriveSemigroup
, deriveIsList
, DeriveListConfig(..)
, deriveListWith
, deriveMonoidWith
, deriveSemigroupWith
, deriveIsListWith
-- $alternatives
) where
import D... | sboosali/derive-monoid | sources/Derive/List.hs | mit | 3,555 | 0 | 5 | 729 | 99 | 84 | 15 | 13 | 0 |
-- | The 'FP15.Xtn' module captures the type extension design pattern.
module FP15.Xtn where
import Data.Maybe(isJust)
import Data.Either(isRight)
import Control.Monad.Identity(Identity(..))
-- | The 'Xtn' typeclass is for datatypes with a case dedicated for type
-- extension.
--
-- Laws of 'Xtn':
--
-- @maybeX . fr... | Ming-Tang/FP15 | src/FP15/Xtn.hs | mit | 1,507 | 0 | 9 | 348 | 262 | 151 | 111 | 27 | 0 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE TypeFamilyDependencies #-}
-- | An effect which combines a `State` and a `Storage` within IO monad
module Hevents.Eff.Persist(Persist, makePersist,... | abailly/hevents | src/Hevents/Eff/Persist.hs | mit | 3,253 | 0 | 13 | 1,059 | 1,010 | 523 | 487 | -1 | -1 |
{-|
Module : MLUtil
Description : Utility functions for machine learning
Copyright : (C) Richard Cook, 2016
Licence : MIT
Maintainer : rcook@rcook.org
Stability : experimental
Portability : portable
Lorem ipsum etc. etc. etc.
-}
-- Umbrella module
module MLUtil
( module MLUtil.Arithmetic
, modul... | rcook/mlutil | mlutil/src/MLUtil.hs | mit | 963 | 0 | 5 | 272 | 129 | 83 | 46 | 23 | 0 |
module Main where
import Control.Exception (bracket)
import Control.Monad.Except (runExceptT)
import qualified Data.ByteString.Char8 as BS
import Network.HTTP.Client (defaultManagerSettings, newManager, Manager)
import Servant
import Servant.Client (parseBaseUrl, BaseU... | houli/distributed-file-system | fuse-file-system/app/Main.hs | mit | 1,895 | 0 | 14 | 430 | 533 | 271 | 262 | 42 | 2 |
module Translate where
import Unbound.Generics.LocallyNameless hiding (to)
import Control.Monad.Except
import Control.Monad.Reader
import Control.Monad.State
import qualified Data.List as List
import Data.Map (Map)
import qualified Data.Map as Map
import Unbound.Generics.LocallyNameless.Internal.Fold (toListOf)
imp... | sweirich/tal | src/Translate.hs | mit | 23,547 | 4 | 29 | 6,264 | 11,341 | 5,540 | 5,801 | -1 | -1 |
{-
******************************************************************************
* JSHOP *
* *
* Module: CodeCompressor *
*... | nbrunt/JSHOP | src/CodeCompressor.hs | mit | 25,118 | 0 | 43 | 6,596 | 7,229 | 3,177 | 4,052 | 714 | 4 |
{-|
Module : BreadU.Pages.Content.Footer
Description : Language-specific content for page's footer.
Stability : experimental
Portability : POSIX
Language-specific content for page's footer.
Fields of type 'FooterContent' will be used in pages' markup.
-}
module BreadU.Pages.Content.Footer
( footerContent
... | denisshevchenko/breadu.info | src/lib/BreadU/Pages/Content/Footer.hs | mit | 1,221 | 0 | 6 | 284 | 137 | 86 | 51 | 17 | 1 |
module Bar (doh) where
class Bar a where
derp :: a -> String
instance Bar (a -> b) where
derp a = "derp"
doh :: (Show a, Bar b) => a -> b -> String
doh a b = show a ++ derp b
| santolucito/ives | tests/Bar.hs | mit | 182 | 0 | 7 | 51 | 98 | 51 | 47 | 7 | 1 |
{-# LANGUAGE ImplicitParams, TemplateHaskell #-}
module Main where
import Algebra.Lattice.Levitated
import Control.Monad.Reader
import Data.Monoid
import Test.Framework (defaultMain, testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Test.Framework.Providers.HUnit (testCase)
import Test.Fra... | nushio3/formura | test/test-geometry.hs | mit | 1,540 | 0 | 15 | 269 | 649 | 357 | 292 | 31 | 1 |
module Probability.Distribution.Bernoulli where
import Probability.Random
import MCMC
builtin builtin_sample_bernoulli 2 "sample_bernoulli" "Distribution"
bernoulli_effect x = add_move (\c -> discrete_uniform_avoid_mh x 0 1 c)
sample_bernoulli p = RandomStructure bernoulli_effect modifiable_structure $ liftIO (IOAc... | bredelings/BAli-Phy | haskell/Probability/Distribution/Bernoulli.hs | gpl-2.0 | 776 | 0 | 12 | 103 | 261 | 130 | 131 | -1 | -1 |
module System.DevUtils.Base.Url (
module All
) where
import System.DevUtils.Base.Url.Auth as All
import System.DevUtils.Base.Url.Connection as All
import System.DevUtils.Base.Url.Field as All
import System.DevUtils.Base.Url.File as All
import System.DevUtils.Base.Url.Session as All
| adarqui/DevUtils-Base | src/System/DevUtils/Base/Url.hs | gpl-3.0 | 285 | 0 | 4 | 29 | 64 | 50 | 14 | 7 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module WeatherReporterMTL where
import Control.Monad.IO.Class
import Control.Monad.Trans.Class
type WeatherData = String
class Monad m => WeatherService m where
fetch :: m WeatherData
class Monad m => Storage m where
store :: WeatherData -> m ... | capitanbatata/sandbox | on-dependency-injection-in-fp/a-weather-app/src/WeatherReporterMTL.hs | gpl-3.0 | 1,770 | 0 | 9 | 353 | 431 | 229 | 202 | 30 | 1 |
-- print n-ary trees in LISP notation
data Tree a = Node a [Tree a]
p73 :: Tree Char -> String
p73 (Node x []) = [x]
p73 (Node x xs) = '(' : [x] ++ concatMap p73 xs ++ ")"
| yalpul/CENG242 | H99/70-73/p73.hs | gpl-3.0 | 174 | 0 | 8 | 43 | 94 | 47 | 47 | 4 | 1 |
{----------------------------------------------------
NFAstream.hs -- John Benjamin jcb638@mail.missouri.edu
This program lets you build an e-NFA from a regular expression and match
characters of any language from a stream
against the regular expression -}
module NFAStream where
import Data.List (nub)
import Contr... | jchbenjamin/NFAStream | NFAStream.hs | gpl-3.0 | 5,107 | 78 | 16 | 1,169 | 2,097 | 1,117 | 980 | 117 | 1 |
{- Merch.Race.Economy - Wrapper module for economy.
Copyright 2013 Alan Manuel K. Gloria
This file is part of Merchant's Race.
Merchant's Race 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... | AmkG/merchants-race | Merch/Race/Economy.hs | gpl-3.0 | 10,863 | 2 | 17 | 2,437 | 4,000 | 2,140 | 1,860 | 287 | 2 |
{-# LANGUAGE OverloadedStrings #-}
import Web.Scotty
import Network.Wai.Middleware.Static
import Network.Wai.Middleware.RequestLogger
import Control.Applicative ((<$>), (<*>))
import Control.Monad (mzero, forM_)
import Data.Monoid (mconcat, mempty)
import qualified Data.Aeson as A
import Data.List
import qualifie... | hadashi/applicative.io | Main.hs | gpl-3.0 | 1,729 | 7 | 20 | 349 | 648 | 334 | 314 | 51 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module FitParser where
import Data.Binary.Get -- binary parser combinators
import Data.Bits -- bit operations
import Data.Word -- unsigned ints
import qualified Data.ByteString.Lazy as BL
import Control.Monad.Except
import Control.Monad.State.Lazy
import Control.Applica... | stappit/fit-parser | library/FitParser.hs | gpl-3.0 | 3,702 | 0 | 16 | 957 | 1,206 | 578 | 628 | 119 | 3 |
{-# OPTIONS -Wall #-}
module Graphics.UI.Bottle.Widgets.TextView (Style(..), make, makeWidget, drawText) where
import Control.Applicative (liftA2)
import Control.Arrow (first, second, (&&&))
import Data.List.Split (splitWhen)
import Data.List.Utils (enumerate)
import Data.Monoid (Monoid(..))
import Data.Vector.Vector2... | alonho/bottle | src/Graphics/UI/Bottle/Widgets/TextView.hs | gpl-3.0 | 2,814 | 0 | 23 | 563 | 963 | 531 | 432 | 58 | 2 |
{-# LANGUAGE TypeFamilies, ScopedTypeVariables #-}
module Lamdu.Sugar.Convert.Binder.Inline
( inlineVar
) where
import qualified Control.Lens as Lens
import Hyper
import Hyper.Type.Functor (_F)
import Hyper.Type.Prune (Prune(..))
import Lamdu.Calc.Term (Val)
import quali... | lamdu/lamdu | src/Lamdu/Sugar/Convert/Binder/Inline.hs | gpl-3.0 | 4,240 | 0 | 29 | 1,635 | 1,503 | 795 | 708 | -1 | -1 |
import Data.List
import Data.List.Split
import Control.Monad
------------------------------
------- Single Player --------
------------------------------
-------------------------------
-- Print the game
mostraTabuleiro str =
" | | \n" ++ " " ++ (str !! 0 :[]) ++ " | " ++ (str !! 1 :[]) ++ " | " ++ (str !! 2 :... | lambd0x/Programming_Languages | Haskell/codes/tic-tac-toe/code1.hs | gpl-3.0 | 11,589 | 13 | 43 | 3,677 | 2,835 | 1,474 | 1,361 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns #-}
-- Module : Data.Text.Lazy.Manipulate
-- 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... | brendanhay/text-manipulate | src/Data/Text/Lazy/Manipulate.hs | mpl-2.0 | 7,285 | 0 | 14 | 1,704 | 996 | 584 | 412 | 93 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-rds/gen/Network/AWS/RDS/Types.hs | mpl-2.0 | 144,125 | 0 | 83 | 35,802 | 23,990 | 13,751 | 10,239 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-ml/gen/Network/Google/Resource/Ml/Projects/Models/Versions/SetDefault.hs | mpl-2.0 | 6,407 | 0 | 16 | 1,376 | 788 | 464 | 324 | 119 | 1 |
{-# LANGUAGE RankNTypes #-}
func :: forall b . Show b => b -> String
| lspitzner/brittany | data/Test340.hs | agpl-3.0 | 69 | 0 | 7 | 15 | 23 | 12 | 11 | 2 | 0 |
-- Copyright 2017 Ondrej Sykora
--
-- 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 ... | ondrasej/heavenly-bodies | Setup.hs | apache-2.0 | 922 | 0 | 9 | 223 | 74 | 46 | 28 | 11 | 1 |
--
-- Copyright (c) 2013, Carl Joachim Svenn
-- 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 source code must retain the above copyright notice... | karamellpelle/MEnv | source/MEnv/Screen.hs | bsd-2-clause | 1,726 | 0 | 5 | 349 | 67 | 56 | 11 | 2 | 0 |
--
-- Copyright (c) 2013, Carl Joachim Svenn
-- 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 source code must retain the above copyright notice... | karamellpelle/MEnv | source/Main/IOS.hs | bsd-2-clause | 3,489 | 0 | 12 | 1,173 | 367 | 201 | 166 | 46 | 1 |
{- | This module defines the interval domain, i.e., the space of
intervals. Actually, what we define as a /base/ for such a domain
because our intervals have rational endpoints (to be exact, the
endpoints are elements of an approximate field). The actual interval
domains is defined in the module "Reals".
-}
mo... | andrejbauer/marshall | etc/haskell/Interval.hs | bsd-2-clause | 6,613 | 0 | 18 | 3,351 | 1,668 | 868 | 800 | 112 | 0 |
module Heredoc (heredoc, fileAsString) where
import Language.Haskell.TH.Quote
import Language.Haskell.TH.Lib
heredoc :: QuasiQuoter
heredoc = QuasiQuoter (litE . stringL) (litP . stringL) (undefined) (undefined)
fileAsString :: QuasiQuoter
fileAsString = quoteFile heredoc
| ctbo/hashi | Heredoc.hs | bsd-2-clause | 276 | 0 | 7 | 33 | 78 | 47 | 31 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
import Control.Lens (to)
import Control.Monad.IO.Class (MonadIO, liftIO)
import qualified Data.Either.Combinators as Either
import Data.List.NonEmpty (NonEmpty ((:|)))
import qualifi... | passy/hls-proxy | test/Spec.hs | bsd-3-clause | 3,777 | 0 | 17 | 924 | 933 | 490 | 443 | -1 | -1 |
-- |
-- Module : Network.TLS.Extra.Cipher
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : unknown
--
{-# LANGUAGE CPP #-}
module Network.TLS.Extra.Cipher
(
-- * cipher suite
ciphersuite_default
, ciphersuite_all
, ... | erikd/hs-tls | core/Network/TLS/Extra/Cipher.hs | bsd-3-clause | 23,943 | 0 | 15 | 6,531 | 3,879 | 2,327 | 1,552 | 491 | 1 |
{-|
Module : OpenLayers Wrapper Internal Definitions
Description : use this modul to for global definitions
-}
module OpenLayers.Internal where
import Fay.FFI
-- | a functor to ignore the result of the function, such as the return value of an IO action.
void :: Fay f -> Fay ()
void f = f >> return ()... | olwrapper/olwrapper | wrapper/OpenLayers/Internal.hs | bsd-3-clause | 321 | 0 | 7 | 75 | 47 | 25 | 22 | 4 | 1 |
{-# language CPP #-}
-- | = Name
--
-- VK_EXT_line_rasterization - device extension
--
-- == VK_EXT_line_rasterization
--
-- [__Name String__]
-- @VK_EXT_line_rasterization@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
-- 260
--
-- [__Revision__]
-- 1
--
-- [__E... | expipiplus1/vulkan | src/Vulkan/Extensions/VK_EXT_line_rasterization.hs | bsd-3-clause | 32,929 | 1 | 17 | 5,778 | 3,837 | 2,284 | 1,553 | -1 | -1 |
module Tct.Trs.Data.RuleSelector
(
RuleSelector (..)
-- * RuleSet Selectors
, RuleSetSelector
, selInter
-- ** Constructors
, selRules
, selDPs
, selStricts
, selWeaks
, selLeafWDG
, selLeafCDG
, selFromDG
, selFromWDG
, selFromCDG
, selIndependentSG
, selCycleIndependentSG
-- *... | ComputationWithBoundedResources/tct-trs | src/Tct/Trs/Data/RuleSelector.hs | bsd-3-clause | 13,812 | 0 | 16 | 3,518 | 3,418 | 1,843 | 1,575 | -1 | -1 |
module Vulkan.Utils.ShaderQQ.Backend.Glslang.Internal
( compileShaderQ
, compileShader
) where
import Control.Monad.IO.Class
import Data.ByteString ( ByteString )
import qualified Data.ByteString as BS
import Data.FileEmbed
import Language.Hask... | expipiplus1/vulkan | utils/src/Vulkan/Utils/ShaderQQ/Backend/Glslang/Internal.hs | bsd-3-clause | 3,387 | 0 | 18 | 933 | 697 | 382 | 315 | 65 | 7 |
{-# Language CPP #-}
module HsImport.ImportPos
( findImportPos
, ImportPos(..)
, matchingImports
, bestMatchingImport
) where
import qualified Language.Haskell.Exts as HS
import Data.List.Index (ifoldl')
import Data.List.Split (splitOn)
import HsImport.Types
#if __GLASGOW_HASKELL__ < 710
import Contro... | dan-t/hsimport | lib/HsImport/ImportPos.hs | bsd-3-clause | 2,617 | 0 | 15 | 804 | 618 | 330 | 288 | 45 | 5 |
module Text.Icalendar.Event (
Event(..)
, parseDate
, parseDateTime
) where
import Data.Maybe
import Data.Time
import System.Locale
data Event = Event {
eventStart :: ZonedTime
, eventEnd :: ZonedTime
, eventSummary :: String
, eventProperties :: [(String, ([(String, String)], String))]
} deri... | samstokes/icalendar-parser | Text/Icalendar/Event.hs | bsd-3-clause | 1,088 | 0 | 13 | 220 | 334 | 177 | 157 | 22 | 1 |
module Examples.ServerToUpper (
-- * In which we define a server that send back strings upper-cased
-- $example
-- * Program
-- $program
-- ** Conduit version
-- $conduit
main
) where
import Pipes
import Pipes.Network.TCP
import qualified Pipes.ByteString as Bytes
import Data.Word8 (toUpper)
main :: IO ()
mai... | michaelt/pipes-network-tcp-examples | Examples/ServerToUpper.hs | bsd-3-clause | 1,908 | 0 | 12 | 582 | 122 | 70 | 52 | 12 | 1 |
{-# LANGUAGE CPP #-}
{-|
To represent an Irish National Grid reference.
Projection: Transverse Mercator
Reference ellipsoid: Modified Airy
Units: metres
Origin: 53°30'N, 8°W
False co-ordinates of origin: 200000m east, 250000m north
-}
module IrishRef where
#if __GLASGOW_HASKELL__ < 710
import Cont... | danfran/hcoord | src/IrishRef.hs | bsd-3-clause | 9,184 | 0 | 31 | 2,664 | 2,886 | 1,509 | 1,377 | 139 | 4 |
module Data.Geo.GPX.Lens.DescL where
import Data.Lens.Common
class DescL a where
descL :: Lens a (Maybe String)
| tonymorris/geo-gpx | src/Data/Geo/GPX/Lens/DescL.hs | bsd-3-clause | 117 | 0 | 9 | 20 | 40 | 23 | 17 | 4 | 0 |
import GifStream
-- Stopping focus of the browser tab stops the animation. Reload the page to fix it.
type Position = (Int,Int)
data Action = MoveLeft | MoveRight | MoveUp | MoveDown deriving Eq
data State = State
{ oldAction :: Action
, snake :: [Position]
, food :: Position
}
-- 30000 seems to be... | def-/gifstream | Snake.hs | bsd-3-clause | 1,624 | 2 | 16 | 423 | 563 | 301 | 262 | 43 | 5 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.EXT.TransformFeedback
-- Copyright : (c) Sven Panne 2014
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portab... | mfpi/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/EXT/TransformFeedback.hs | bsd-3-clause | 1,526 | 0 | 4 | 181 | 111 | 82 | 29 | 25 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE OverloadedStrings #-}
module Parser (
Review (..)
, parseReviews
, parseFromFile
, reviewToStr
) where
import Text.Parsec
import Text.Parsec.Char
import Text.Parsec.String
type Old = String
type File = String
ty... | baig/review-md | Parser.hs | bsd-3-clause | 3,584 | 0 | 12 | 1,213 | 1,060 | 550 | 510 | 101 | 1 |
module Data.ASN1.Internal
( uintOfBytes
, intOfBytes
, bytesOfUInt
, bytesOfInt
, putVarEncodingIntegral
) where
import Data.Word
import Data.Bits
import Data.ByteString (ByteString)
import qualified Data.ByteString as B
{- | uintOfBytes returns the number of bytes and the unsigned integer represented by... | piyush-kurur/hs-asn1-data | Data/ASN1/Internal.hs | bsd-3-clause | 2,393 | 9 | 15 | 536 | 689 | 371 | 318 | 38 | 5 |
module PartIII ( partIII ) where
import Euterpea
import Elements
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- Part III
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
bFlatMajorScale :: [PitchClass]
bFlatMajorScale = [Bf, C, D, Ef, F, G, A, Bf]
... | mzero/PlainChanges2 | src/PartIII.hs | bsd-3-clause | 2,355 | 0 | 15 | 590 | 1,076 | 613 | 463 | 49 | 1 |
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- | Constants used by the implementation; mostly paths around
-- the filesystem.
module Horse.Constants
( -- * paths
repositoryDataDir
, headHashPath
, stagingAreaPath
, diffsPath
, commitsPath
, configPath
, hashesPath
, branchesPath
, untracke... | bgwines/horse-control | src/Horse/Constants.hs | bsd-3-clause | 4,246 | 0 | 9 | 674 | 670 | 440 | 230 | 78 | 1 |
{-# LANGUAGE TypeFamilies, TypeOperators, FlexibleContexts #-}
{-# OPTIONS_GHC -Wall #-}
----------------------------------------------------------------------
-- |
-- Module : FunctorCombo.Regular
-- Copyright : (c) Conal Elliott 2010
-- License : BSD3
--
-- Maintainer : conal@conal.net
-- Stability ... | conal/functor-combo | src/FunctorCombo/Regular.hs | bsd-3-clause | 1,994 | 0 | 8 | 444 | 94 | 59 | 35 | 7 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeSynonymInstances #-}
-- | Currently just raw TH-generated 'Lens'es and 'Prism's. FUNCTION & CLASS NAMES IN THIS FILE ARE EXTREMELY LIKELY TO ... | Atidot/hs-mesos | src/System/Mesos/Lens.hs | mit | 1,390 | 0 | 6 | 164 | 329 | 133 | 196 | 46 | 0 |
--
--
--
-----------------
-- Exercise 9.13.
-----------------
--
--
--
module E'9'13 where
-- Note: Use/See templates for structural induction.
import Test.QuickCheck ( Positive (..) , quickCheck )
-- Exercise (definitions from the text):
facAux :: Integer -> Integer -> Integer
facAux 0 p = p
facAux n p = ... | pascal-knodel/haskell-craft | _/links/E'9'13.hs | mit | 5,084 | 0 | 10 | 2,571 | 430 | 312 | 118 | 17 | 2 |
-- Translation Module
-- By G.W. Schwartz
-- Collects all functions pertaining to the translation of nucleotides to
-- amino acids
module Translation where
-- Built in
import Data.Char
-- Cabal
import qualified Data.List.Split as Split
-- Local
import Types
-- Converts a codon to an amino acid
-- Remember, if the... | GregorySchwartz/aa-mapper | src/Translation.hs | gpl-2.0 | 2,617 | 0 | 10 | 1,132 | 710 | 411 | 299 | 37 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2006-2015 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) a... | alexvong1995/pandoc | src/Text/Pandoc/Writers/AsciiDoc.hs | gpl-2.0 | 18,821 | 0 | 19 | 5,597 | 5,293 | 2,610 | 2,683 | 350 | 30 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Network.AWS.DynamoDBStreams.Waiters
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : Mozilla Public ... | fmapfmapfmap/amazonka | amazonka-dynamodb-streams/gen/Network/AWS/DynamoDBStreams/Waiters.hs | mpl-2.0 | 648 | 0 | 4 | 122 | 39 | 31 | 8 | 7 | 0 |
import System.RedPitaya.Fpga
import System.RedPitaya.Tcp
import System.Environment
main = do
arg <- getArgs
let port = fromInteger . read . head $ arg ++ ["4242"]
runRpServer port
| ra1u/Lambdaya | bin/server.hs | lgpl-3.0 | 197 | 0 | 13 | 43 | 64 | 33 | 31 | 7 | 1 |
-- |
-- Module : Crypto.PubKey.DH
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : Good
--
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Crypto.PubKey.DH
( Params(..)
, PublicNumber(..)
... | tekul/cryptonite | Crypto/PubKey/DH.hs | bsd-3-clause | 2,941 | 0 | 11 | 569 | 556 | 321 | 235 | 45 | 1 |
{-# LANGUAGE CPP #-}
module Bead.Persistence.SQL.JSON where
import Text.JSON.Generic
import qualified Bead.Domain.Entities as Domain
import qualified Bead.Domain.Shared.Evaluation as Domain
import Bead.Persistence.SQL.Entities (JSONText)
#ifdef TEST
import Test.Tasty.Arbitrary
import ... | pgj/bead | src/Bead/Persistence/SQL/JSON.hs | bsd-3-clause | 2,783 | 0 | 13 | 417 | 570 | 313 | 257 | 42 | 1 |
{-# LANGUAGE CPP, NondecreasingIndentation, TupleSections #-}
{-# OPTIONS -fno-warn-incomplete-patterns -optc-DNON_POSIX_SOURCE #-}
-----------------------------------------------------------------------------
--
-- GHC Driver program
--
-- (c) The University of Glasgow 2005
--
----------------------------------------... | vTurbine/ghc | ghc/Main.hs | bsd-3-clause | 36,693 | 3 | 28 | 10,153 | 7,456 | 3,836 | 3,620 | 571 | 16 |
-- Copyright (c) 2015 Eric McCorkle. 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 source code must retain the above copyright
-- notice, this list of conditi... | emc2/iridium | src/IR/FlatIR/LLVMGen/CodeGen.hs | bsd-3-clause | 30,379 | 421 | 20 | 10,460 | 6,699 | 3,803 | 2,896 | 569 | 105 |
{-# LANGUAGE TemplateHaskell #-}
--------------------------------------------------------------------------------
-- |
-- Module : Data.Comp.Derive.Foldable
-- Copyright : (c) 2010-2011 Patrick Bahr
-- License : BSD3
-- Maintainer : Patrick Bahr <paba@diku.dk>
-- Stability : experimental
-- Portabili... | spacekitteh/compdata | src/Data/Comp/Derive/Foldable.hs | bsd-3-clause | 6,267 | 6 | 32 | 2,625 | 1,979 | 1,061 | 918 | -1 | -1 |
module Language.Ava.Internal.Result
( Result(..)
, success
, failure
, result
, fromEither
) where
import Data.Bifunctor (bimap, Bifunctor)
data Result e a
= Failure e
| Success a
deriving (Eq, Ord, Show, Read)
instance Functor (Result e) where
fmap f (Success a) = Success (f a)
fmap f (Failure... | owainlewis/ava | src/Language/Ava/Internal/Result.hs | bsd-3-clause | 1,188 | 0 | 8 | 293 | 519 | 264 | 255 | -1 | -1 |
{- |
Module : Text.Highlighting.Kate.Styles
Copyright : Copyright (C) 2011 John MacFarlane
License : GNU GPL, version 2 or above
Maintainer : John MacFarlane <jgm@berkeley.edu>
Stability : alpha
Portability : portable
Styles for rendering annotated source lines.
-}
module Text.Highlig... | klpn/highlighting-kate | Text/Highlighting/Kate/Styles.hs | gpl-2.0 | 13,238 | 0 | 11 | 2,667 | 3,933 | 2,425 | 1,508 | 232 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.