code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-glacier/gen/Network/AWS/Glacier/ListJobs.hs | mpl-2.0 | 8,632 | 0 | 12 | 1,839 | 939 | 576 | 363 | 95 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-language/gen/Network/Google/Resource/Language/Documents/AnalyzeEntitySentiment.hs | mpl-2.0 | 5,430 | 0 | 16 | 1,172 | 708 | 414 | 294 | 108 | 1 |
module Main where
import System.Environment (getArgs)
import System.Directory
main :: IO ()
main = do args <- getArgs
mapM_ removeDirectory args
| tyoko-dev/coreutils-haskell | src/rmdir.hs | agpl-3.0 | 156 | 0 | 7 | 32 | 49 | 26 | 23 | 6 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TemplateHaskell #-}
module Tactics where
data family Sing (a :: k)
data Nat :: * where
Zero :: Nat
Suc... | jstolarek/sandbox | haskell/Tactics.hs | unlicense | 2,196 | 4 | 11 | 616 | 434 | 249 | 185 | 33 | 2 |
{-# LANGUAGE GADTs #-}
data MathExp a where
Add :: (Num a) => MathExp a -> MathExp a -> MathExp a
Minu :: (Num a) => MathExp a -> MathExp a -> MathExp a
Mul :: (Num a) => MathExp a -> MathExp a -> MathExp a
-- Div :: (Num a, Fractional a) => MathExp a -> MathExp a -> MathExp a
Val :: (Num a) => a -> MathExp a
... | ccqpein/Arithmetic-Exercises | calculator/calculator.hs | apache-2.0 | 760 | 0 | 14 | 204 | 298 | 147 | 151 | 15 | 1 |
{-# LANGUAGE ViewPatterns #-}
module Logging.Glue where
import GHC.RTS.Events
import Text.Scanf
getUserMessage :: Event -> Maybe String
getUserMessage (Event _ (UserMessage m)) = Just m
getUserMessage _ = Nothing
getContinuation, getSplit :: String -> Maybe (Int, String)
getContinuation = ints (lit "[[" :^ int :^ ... | SKA-ScienceDataProcessor/RC | MS6/LogAn/Logging/Glue.hs | apache-2.0 | 1,790 | 0 | 20 | 529 | 653 | 332 | 321 | 35 | 10 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
module BarthPar.Scrape.Types.DOM where
import Control.... | erochest/barth-scrape | src/BarthPar/Scrape/Types/DOM.hs | apache-2.0 | 12,329 | 0 | 14 | 4,901 | 3,040 | 1,584 | 1,456 | -1 | -1 |
module MonteCarloPi where
import System.Random
import Data.IORef
-- define a data type to represent a point
type Point = (Double,Double)
-- define a data type to represent a square
-- the single Double argument is the dimension of the square
type Square = Double
-- the corner of a square is always at 0.0,0.0
-- def... | alexandersgreen/alex-haskell | MonteCarloPi/MonteCarloPi.hs | apache-2.0 | 3,493 | 0 | 17 | 910 | 1,073 | 591 | 482 | 50 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Haddock.Backends.Html
-- Copyright : (c) Simon Marlow 2003-2006,
-- David Waern 2006-2009,
-- Mark Lentczner 2010,
-- Mateusz Kowalczyk 2013
-- L... | lamefun/haddock | haddock-api/src/Haddock/Backends/Xhtml.hs | bsd-2-clause | 25,987 | 1 | 20 | 6,650 | 7,113 | 3,671 | 3,442 | 497 | 7 |
{-# LANGUAGE TemplateHaskell, NoMonomorphismRestriction, FlexibleContexts #-}
{-| The WConfd functions for direct configuration manipulation
This module contains the client functions exported by WConfD for
specific configuration manipulation.
-}
{-
Copyright (C) 2014 Google Inc.
All rights reserved.
Redistributi... | ganeti/ganeti | src/Ganeti/WConfd/ConfigModifications.hs | bsd-2-clause | 27,921 | 0 | 29 | 7,721 | 7,039 | 3,628 | 3,411 | -1 | -1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QLayout.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:36
Warning : this file is machine generated - do not m... | keera-studios/hsQt | Qtc/Enums/Gui/QLayout.hs | bsd-2-clause | 2,848 | 0 | 18 | 565 | 663 | 343 | 320 | 64 | 1 |
module Propellor.Property.ConfFile (
-- * Generic conffiles with sections
SectionStart,
SectionPast,
AdjustSection,
InsertSection,
adjustSection,
-- * Windows .ini files
IniSection,
IniKey,
containsIniSetting,
lacksIniSection,
) where
import Propellor.Base
import Propellor.Property.File
import Data.List (i... | np/propellor | src/Propellor/Property/ConfFile.hs | bsd-2-clause | 2,998 | 84 | 16 | 602 | 894 | 491 | 403 | 74 | 3 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.NoFrillsDecoration
-- Description : Most basic version of decoration for windows.
-- Copyright : (c) Jan Vornberger 2009
-- License : BSD3-... | xmonad/xmonad-contrib | XMonad/Layout/NoFrillsDecoration.hs | bsd-3-clause | 1,770 | 0 | 11 | 303 | 184 | 115 | 69 | 14 | 1 |
-- | This module provides useful character-related predicates and special
-- characters.
module CommonMark.Util.Char
(
-- * Special characters
replacementChar
-- * Basic predicates
, isAsciiLetter
, isAsciiAlphaNum
-- * Whitespace
, isWhitespace
, isUnicodeWhitespace
-- * Pu... | Jubobs/CommonMark-WIP | src/CommonMark/Util/Char.hs | bsd-3-clause | 2,920 | 0 | 11 | 549 | 491 | 286 | 205 | 46 | 1 |
module Model.Entities
( LastUpdated (..)
, PersistId (..)
, formatDatetime
, formatEventTime
) where
import Prelude
import Data.Monoid
import Data.Text as T
import Data.Time
import System.Locale
import Yesod
import Model
class LastUpdated a where
lastUpdated :: a -> UTCTime
ins... | pxqr/bitidx | Model/Entities.hs | bsd-3-clause | 957 | 0 | 9 | 184 | 258 | 140 | 118 | 28 | 1 |
module App
( runMatterhorn
, closeMatterhorn
)
where
import Prelude ()
import Prelude.MH
import Brick
import Control.Monad.Trans.Except ( runExceptT )
import qualified Graphics.Vty as Vty
import Text.Aspell ( stopAspell )
import Network.Mattermost
im... | aisamanra/matterhorn | src/App.hs | bsd-3-clause | 2,121 | 0 | 16 | 593 | 519 | 268 | 251 | -1 | -1 |
--------------------------------------------------------------------------------
-- |
-- Module : Data.BitVector.Util
-- Copyright : (c) 2010 Philip Weaver
-- License : BSD3
--
-- Maintainer : philip.weaver@gmail.com
-- Stability :
-- Portability :
--
-- (Description)
---------------------------------... | pheaver/BitVector | Data/BitVector/Util.hs | bsd-3-clause | 1,162 | 0 | 11 | 197 | 212 | 125 | 87 | 11 | 1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[CoreRules]{Transformation rules}
-}
{-# LANGUAGE CPP #-}
-- | Functions for collecting together and applying rewrite rules to a module.
-- The 'CoreRule' datatype itself is declared elsewhere.
module Rules (
-- ** Constructing
empt... | vikraman/ghc | compiler/specialise/Rules.hs | bsd-3-clause | 48,316 | 0 | 17 | 13,565 | 7,151 | 3,806 | 3,345 | 487 | 5 |
{- Provides the CORDIC algorithm.
- Fixed-point math is used throughout, with bit shifting used as per the
- original algorithm.
- Two multiplications are performed as the final step to scale the result.
-}
module CORDIC
(
cordic
) where
import Data.Bits ( shift )
import Numeric.Fixed
import Util
-- |(index, ... | chronon-io/cordic | src/CORDIC.hs | bsd-3-clause | 1,456 | 0 | 14 | 374 | 464 | 260 | 204 | 29 | 2 |
module WASH.CGI.CookieIO (decodeCookie, encodeCookie, putCookies) where
import System.IO
import WASH.CGI.CGIMonad
import qualified WASH.CGI.Debug as Debug
import WASH.CGI.RawCGITypes
import qualified WASH.Utility.URLCoding as URLCoding
decodeCookie :: (String, String) -> (String, (Maybe String, Maybe String))
encode... | nh2/WashNGo | WASH/CGI/CookieIO.hs | bsd-3-clause | 1,664 | 12 | 14 | 376 | 612 | 315 | 297 | 47 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module PackageTests.DeterministicAr.Check where
import Control.Monad
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as BS8
import Data.Char (isSpace)
import Data.List
import Data.Traversable
import PackageTests.PackageTester
import System.Exit
import S... | fpco/cabal | Cabal/tests/PackageTests/DeterministicAr/Check.hs | bsd-3-clause | 4,594 | 0 | 23 | 1,281 | 1,152 | 575 | 577 | 89 | 5 |
module RPN(
RPN,
arg, intVal, boolVal, funcall, appl,
jump, jumpFalse, label,
toCCode) where
import CCodeGen
data RPN
= Arg Int
| IntVal Int
| Funcall String Int
| Appl
| BoolVal Bool
| Jump Int
| JumpFalse Int
| Label Int
deriving (Eq, Ord, Show)
arg = A... | dillonhuff/IntLang | src/RPN.hs | bsd-3-clause | 767 | 0 | 7 | 187 | 278 | 151 | 127 | 33 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Layout
( baseLayout
, renderWithLayout
, renderWithBaseLayout
) where
import Data.Text
import Snap
import Snap.Blaze (blaze)
import Snap.Snaplet.Auth
import ... | ExternalReality/features | src/Layout.hs | bsd-3-clause | 2,399 | 0 | 15 | 572 | 278 | 154 | 124 | 31 | 2 |
{-# LANGUAGE TemplateHaskell #-}
import Data.Monoid
import Options.Applicative
import Options.Applicative.TH
newtype Number = Number Int
deriving (Show, Read)
$(genOpts ''Number)
main :: IO ()
main = do
x <- execParser optparseNumber
print x
| tranma/optparse-th | test/cases/arg-auto/arg-auto.hs | bsd-3-clause | 252 | 1 | 8 | 43 | 80 | 41 | 39 | 11 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Utils
-- Copyright :
-- License : BSD3
--
-- Maintainer : m.rivas1@uni.brighton.ac.uk
-- Stability :
-- Portability :
--
-- | Utility functions and data types
--
------------------------------------------------... | michelrivas/paxos | src/Utils.hs | bsd-3-clause | 3,019 | 0 | 17 | 667 | 725 | 424 | 301 | 67 | 2 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE Trustworthy #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Category
-- Copyright : (c) Ashley Yakeley 2007
-- License : BSD-style (see the LICENSE ... | jstolarek/ghc | libraries/base/Control/Category.hs | bsd-3-clause | 1,507 | 0 | 9 | 377 | 305 | 179 | 126 | 34 | 1 |
module Data.AS3.AST.Prims (
between_braces
, between_parens
, between_brackets
, semi
, ss
, comma
, plusfold
, csv
, dots
, sym
, symR
) where
import Data.AS3.AST.Def
import Data.AS3.AST.ThirdParty
import Data.List (intersperse)
import Text.Parsec
between_braces :: As3Parser... | phylake/AS3-AST | Data/AS3/AST/Prims.hs | bsd-3-clause | 1,257 | 0 | 9 | 280 | 482 | 254 | 228 | 44 | 1 |
module GameLogic where
import Domain
import Coordinate
import Data.Maybe
import Debug.Trace
import Vector
type Line = (Coordinates, Coordinates)
data PaddleDefinition = PaddleDefinition { y :: Float, height :: Float, gradient :: Float -> Coordinates }
data CalculationResults = CalculationResults { direction :: Float... | timorantalaiho/pong11 | src/GameLogic.hs | bsd-3-clause | 9,113 | 0 | 12 | 1,788 | 2,860 | 1,477 | 1,383 | 173 | 2 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.BaseInstance
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/BaseInstance.hs | bsd-3-clause | 757 | 0 | 4 | 84 | 43 | 35 | 8 | 5 | 0 |
module Options where
import Data.List (foldl')
import System.Console.GetOpt
import System.Environment
import Paths_vty_hangman_helper
data Options = Options
{ scrubOption :: Bool
, wordlistFile :: FilePath
}
defaultOptions :: IO Options
defaultOptions = do
file <- getDataFileName "wordlist1.txt"
return O... | glguy/vty-hangman-helper | Options.hs | bsd-3-clause | 1,146 | 0 | 15 | 277 | 395 | 216 | 179 | 31 | 4 |
----------- Streams --------------
data Stream = Stream [String] | Stream [Stream]
--------- Transitions --------------
data Transitions = Transitions [Streams] | Transitions [Paths]
children :: Stream -> Transitions
leaves :: Stream -> Transitions
tilda :: Stream -> String -> Stream -- or Path(?)
-- ~ in... | anniecherk/pyschocnf | notes/parser_interface/haskell-frontend-spec.hs | bsd-3-clause | 1,486 | 0 | 7 | 251 | 328 | 189 | 139 | 25 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE Type... | louispan/glazier-react | src/Glazier/React/ReactCont.hs | bsd-3-clause | 2,788 | 0 | 16 | 718 | 516 | 283 | 233 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Insomnia.Typecheck.ObservationClause where
import Data.Monoid ((<>))
import Data.Traversable(Traversable(..))
import qualified Unbound.Generics.LocallyNameless as U
import Insomnia.Identifier (Path(..))
import Insomnia.ModuleType (Signature(..), ModuleTypeNF(..), SigV(..))
i... | lambdageek/insomnia | src/Insomnia/Typecheck/ObservationClause.hs | bsd-3-clause | 3,208 | 0 | 17 | 757 | 688 | 365 | 323 | 49 | 5 |
{-# LANGUAGE OverloadedStrings, TupleSections, PackageImports #-}
module Network.PeyoTLS.State (
HandshakeState, initState, PartnerId, newPartnerId, Keys(..), nullKeys,
ContentType(..), Alert(..), AlertLevel(..), AlertDesc(..),
CipherSuite(..), KeyExchange(..), BulkEncryption(..),
randomGen, setRandomGen,
getBuf,... | YoshikuniJujo/forest | subprojects/tls-analysis/server/src/Network/PeyoTLS/State.hs | bsd-3-clause | 4,686 | 64 | 11 | 835 | 1,724 | 960 | 764 | 105 | 1 |
-----------------------------------------------------------------------------
-- |
-- Copyright : (C) 2015 Dimitri Sabadie
-- License : BSD3
--
-- Maintainer : Dimitri Sabadie <dimitri.sabadie@gmail.com>
-- Stability : experimental
-- Portability : portable
-----------------------------------------------------... | apriori/luminance | src/Graphics/Luminance/Blending.hs | bsd-3-clause | 2,227 | 0 | 13 | 498 | 377 | 211 | 166 | 50 | 11 |
-- pilfered from lens package
module Main(main) where
import Build_doctest (deps)
import Control.Applicative
import Control.Monad
import Data.List
import System.Directory
import System.FilePath
import Test.DocTest
main :: IO ()
main = doctest $
"-isource"
: "-itests"
: "-idist/build/autogen"
: "-hide-all-... | Philonous/pontarius-xmpp | tests/Doctest.hs | bsd-3-clause | 1,043 | 0 | 14 | 176 | 303 | 164 | 139 | 31 | 1 |
module Pos.Chain.Ssc.OpeningsMap
( OpeningsMap
) where
import Universum
import Pos.Core.Common (StakeholderId)
import Pos.Chain.Ssc.Opening
type OpeningsMap = HashMap StakeholderId Opening
| input-output-hk/pos-haskell-prototype | chain/src/Pos/Chain/Ssc/OpeningsMap.hs | mit | 237 | 0 | 5 | 67 | 45 | 29 | 16 | 6 | 0 |
{-# LANGUAGE CPP, FlexibleContexts, ScopedTypeVariables #-}
{-
Copyright (C) 2009 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, o... | mduvall/gitit | Network/Gitit/Config.hs | gpl-2.0 | 15,958 | 0 | 18 | 5,006 | 3,089 | 1,571 | 1,518 | 263 | 25 |
module TypeCheckSpec where
import Control.Monad (forM_)
import System.Directory
import System.FilePath
import Test.Tasty.Hspec
import Parser (parseExpr, P(..))
import SpecHelper
import TypeCheck (checkExpr)
hasError :: Either a b -> Bool
hasError (Left _) = True
hasError (Right _) = False
testCasesPath = "testsu... | zhiyuanshi/fcore | testsuite/TypeCheckSpec.hs | bsd-2-clause | 873 | 0 | 20 | 182 | 270 | 140 | 130 | 25 | 1 |
module Language.Swift.Quote (
module Language.Swift.Quote.Syntax,
module Language.Swift.Quote.Parser,
module Language.Swift.Quote.Pretty
) where
import Language.Swift.Quote.Syntax
import Language.Swift.Quote.Parser
import Language.Swift.Quote.Pretty
| steshaw/language-swift-quote | Language/Swift/Quote.hs | bsd-3-clause | 259 | 0 | 5 | 26 | 54 | 39 | 15 | 7 | 0 |
-- | Re-export the common parts of the server framework.
--
module Distribution.Server.Framework (
module Happstack.Server,
module Distribution.Server.Framework.Auth,
module Distribution.Server.Framework.Feature,
module Distribution.Server.Framework.Types,
module Distribution.Server.Framework.Resou... | isomorphism/hackage2 | Distribution/Server/Framework.hs | bsd-3-clause | 912 | 0 | 5 | 93 | 142 | 103 | 39 | 19 | 0 |
{-# LANGUAGE CPP, TypeFamilies #-}
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Safe #-}
#endif
-----------------------------------------------------------------------------
-- The fuel monad
-----------------------------------------------------------------------------
module Compiler.Hoopl.Fuel
( Fuel, infiniteFue... | DavidAlphaFox/ghc | libraries/hoopl/src/Compiler/Hoopl/Fuel.hs | bsd-3-clause | 3,816 | 0 | 13 | 811 | 1,222 | 648 | 574 | 74 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ConstraintKinds #-}
module PlaceHolder where
import Type ( Type )
import Outputable
import Name
import NameSet
import RdrName
import Var
import Coercion
import Data.Data hiding ( Fixity )
import BasicTypes (Fixity)
{-
%*****... | spacekitteh/smcghc | compiler/hsSyn/PlaceHolder.hs | bsd-3-clause | 2,927 | 0 | 9 | 627 | 332 | 197 | 135 | 43 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for ganeti-htools.
-}
{-
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 by
the Free Sof... | badp/ganeti | test/hs/Test/Ganeti/HTools/Instance.hs | gpl-2.0 | 7,803 | 0 | 15 | 1,771 | 1,949 | 1,020 | 929 | 150 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-cloudhsm/gen/Network/AWS/CloudHSM/Types.hs | mpl-2.0 | 6,421 | 0 | 12 | 1,932 | 1,144 | 616 | 528 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable, DeriveFunctor, DeriveFoldable, DeriveTraversable, StandaloneDeriving, TypeFamilies, RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-----------------------------------------------------------------------------
-- |
-- Module : Haddock.Types
-- Copyright : (c) Simon Ma... | lamefun/haddock | haddock-api/src/Haddock/Types.hs | bsd-2-clause | 21,158 | 0 | 13 | 5,294 | 3,986 | 2,268 | 1,718 | 399 | 5 |
{-# LANGUAGE FlexibleContexts #-}
module Control.Search.Combinator.Repeat (repeat) where
import Prelude hiding (lex, until, init, repeat)
import Control.Search.Language
import Control.Search.GeneratorInfo
import Control.Search.Generator
import Control.Search.MemoReader
import Control.Search.Memo
import Control.Mona... | neothemachine/monadiccp | src/Control/Search/Combinator/Repeat.hs | bsd-3-clause | 3,797 | 26 | 32 | 1,540 | 1,150 | 614 | 536 | 72 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[RnBinds]{Renaming and dependency analysis of bindings}
This module does renaming and dependency analysis on value bindings in
the abstract syntax. It does {\em not} do cycle-checks on class or
type-synonym dec... | snoyberg/ghc | compiler/rename/RnBinds.hs | bsd-3-clause | 49,744 | 0 | 22 | 15,477 | 9,325 | 4,926 | 4,399 | 568 | 25 |
{-# LANGUAGE CPP #-}
module Main where
import Prelude hiding (abs)
data Expr = Val Int | Add Expr Expr | Throw | Catch Expr Expr
type Mint = Maybe Int
eval :: Expr -> Mint
eval (Val n) = Just n
eval Throw = Nothing
eval (Catch x y) = case eval x of
Nothing -> eval y
... | conal/hermit | examples/evaluation/Eval.hs | bsd-2-clause | 827 | 0 | 13 | 365 | 323 | 164 | 159 | 24 | 4 |
type Foo = Int
| themattchan/tandoori | input/empty.hs | bsd-3-clause | 15 | 0 | 4 | 4 | 7 | 4 | 3 | 1 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilyDependencies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE UndecidableInstances #-}
module T16512a where
import Data.Kind
( Type )
-- HOAS representation
data ... | sdiehl/ghc | testsuite/tests/typecheck/should_fail/T16512a.hs | bsd-3-clause | 1,252 | 0 | 10 | 348 | 300 | 176 | 124 | 23 | 1 |
-- |Computations in the vectorisation monad concerned with naming and fresh variable generation.
module Vectorise.Monad.Naming
( mkLocalisedName
, mkDerivedName
, mkVectId
, cloneVar
, newExportedVar
, newLocalVar
, newLocalVars
, newDummyVar
, newTyVar
, newCoVar
)
where
import Vectorise.Monad.... | vikraman/ghc | compiler/vectorise/Vectorise/Monad/Naming.hs | bsd-3-clause | 4,130 | 0 | 13 | 972 | 846 | 438 | 408 | 71 | 1 |
module Ite where
{- imports will be added for the PointlessP librasies -}
import PointlessP.Combinators
import PointlessP.RecursionPatterns
import PointlessP.Isomorphisms
import PointlessP.Functors
-- the whole expression will be selected for translation.
notZero = app .
(((curry
... | kmate/HaRe | old/testing/pointwiseToPointfree/Ite_TokOut.hs | bsd-3-clause | 1,167 | 0 | 32 | 695 | 265 | 153 | 112 | 22 | 1 |
module PatIn2 where
foo :: Int
foo = (h h_x) + t
where
(h, t) = head $ (zip [1 .. 10] [3 .. 15])
h_x = undefined
main :: Int
main = foo
| kmate/HaRe | old/testing/addOneParameter/PatIn2_AstOut.hs | bsd-3-clause | 157 | 0 | 10 | 55 | 77 | 45 | 32 | 7 | 1 |
{-@ LIQUID "--totality" @-}
module Totality where
import Prelude hiding (head)
head (x:_) = x
-- head xs = case xs of
-- (x:_) -> x
-- [] -> patError "..."
-- patError :: {v:String | false} -> a
nestcomment n ('{':'-':ss) | n>=0 = (("{-"++cs),rm)
where ... | abakst/liquidhaskell | docs/slides/HS2014/Totality-blank.hs | bsd-3-clause | 903 | 0 | 12 | 294 | 320 | 176 | 144 | 12 | 1 |
-----------------------------------------------------------------------------
--
-- Pretty-printing assembly language
--
-- (c) The University of Glasgow 1993-2005
--
-----------------------------------------------------------------------------
{-# OPTIONS_GHC -fno-warn-orphans #-}
module PPC.Ppr (
pprNatCmmDe... | forked-upstream-packages-for-ghcjs/ghc | compiler/nativeGen/PPC/Ppr.hs | bsd-3-clause | 22,215 | 0 | 18 | 7,861 | 7,315 | 3,598 | 3,717 | 551 | 72 |
module Lib
( someFunc
) where
import Language.Haskell.TH
someFunc :: IO ()
someFunc = putStrLn "aaa"
| mrkkrp/stack | test/integration/tests/717-sdist-test/files/package-with-failing-test/src/Lib.hs | bsd-3-clause | 111 | 0 | 6 | 26 | 33 | 19 | 14 | 5 | 1 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes, TemplateHaskell, TupleSections, GeneralizedNewtypeDeriving #-}
module Yesod.EmbeddedStatic.Css.Util where
import Control.Applicative
import Control.Monad (void, foldM)
import Data.Hashable (Hashable)
import Data.Monoid
import Network.Mime (MimeType, defaultMimeLookup)
impor... | psibi/yesod | yesod-static/Yesod/EmbeddedStatic/Css/Util.hs | mit | 7,964 | 0 | 19 | 1,696 | 2,201 | 1,177 | 1,024 | 141 | 3 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.SVGElement
(getPresentationAttribute, getPresentationAttribute_, focus, blur,
getOwnerSVGElement, getView... | ghcjs/jsaddle-dom | src/JSDOM/Generated/SVGElement.hs | mit | 5,893 | 0 | 13 | 1,042 | 1,323 | 730 | 593 | 95 | 1 |
import Arbitrary
import Test.QuickCheck (Gen)
instance Arbitrary Ternery where
arbitrary = do
n <- choose (0,2) :: Gen Int
return $ case n of
0 -> Yes
1 -> No
_ -> Unknown
| zhangjiji/real-world-haskell | ch11/Arbitrary2.hs | mit | 209 | 0 | 11 | 70 | 78 | 40 | 38 | 9 | 0 |
import Control.Applicative
import Data.List.Split
import Control.Monad
import Debug.Trace
data Gender = Male | Female
deriving (Eq,Show)
main = do
r <- getFile "t4"
writeFile "t4.out" (unlines $ fmap action r)
getFile :: String -> IO [String]
getFile fp = (tail . lines) <$> readFile fp
action :: Strin... | agbell/Rajesh | main.hs | mit | 1,640 | 2 | 12 | 461 | 547 | 278 | 269 | 34 | 2 |
replicate' :: Int -> a -> [a]
replicate' n x = [x | _ <- [1..n]]
replicate'' :: Int -> a -> [a]
replicate'' n x = map (const x) [1..n]
main = do
print $ replicate' 3 True
print $ replicate'' 3 True
| fabioyamate/programming-in-haskell | ch05/ex02.hs | mit | 208 | 1 | 8 | 54 | 117 | 58 | 59 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module PostgREST.OpenAPI (
encodeOpenAPI
, isMalformedProxyUri
, pickProxy
) where
import Control.Lens
import Data.Aeson (decode, encode)
import Data.HashMap.Strict.InsOrd (InsOrdHashMap, fromList)
import Data.Maybe ... | NotBrianZach/postgrest | src/PostgREST/OpenAPI.hs | mit | 11,479 | 0 | 19 | 2,969 | 3,693 | 1,989 | 1,704 | 288 | 4 |
module HSatArbitrary (
) where
| aburnett88/HSat | tests-src/HSatArbitrary.hs | mit | 35 | 0 | 3 | 9 | 7 | 5 | 2 | 1 | 0 |
module L (
module L.Compiler
,module L.ReplTools
,module L.L1.L1
,module L.L2.L2
,module L.L3.L3
,module L.L4.L4
,module L.L5.L5
) where
import L.Compiler
import L.L1.L1
import L.L2.L2
import L.L3.L3
import L.L4.L4
import L.L5.L5
import L.ReplTools | joshcough/L5-Haskell | src/L.hs | mit | 257 | 0 | 5 | 41 | 93 | 63 | 30 | 15 | 0 |
module GHCJS.DOM.FontLoader (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/FontLoader.hs | mit | 40 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
{-# LANGUAGE QuasiQuotes #-}
module TestDataSpec ( testGetAllBoids
, testGetBoidById
, testGetBoidsGroupById
) where
import Test.HUnit
import Test.HUnit.Approx
import TestData
import Boids
import Text.XML.Light.Input
import Data.List
import Data.Function
imp... | tsoding/boids | test/TestDataSpec.hs | mit | 6,617 | 0 | 12 | 2,457 | 1,219 | 711 | 508 | 79 | 1 |
module Text.Docvim.Visitor.Functions (extractFunctions) where
import Control.Applicative
import Text.Docvim.AST
import Text.Docvim.Visitor
-- | Extracts a list of nodes (if any exist) from the `@functions` section(s) of
-- the source code.
--
-- It is not recommended to have multiple `@functions` sections in a projec... | wincent/docvim | lib/Text/Docvim/Visitor/Functions.hs | mit | 704 | 0 | 9 | 127 | 104 | 63 | 41 | 9 | 2 |
{- Copyright (C) 2014 Calvin Beck
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, ... | Chobbes/FeatureSquish | FeatureSquish/Parser.hs | mit | 3,456 | 0 | 15 | 918 | 595 | 299 | 296 | -1 | -1 |
module Wf.Control.Eff.Run.Logger.File
(
) where
| bigsleep/Wf | src/Wf/Control/Eff/Run/Logger/File.hs | mit | 48 | 0 | 3 | 5 | 13 | 10 | 3 | 2 | 0 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.SVGPathSegMovetoAbs
(setX, getX, setY, getY, SVGPathSegMovetoAbs(..),
gTypeSVGPathSegMovetoAbs)
wh... | ghcjs/jsaddle-dom | src/JSDOM/Generated/SVGPathSegMovetoAbs.hs | mit | 2,049 | 0 | 12 | 249 | 536 | 324 | 212 | 29 | 1 |
{-# LANGUAGE DeriveGeneric #-}
module Foundation where
import Import.NoFoundation
import Database.Persist.Sql (ConnectionPool, runSqlPool)
import Text.Hamlet (hamletFile)
import Text.Jasmine (minifym)
import Yesod.Auth.OAuth2.Google
import Yesod.Auth.OAuth2 (getAccessToken, getUserResponseJSON)
-- ... | frt/happyscheduler | Foundation.hs | mit | 9,994 | 0 | 16 | 2,481 | 1,392 | 751 | 641 | -1 | -1 |
-- C->Haskell Compiler: traversals of C structure tree
--
-- Author : Manuel M. T. Chakravarty
-- Created: 16 October 99
--
-- Copyright (c) [1999..2001] Manuel M. T. Chakravarty
--
-- This file is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as publ... | ian-ross/c2hs-macos-test | c2hs-0.26.1/src/C2HS/C/Trav.hs | mit | 36,572 | 0 | 23 | 11,102 | 7,623 | 4,031 | 3,592 | 501 | 11 |
module MyRandom where
import System.Random
import Test.QuickCheck
type MyRandom a = StdGen -> (a,StdGen)
-- Standard Random Number Generator seeded with 0
zeroSeed :: StdGen
zeroSeed = mkStdGen 0
-- System.Random.random is of type MyRandom a
-- - if a implements the Random type class
-- For example, try
-- :t ... | PavelClaudiuStefan/FMI | An_3_Semestru_1/ProgramareDeclarativa/Extra/Laborator/Laborator 9/MyRandom.hs | cc0-1.0 | 2,229 | 0 | 11 | 468 | 511 | 284 | 227 | 32 | 1 |
module Render (
renderObjects,
renderGun,
renderHud,
GameData(..)
) where
import MD3
import Object
import Graphics.Rendering.OpenGL
import Data.IORef
import Data.Maybe
import Camera
import Matrix
import Frustum
import BSP
import Data.HashTable.IO as H
import Visibility
import TextureFonts
import Cont... | pushkinma/frag | src/Render.hs | gpl-2.0 | 10,435 | 0 | 27 | 4,169 | 3,131 | 1,569 | 1,562 | 195 | 2 |
--
-- Copyright (c) 2013 Bonelli Nicola <bonelli@antifork.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--... | beni55/cgrep | src/CGrep/Semantic/Generic/Token.hs | gpl-2.0 | 10,210 | 0 | 16 | 3,193 | 3,400 | 1,794 | 1,606 | 155 | 9 |
{-# LANGUAGE
FlexibleInstances
, TypeSynonymInstances
#-}
{- |
Module : $Header$
Description : OMDoc-XML conversion
Copyright : (c) Ewaryst Schulz, DFKI 2009
License : GPLv2 or higher, see LICENSE.txt
Maintainer : ewaryst.schulz@dfki.de
Stability : provisional
Portability : portable
The tra... | nevrenato/Hets_Fork | OMDoc/XmlInterface.hs | gpl-2.0 | 20,993 | 0 | 17 | 6,679 | 6,097 | 3,004 | 3,093 | 425 | 3 |
module Main where
import Data.Int
fib :: Int64 -> Int64
fib n =
let tr i acc = if i < 2 then acc else tr (i-2) (fib (i-1) + acc) in
tr n 1
main =
print (fib 38)
| uelis/intc | Examples/Comparison/fib_rec_tailrec.hs | gpl-2.0 | 175 | 0 | 15 | 54 | 102 | 53 | 49 | 8 | 2 |
module Menu where
import Affection as A
import qualified SDL
import qualified Data.Set as S
import Control.Monad
import Control.Concurrent.MVar
import NanoVG
-- internal imports
import Types
import Commons
loadMenu :: Affection () -> UserData -> Affection ()
loadMenu stateChange ud = do
liftIO $ logIO A.Debug... | nek0/haskelloids | src/Menu.hs | gpl-3.0 | 2,206 | 0 | 20 | 553 | 881 | 422 | 459 | 57 | 4 |
Config { font = "xft:Inconsolata:bold:size=16"
, additionalFonts = []
, borderColor = "grey"
, border = BottomB
, bgColor = "black"
, fgColor = "white"
, alpha = 255
, position = Top
, textOffset = -1
, iconOffset = -1
, lowerOnStart = True
, ... | akermu/akermu-xmonad | src/xmobar.hs | gpl-3.0 | 1,358 | 0 | 9 | 389 | 290 | 175 | 115 | -1 | -1 |
{-# LANGUAGE DeriveGeneric #-}
module Estuary.Types.TidalParser where
import GHC.Generics
import Data.Aeson
data TidalParser = MiniTidal | CQenze | LaCalle | Sucixxx | Togo | BlackBox
deriving (Show,Read,Eq,Ord,Generic)
instance ToJSON TidalParser where
toEncoding = genericToEncoding defaultOptions
instance Fro... | d0kt0r0/estuary | common/src/Estuary/Types/TidalParser.hs | gpl-3.0 | 338 | 0 | 6 | 46 | 86 | 49 | 37 | 9 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Views.Home (
homeView
) where
import Text.Blaze.Html5
import Text.Blaze.Html5.Attributes
import Views.Index (layout)
import Views.Util (blaze)
import Web.Scotty (ActionM)
import qualified ... | aaronlevin/weirdcanada-site | Views/Home.hs | gpl-3.0 | 553 | 0 | 12 | 188 | 124 | 73 | 51 | 14 | 1 |
{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans -i.. #-}
{-# LANGUAGE GADTs, RankNTypes, ScopedTypeVariables, ImpredicativeTypes #-}
module Utils.Common(M, ClsrId, SSAVar, Rator, GenRator(..), mapGenRator,
ratorSubstitute, IRMonad, freshVarName, runIRMonad,
irGetCustom, irPutCus... | sanjoy/echoes | src/Utils/Common.hs | gpl-3.0 | 1,871 | 0 | 12 | 362 | 696 | 386 | 310 | 39 | 1 |
module Problems61thru69 where
import ADT.Tree
-- Problem 61
--
-- Count the leaves of a binary tree
--
-- A leaf is a node with no successors. Write a predicate count_leaves/2 to
-- count them.
countLeaves :: Tree a -> Int
countLeaves Nil = 0
countLeaves (Node Nil _ Nil) = 1
countLeaves (Node l x r) = countLeaves ... | zcesur/h99 | src/Problems61thru69.hs | gpl-3.0 | 1,401 | 0 | 8 | 315 | 356 | 192 | 164 | 18 | 1 |
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
module Network.APNS.Protocol where
import Network.APNS.Protocol.Types
import Network.APNS.Protocol.Binary
| tiago-loureiro/apns | src/Network/APNS/Protocol.hs | mpl-2.0 | 310 | 0 | 4 | 46 | 24 | 18 | 6 | 3 | 0 |
-- module for dealing with pixmaps that are needed for the application generally,
-- like menus, general OSDs, etc.
module Base.Application.Pixmaps (
loadApplicationPixmaps,
) where
import Data.Abelian
import System.FilePath
import Graphics.Qt
import Base.Paths
import Base.Types
import Base.Constants
impor... | nikki-and-the-robots/nikki | src/Base/Application/Pixmaps.hs | lgpl-3.0 | 1,575 | 0 | 15 | 321 | 478 | 241 | 237 | 35 | 1 |
module MyMaybes where
isJust :: Maybe a -> Bool
isJust Nothing = False
isJust _ = True
isNothing :: Maybe a -> Bool
isNothing = not . isJust
mayybee :: b -> (a -> b) -> Maybe a -> b
mayybee def _ Nothing = def
mayybee _ f (Just a) = f a
fromMaybe :: a -> Maybe a -> a
fromMaybe def a = mayybee def id a
listToMaybe ... | thewoolleyman/haskellbook | 12/05/maor/myMaybes.hs | unlicense | 699 | 0 | 10 | 161 | 345 | 175 | 170 | 24 | 1 |
--file: ch07/actions.hs
main :: IO ()
main = do
str2action "Staring Program..."
printall
str2action "Done!"
str2action :: String -> IO ()
str2action input = putStrLn $ "Data: " ++ input
list2actions :: [String] -> [IO ()]
list2actions = map str2action
numbers :: [Int]
numbers = [0..10]
strings :: [String]
strin... | willsalz/Real-World-Haskell | ch07/actions.hs | unlicense | 519 | 0 | 8 | 100 | 224 | 114 | 110 | 20 | 1 |
{-# LANGUAGE OverloadedStrings, CPP #-}
module FormStructure.Chapter6 (ch6DataManagement) where
#ifndef __HASTE__
--import Data.Text.Lazy (pack)
#endif
import FormEngine.FormItem
import FormStructure.Common
ch6DataManagement :: FormItem
ch6DataManagement = Chapter
{ chDescriptor = de... | DataStewardshipPortal/ds-elixir-cz | FormStructure/Chapter6.hs | apache-2.0 | 4,716 | 0 | 22 | 2,614 | 608 | 364 | 244 | 72 | 1 |
{-# LANGUAGE Rank2Types #-}
module Main where
import Codec.Sarsi (Event)
import Codec.Sarsi.SBT.Machine (eventProcess)
import qualified Data.List as List
import Data.Machine (ProcessT, autoM, runT_, (<~))
import qualified Data.Text.IO as TextIO
import Sarsi (Topic, getBroker, getTopic)
import qualified Sarsi as Sarsi... | aloiscochard/sarsi | sarsi-sbt/Main.hs | apache-2.0 | 1,561 | 0 | 12 | 259 | 548 | 301 | 247 | 37 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Graphics.GL.TextBuffer.Types where
import Graphics.GL.Pal
import Data.Sequence (Seq)
import Control.Lens.Extra
import Graphics.GL.Freetype.Types
import Halive.FileListener
import Control.Concurrent.STM
type TextSeq = Seq (Seq Char)
type C... | lukexi/text-gl | src/Graphics/GL/TextBuffer/Types.hs | bsd-2-clause | 1,734 | 0 | 13 | 471 | 432 | 245 | 187 | 88 | 0 |
module Util(
createStateDir, stateDir
) where
import BasicPrelude
import System.Directory (getHomeDirectory, createDirectoryIfMissing)
createStateDir = stateDir >>= createDirectoryIfMissing False
stateDir = flip mappend "/.iron-tracker" <$> getHomeDirectory
| mindreader/iron-tracker | Util.hs | bsd-3-clause | 264 | 0 | 6 | 31 | 54 | 31 | 23 | 6 | 1 |
module Arhelk.Armenian.Lemma.Adjective(
adjective
) where
import Arhelk.Core.Rule
import Arhelk.Armenian.Lemma.Common
import Arhelk.Armenian.Lemma.Data
import Control.Monad
import Data.Text as T
adjective :: Text -> Rule AdjectiveProperties
adjective w = do
propose adjQuantity GrammarSingle $ do
when (w... | Teaspot-Studio/arhelk-armenian | src/Arhelk/Armenian/Lemma/Adjective.hs | bsd-3-clause | 372 | 0 | 14 | 55 | 105 | 62 | 43 | 11 | 1 |
{-# LANGUAGE Safe #-}
module Data.Logic.Term (
Term (..), Unbound
) where
import Control.Monad.Predicate.Internal
| YellPika/tlogic | src/Data/Logic/Term.hs | bsd-3-clause | 120 | 0 | 5 | 20 | 27 | 19 | 8 | 4 | 0 |
module Shell.UI.Vty
( start
) where
import Control.Applicative
import Control.Concurrent
import Control.Concurrent.STM
import Control.Monad
import qualified Data.Text as T
import Graphics.Vty
import Graphics.Vty.Widgets.All
import ... | yuttie/mash | Shell/UI/Vty.hs | bsd-3-clause | 2,255 | 0 | 18 | 787 | 654 | 304 | 350 | 60 | 5 |
module BinaryCode where
import Data.Bits hiding (xor)
import Data.Char
import Data.Word
import qualified Data.DList as DL
import Control.Monad.Writer
import Numeric
import qualified Data.List as L
import qualified CommonTypes as CT
import Prelude hiding (div, mod, and)
type BinaryCode = Writer (DL.DList Word16)
bina... | dan-t/dcpu16 | BinaryCode.hs | bsd-3-clause | 3,765 | 0 | 13 | 1,013 | 1,424 | 801 | 623 | 132 | 15 |
module LongestCommonSubsequence where
import Data.List (intersect, maximumBy, subsequences)
import Data.Ord (comparing)
-- | Find the longest common subsequence of two strings (4 kyu)
-- | Link: https://biturl.io/lcs
-- | My original solution
lcs :: String -> String -> String
lcs [] _ = []
lcs _ [] = []
lcs s@(x:xs)... | Eugleo/Code-Wars | src/string-kata/LongestCommonSubsequence.hs | bsd-3-clause | 619 | 0 | 8 | 115 | 209 | 111 | 98 | 12 | 1 |
module Dummy(module Test.Hspec) where
import Test.Hspec
| mwotton/string-similarity | test/dummy.hs | bsd-3-clause | 56 | 0 | 5 | 6 | 17 | 11 | 6 | 2 | 0 |
{-# LANGUAGE FlexibleContexts,
GADTs,
QuasiQuotes #-}
-- |
-- Module : BackEnd.CPP
-- Copyright : (c) Radek Micek 2010
-- License : BSD3
-- Stability : experimental
--
-- Generates C++ code.
--
module BackEnd.CPP
(
generateCode
) where
import Core.Rule
import Data... | radekm/crep | BackEnd/CPP.hs | bsd-3-clause | 48,734 | 640 | 27 | 17,246 | 9,187 | 5,825 | 3,362 | 301 | 16 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.JHC
-- Copyright : Isaac Jones 2003-2006
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- This module contains most of the JHC-specific code for... | sopvop/cabal | Cabal/Distribution/Simple/JHC.hs | bsd-3-clause | 7,754 | 0 | 17 | 1,828 | 1,861 | 994 | 867 | 138 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.