code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module CabalApiSpec where
import Control.Applicative
import Test.Hspec
import CabalApi
spec :: Spec
spec = do
describe "cabalAllDependPackages" $ do
it "extracts dependent packages" $ do
pkgs <- cabalAllDependPackages <$> cabalParseFile "test/data/cabalapi.cabal"
pkgs `shouldBe` ["... | eagletmt/ghc-mod | test/CabalApiSpec.hs | bsd-3-clause | 1,472 | 0 | 16 | 236 | 134 | 66 | 68 | 15 | 1 |
{-# LANGUAGE TemplateHaskell #-}
-- | This module contains high-level functions for parsing input files
module YaLedger.Parser
(parseInputFiles,
readCoA,
readAMap
) where
import Control.Applicative ((<$>))
import Control.Concurrent.ParallelIO
import Data.Maybe
import Data.List
import Text.Parsec
import Syste... | portnov/yaledger | YaLedger/Parser.hs | bsd-3-clause | 3,108 | 1 | 24 | 846 | 810 | 407 | 403 | 76 | 3 |
{-# LANGUAGE OverloadedStrings, TupleSections, FlexibleContexts #-}
-- | This program is a convenience utility for running the Futhark
-- test suite, and its test programs.
module Main (main) where
import Control.Applicative
import Control.Concurrent
import Control.Monad hiding (forM_)
import Control.Exception hiding... | mrakgr/futhark | src/futhark-test.hs | bsd-3-clause | 18,607 | 12 | 28 | 4,731 | 5,209 | 2,644 | 2,565 | 399 | 7 |
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
-- Module : Miso.Html.Element
-- Copyright : (C) 2016-2018 David M. Johnson
-- License : BSD3-style (see the file LICENSE)
-- Maintainer : David M. Johnson <djohnson.m@gmail.com>
-- Stab... | dmjio/miso | src/Miso/Html/Element.hs | bsd-3-clause | 19,525 | 0 | 10 | 2,888 | 4,396 | 2,333 | 2,063 | 323 | 1 |
{-|
Module : Idris.REPL
Description : Main function to decide Idris' mode of use.
License : BSD3
Maintainer : The Idris Community.
-}
module Idris.Main
( idrisMain
, idris
, runMain
, runClient -- taken from Idris.REPL.
, loadInputs -- taken from Idris.ModeCommon
) where
import Idris.AbsSyntax
im... | eklavya/Idris-dev | src/Idris/Main.hs | bsd-3-clause | 11,179 | 0 | 25 | 4,408 | 3,059 | 1,457 | 1,602 | 231 | 25 |
{-# LANGUAGE TemplateHaskell #-}
module Building where
import Control.Lens
import Control.Monad.State
import Utils
type BuildingIdP world = ObjId (BuildingP world)
data BuildingType =
BuildingField
| BuildingBrewery
deriving Show
data BuildingInt = FieldTimer Int
data BuildingState =
BuildingBuildi... | Laquendi/neflEFortress | Building.hs | mit | 1,108 | 0 | 11 | 241 | 294 | 164 | 130 | 35 | 1 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="ar-SA">
<title>Support for the Open API Specification | ZAP Extension</title>
<maps>
<homeI... | veggiespam/zap-extensions | addOns/openapi/src/main/javahelp/org/zaproxy/zap/extension/openapi/resources/help_ar_SA/helpset_ar_SA.hs | apache-2.0 | 1,000 | 106 | 29 | 164 | 440 | 217 | 223 | -1 | -1 |
module One where
--Find last elem of a lsit
last1 :: (Eq a) => [a] -> a
last1 (a:[]) = a
last1 (a:as) = last1 as | michael-j-clark/hjs99 | src/main/java/src/main/java/src/One.hs | bsd-3-clause | 115 | 0 | 8 | 28 | 61 | 34 | 27 | 4 | 1 |
{-# LANGUAGE ForeignFunctionInterface, DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
-- | A port of the direct-sqlite package for dealing directly with
-- 'PersistValue's.
module Database.Sqlite (
Connection,
Statement,
... | psibi/persistent | persistent-sqlite/Database/Sqlite.hs | mit | 26,326 | 0 | 23 | 6,401 | 5,880 | 2,985 | 2,895 | 513 | 15 |
-- | Define a position datatype for giving locations in error messages.
module Text.XML.HaXml.Posn
(
-- * Position type
Posn()
-- ** Constructors of a new position
, posInNewCxt -- :: String -> Maybe Posn -> Posn
, noPos -- :: Posn
-- ** Strictifier
, forcep
-- ** Modifiers
, addcol, n... | alexbaluta/courseography | dependencies/HaXml-1.25.3/src/Text/XML/HaXml/Posn.hs | gpl-3.0 | 2,597 | 0 | 12 | 819 | 618 | 330 | 288 | 50 | 1 |
module Hint.Base (
MonadInterpreter(..), RunGhc,
--
GhcError(..), InterpreterError(..), mayFail, catchIE,
--
InterpreterSession, SessionData(..), GhcErrLogger,
InterpreterState(..), fromState, onState,
InterpreterConfiguration(..),
--
runGhc1, runGhc2, runGhc3, runGhc4, runGhc5,
... | konn/hint-forked | src/Hint/Base.hs | bsd-3-clause | 8,214 | 0 | 15 | 2,679 | 1,912 | 1,047 | 865 | 129 | 4 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="fil-PH">
<title>All In One Notes Add-On</title>
<maps>
<homeID>top</homeID>
<mapref loc... | kingthorin/zap-extensions | addOns/allinonenotes/src/main/javahelp/org/zaproxy/zap/extension/allinonenotes/resources/help_fil_PH/helpset_fil_PH.hs | apache-2.0 | 969 | 114 | 29 | 159 | 436 | 214 | 222 | -1 | -1 |
{-# LANGUAGE TypeFamilies, PolyKinds, DataKinds, GADTs, FlexibleInstances #-}
module T14045a where
import Data.Kind
class C (a :: k) where
data S (a :: k)
-- This used to fail with the mysterious error
-- Type indexes must match class instance head
-- Expected: S z
-- Actual: S a
-- But now it is fine
i... | sdiehl/ghc | testsuite/tests/indexed-types/should_fail/T14045a.hs | bsd-3-clause | 414 | 0 | 7 | 102 | 82 | 50 | 32 | 9 | 0 |
{-# Language PatternGuards #-}
module Blub
( blub
, foo
, bar
) where
import Ugah.Foo
import Control.Applicative
import Ugah.Blub
f :: Int -> Int
f = (+ 3)
g :: Int -> Int
g =
where
| jystic/hsimport | tests/inputFiles/SymbolTest16.hs | bsd-3-clause | 198 | 0 | 5 | 53 | 63 | 39 | 24 | -1 | -1 |
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.BuildReports.Types
-- Copyright : (c) Duncan Coutts 2009
-- License : BSD-like
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- Typ... | tolysz/prepare-ghcjs | spec-lts8/cabal/cabal-install/Distribution/Client/BuildReports/Types.hs | bsd-3-clause | 1,462 | 0 | 11 | 293 | 289 | 167 | 122 | 29 | 1 |
{- Test code for Data.HashTable -}
module Main(main) where
import Prelude hiding (lookup)
import qualified Prelude (lookup)
import Data.Maybe(isJust,isNothing)
import Data.Int(Int32)
import Test.QuickCheck
import System.IO.Unsafe(unsafePerformIO)
import Data.HashTab
import Control.Monad(liftM2, foldM)
import System.R... | olsner/ghc | testsuite/tests/programs/maessen-hashtab/HashTest.hs | bsd-3-clause | 7,975 | 0 | 17 | 2,309 | 3,550 | 1,788 | 1,762 | 219 | 8 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF l... | jcgruenhage/dendrite | vendor/src/github.com/apache/thrift/lib/hs/src/Thrift/Protocol.hs | apache-2.0 | 4,930 | 0 | 14 | 966 | 1,239 | 670 | 569 | 100 | 12 |
{-# LANGUAGE SafeLanguage, Unsafe #-}
-- | Basic test to see if Safe flags compiles
module SafeFlags07 where
f :: Int
f = 1
| urbanslug/ghc | testsuite/tests/safeHaskell/flags/SafeFlags07.hs | bsd-3-clause | 127 | 0 | 4 | 27 | 16 | 11 | 5 | 4 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Control.Applicative ((<$>), (<*>))
import Control.Monad (unless)
import Data.Default (def)
import Data.Text (Text)
import Network.HTTP.Conduit (withManager)
import System.Environment (getEnv)
import Web.Authenticate.OAuth (OAuth(..))
import Web.Authent... | pbrisbin/mini-tweet | main.hs | mit | 1,469 | 0 | 17 | 333 | 451 | 250 | 201 | 39 | 1 |
-- | <http://strava.github.io/api/v3/activities/>
module Strive.Actions.Activities
( createActivity
, getActivity
, updateActivity
, deleteActivity
, getCurrentActivities
, getRelatedActivities
, getFeed
, getActivityZones
, getActivityLaps
) where
import Data.Aeson (encode)
import Data.ByteString.... | bitemyapp/strive | library/Strive/Actions/Activities.hs | mit | 4,156 | 0 | 16 | 599 | 964 | 521 | 443 | 70 | 2 |
----------------------------------------------------------------
--
-- | Compilation
-- Monad and combinators for quickly assembling simple
-- compilers.
--
-- @Control\/Compilation\/Sequences.hs@
--
-- A generic compilation monad for quickly assembling simple
-- compilers for target languages that are primaril... | lapets/compilation | Control/Compilation/Sequences.hs | mit | 1,779 | 0 | 12 | 337 | 334 | 176 | 158 | 26 | 0 |
{-# LANGUAGE OverloadedLists #-}
-----------------------------------------------------------------------------
-- |
-- Module : Algebra.Graph.Test.Internal
-- Copyright : (c) Andrey Mokhov 2016-2022
-- License : MIT (see the file LICENSE)
-- Maintainer : andrey.mokhov@gmail.com
-- Stability : experimental
--
-... | snowleopard/alga | test/Algebra/Graph/Test/Internal.hs | mit | 771 | 0 | 10 | 126 | 97 | 58 | 39 | 10 | 1 |
module Solver where
import Data
import Commands
topDownPhraseRun :: Board -> [Unit] -> [[Command]] -> [Command]
topDownPhraseRun = topDownPhraseRun'
topDownPhraseRun' :: Board -> [Unit] -> [[Command]] -> [Command]
topDownPhraseRun' board units [] = topDownRun board units
topDownPhraseRun' board (u:us) commands =
... | marcellussiegburg/icfp-2015 | Solver.hs | mit | 2,315 | 0 | 19 | 644 | 878 | 463 | 415 | 51 | 5 |
{-# LANGUAGE BangPatterns #-}
module Data.NGH.QualityControl
( avgVarQualities
, avgVarQualitiesConduit
, gcByPosition
, gcCount
, vAverage
) where
import Data.Word
import Data.Conduit
import Data.NGH.FastQ
import Data.List (foldl')
import qualified Data.ByteString as S
import qualified Data.By... | luispedro/NGH | Data/NGH/QualityControl.hs | mit | 2,946 | 0 | 15 | 856 | 1,178 | 636 | 542 | 59 | 2 |
module Main where
import Protolude
import Control.Concurrent.Async (withAsync)
import qualified Data.List.NonEmpty as NE
import Network.Wai.Application.Static (defaultFileServerSettings,
staticApp)
import qualified Network.Wai.Handler.Warp... | seagreen/hjsonschema | test/Remote.hs | mit | 2,148 | 0 | 20 | 765 | 478 | 246 | 232 | 47 | 4 |
module Main where
import Control.Exception
import Control.Lens
import Control.Monad
import Data.Default
import Data.List.NonEmpty (NonEmpty(..))
import qualified Data.List.NonEmpty as NE
import Data.Monoid
import Data.Text (Text)
import Te... | typeable/dom-parser | test/Main.hs | mit | 11,044 | 0 | 20 | 2,659 | 2,648 | 1,263 | 1,385 | -1 | -1 |
{-# LANGUAGE TypeFamilies, FlexibleContexts, UndecidableInstances #-}
module Data.VectorSpace.OpenGL where
import Data.VectorSpace
import Data.AffineSpace
import Data.Cross
import Graphics.Rendering.OpenGL
import Control.Applicative
import qualified Data.Foldable as F
-- Vector1
instance (AdditiveGroup a) => Additiv... | scan/Colin | src/Data/VectorSpace/OpenGL.hs | mit | 7,954 | 0 | 10 | 2,142 | 3,644 | 1,920 | 1,724 | 180 | 0 |
module Euler9.Euler9
( main ) where
import Data.Monoid
import Control.Monad.Reader
tripletProduct :: (Integer, Integer, Integer) -> Integer
tripletProduct (a, b, c) = a * b * c
mPairToTriplet :: Reader Integer ((Integer, Integer) -> Maybe (Integer, Integer, Integer))
mPairToTriplet = do
t <- ask
return $ pairToT... | ublubu/euler | Euler9/Euler9.hs | mit | 1,811 | 0 | 18 | 402 | 707 | 384 | 323 | 41 | 2 |
module Main where
import Interpret
import Parse
import Value
import System.IO
import System.Environment
import Control.Applicative
main = do
args <- getArgs
if null args
then putStrLn "No input file."
else do
let filename = head args
handle <- openFile filename ReadMode
code <... | sqd/haskell-C89-interpreter | Main.hs | mit | 479 | 0 | 13 | 139 | 172 | 84 | 88 | 20 | 2 |
module Main where
import Control.Applicative ((<$>), (<*>))
import System.Directory (getAppUserDataDirectory, getTemporaryDirectory)
import System.Environment (getArgs)
import System.FilePath ((</>))
import Hsbin
import Hsbin.Types
main :: IO ()
main = do
henv <- HsbinEnv
<$> getAppUserDataDirectory ... | iquiw/hsbin | src/Main.hs | mit | 461 | 0 | 11 | 93 | 135 | 76 | 59 | 15 | 1 |
module Main where
import Data.Domain (Domain, getDefaultDomain, invokeCommand)
import Data.Domain.Command (Command, getCommand)
import Data.Domain.Event (Event(Finished))
main :: IO ()
main = do
putStrLn "Commands: (s) to switch the light switch, (q) to quit."
loop getDefaultDomain
... | a4099181/LearningHaskell | src/Console.hs | mit | 875 | 0 | 18 | 229 | 277 | 138 | 139 | 28 | 3 |
module Data.Lambda.Term where
data Term t = Var String
| Abs String t (Term t)
| App (Term t) (Term t)
| Let String t (Term t) (Term t)
| srijs/haskell-lambda-term-zipper | src/Data/Lambda/Term.hs | mit | 173 | 0 | 8 | 66 | 74 | 41 | 33 | 5 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Templates.Home
( homePage
, aboutPage
) where
import Web.Scotty
import Text.Blaze.Html5
import Text.Blaze.Html5.Attributes
import qualified Web.Scotty as S
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import Text.Blaze.H... | tpoulsen/RecipeScaler | templates/Home.hs | mit | 2,782 | 1 | 32 | 1,043 | 793 | 364 | 429 | 60 | 1 |
{-# LANGUAGE CPP #-}
{- |
Module : $Header$
Description : special ShATermConvertible instances
Copyright : (c) Klaus Luettich, C. Maeder, Uni Bremen 2005-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : non-portable (overla... | nevrenato/Hets_Fork | Common/ATerm/ConvInstances.hs | gpl-2.0 | 5,357 | 0 | 23 | 1,285 | 1,689 | 877 | 812 | 110 | 1 |
-- Implicit CAD. Copyright (C) 2011, Christopher Olah (chris@colah.ca)
-- Copyright (C) 2014 2015, Julia Longtin (julial@turinglace.com)
-- Released under the GNU GPL, see LICENSE
-- We'd like to parse openscad code, with some improvements, for backwards compatability.
module Graphics.Implicit.ExtOpenScad (runOpensca... | silky/ImplicitCAD | Graphics/Implicit/ExtOpenScad.hs | gpl-2.0 | 1,621 | 0 | 18 | 314 | 379 | 229 | 150 | 25 | 2 |
{-# LANGUAGE PackageImports, RecursiveDo #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
import "GLFW-b" Graphics.UI.GLFW as GLFW
import Graphics.Gloss hiding (play)
import Graphics.Gloss.Rendering
import Graphics.Gloss.Data.ViewPort
import System.Exit ( exitSuccess, exitFailure )
import Control.Concurrent (threadDelay... | newmana/last-chance-to-see | src/Sounds.hs | gpl-2.0 | 1,528 | 4 | 18 | 269 | 478 | 248 | 230 | -1 | -1 |
module Lamdu.Formatting
( Format(..)
, formatTextContents
) where
import qualified Control.Lens as Lens
import Control.Monad (mplus)
import qualified Data.ByteString.Base16 as Hex
import qualified Data.Char as Char
import qualified Data.Text as Text
import Data.Text.Encoding (encodeUtf8... | lamdu/lamdu | src/Lamdu/Formatting.hs | gpl-3.0 | 2,194 | 0 | 17 | 661 | 790 | 407 | 383 | 58 | 3 |
-- https://hackage.haskell.org/package/base-4.8.0.0/docs/Data-Either.html#t:Either
module TB.Data.Either.Instance.Examples (
) where
-- $setup
-- >>> import Control.Applicative
-- >>> import Control.Monad
-- >>> import Control.Monad.Fix
-- >>> import Data.Foldable as F
-- >>> import Data.Monoid
-- >>> import Data.Typ... | adarqui/ToyBox | haskell/base/data/either/src/TB/Data/Either/Instance/Examples.hs | gpl-3.0 | 1,651 | 0 | 3 | 384 | 102 | 99 | 3 | 1 | 0 |
{-# LANGUAGE LambdaCase #-}
module Main where {
import qualified ChaCha;
import Util;
import System.Environment(getArgs);
main :: IO();
main = getArgs >>= \case {[n] -> ChaCha.example $ Double_rounds $ read n };
}
| kenta2/yescrypt | demo-chacha.hs | gpl-3.0 | 214 | 0 | 11 | 33 | 74 | 46 | 28 | 7 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE IncoherentInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module TPL.Pack where
import qualified TPL.Error as Err
import TPL.Value
class Extract a where extract :: Value -> Result a
class Pack a where pack :: a ->... | TikhonJelvis/TPL | src/TPL/Pack.hs | gpl-3.0 | 1,893 | 0 | 9 | 437 | 680 | 345 | 335 | 45 | 1 |
module Utils
( replaceElem
, updateElem
, findElem
, randomElemM
, randomShuffleM
, randomPermM
, validateAmount
) where
import Control.Monad.Random
import Data.List
import qualified Data.Map as Map
replaceElem :: Int -> a -> [a] -> [a]
replaceElem _ _ [] = []
replaceElem idx a as = as'
where... | thalerjonathan/phd | thesis/code/barter/haskell/src/Utils.hs | gpl-3.0 | 2,113 | 0 | 16 | 678 | 833 | 431 | 402 | 64 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-clouderrorreporting/gen/Network/Google/Resource/CloudErrorReporting/Projects/Groups/Get.hs | mpl-2.0 | 4,838 | 0 | 15 | 1,042 | 699 | 410 | 289 | 101 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/RegionInstanceGroupManagers/Resize.hs | mpl-2.0 | 5,812 | 0 | 18 | 1,282 | 582 | 348 | 234 | 92 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module App.Session where
import qualified Data.Map as M
import Data.Text (Text)
import GHC.Conc.Sync (TVar, atomically, newTVar, readTVar, writeTVar)
import Misc.Crypto (generateKey)
import qualified Models.User as User
type SessionStore =... | inq/agitpunkt | app/App/Session.hs | agpl-3.0 | 934 | 0 | 10 | 206 | 268 | 144 | 124 | 22 | 1 |
{-# LANGUAGE TypeOperators, ScopedTypeVariables
, FlexibleContexts, TypeFamilies
#-}
{-# OPTIONS_GHC -Wall #-}
----------------------------------------------------------------------
-- |
-- Module : Shady.RunImage
-- Copyright : (c) Conal Elliott 2009
-- License : AGPLv3
--
-- Maintainer : ... | conal/shady-render | src/Shady/RunImage.hs | agpl-3.0 | 809 | 0 | 9 | 127 | 124 | 76 | 48 | 10 | 1 |
{- |
Module : $Header$
Description : Solution to problem 34
License : PublicDomain
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.
Find the sum of all numbers which are equal to the sum of the factorial
of their digits.
Note: as 1! = 1 and 2! = 2 are not sums they are not included.
-}
module ... | jhnesk/project-euler | src/Solutions/Problem034.hs | unlicense | 512 | 0 | 12 | 122 | 81 | 45 | 36 | 5 | 1 |
-- | Defines a type class for clausal forms.
module Akarui.FOL.Clausal where
-- class (KnowledgeBase c) => Clause c where
class Clausal c where
-- | Number of positive literals in the clause.
numPositive :: c -> Int
-- | Number of negative literals in the clause.
numNegative :: c -> Int
-- | Number of lite... | PhDP/Manticore | Akarui/FOL/Clausal.hs | apache-2.0 | 1,183 | 0 | 10 | 287 | 249 | 130 | 119 | 18 | 0 |
import Data.Char (toUpper)
main :: IO ()
--main = interact $ map toUpper . (++) "Your data, in uppercase, is:\n\n"
main = interact $ (++) "Your data, in uppercase, is:\n\n" . map toUpper
| EricYT/Haskell | src/real_haskell/chapter-7/toupper-lazy4.hs | apache-2.0 | 189 | 0 | 7 | 35 | 43 | 23 | 20 | 3 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Finance.Hqfl.Instrument.BarrierOption
-- Copyright : (C) 2016 Mika'il Khan
-- License : (see the file LICENSE)
-- Maintainer : Mika'il Khan <co.kleisli@gmail.com>
-- Stability : stable
-- Portability : por... | cokleisli/hqfl | src/Finance/Hqfl/Instrument/BarrierOption.hs | apache-2.0 | 1,066 | 0 | 6 | 225 | 80 | 55 | 25 | 10 | 0 |
module Main where
import System.Console.CmdArgs
import HEP.Automation.FeynRules.ProgType
import HEP.Automation.FeynRules.Command
main :: IO ()
main = do
putStrLn "feynrules-auto"
param <- cmdArgs mode
commandLineProcess param | wavewave/feynrules-auto | exe/feynrules-auto.hs | bsd-2-clause | 237 | 0 | 8 | 35 | 61 | 33 | 28 | 9 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
import Graphics.GL.Pal
import Graphics.GL.Freetype
import Graphics.GL.TextBuffer
import Graphics.VR.Pal
import SDL hiding (get)
import Control.Monad.State
import Control.Lens.Extra
import System.Random
import Halive.... | lukexi/text-gl | test/TestBasic.hs | bsd-2-clause | 2,141 | 0 | 14 | 451 | 546 | 272 | 274 | 45 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Stack.Options
(Command(..)
,benchOptsParser
,buildOptsParser
,configCmdSetParser
,configOptsParser
,dockerOptsParser
,dockerCleanupOptsParser
,dotOptsParser
,execOptsParser
,evalOptsParser
,globalOptsParser
,initOptsParser
,n... | vigoo/stack | src/Stack/Options.hs | bsd-3-clause | 30,135 | 0 | 32 | 11,426 | 5,462 | 2,710 | 2,752 | 681 | 9 |
-- |
module ReductionProperties where
import Control.Category.Constrained (id, (.))
import Math.Algebra.ChainComplex
import Math.Algebra.ChainComplex.Reduction
import Test.Hspec
import Prelude hiding (id, (.))
import ChainComplexProperties
checkBottom :: (ChainComplex a, ChainComplex b, Show (Basis b), Show (Basis a... | mvr/at | test/ReductionProperties.hs | bsd-3-clause | 1,448 | 0 | 13 | 329 | 712 | 365 | 347 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables, PackageImports #-}
module TestServer (server, ValidateHandle(..), CipherSuite(..)) where
import Control.Monad (liftM)
import Data.Maybe (fromMaybe, listToMaybe)
import Data.HandleLike (HandleLike(..))
import "crypto-random" Crypto.Random (CPRG)
import qualified Da... | YoshikuniJujo/forest | subprojects/tls-analysis/server/TestServer.hs | bsd-3-clause | 1,457 | 24 | 13 | 221 | 515 | 292 | 223 | 33 | 2 |
{-# OPTIONS -fno-warn-unused-imports #-}
{-# LANGUAGE Trustworthy #-}
#include "HsConfigure.h"
-- #hide
module Data.Time.Clock.UTC
(
-- * UTC
-- | UTC is time as measured by a clock, corrected to keep pace with the earth by adding or removing
-- occasional seconds, known as \"leap seconds\".
-- These co... | bergmark/time | lib/Data/Time/Clock/UTC.hs | bsd-3-clause | 5,153 | 0 | 9 | 941 | 1,010 | 536 | 474 | 61 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Ivory.OS.Posix.Tower.EventLoop where
import Ivory.Language
ev_header :: String
ev_header = "ev.h"
[ivory|
abstract struct ev_loop "ev.h"
abstract str... | GaloisInc/ivory-tower-posix | src/Ivory/OS/Posix/Tower/EventLoop.hs | bsd-3-clause | 2,338 | 0 | 13 | 347 | 812 | 415 | 397 | 55 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
module Fancydiff.Themes where
------------------------------------------------------------------------------------
import Fancydiff.Data
------------------------------------------------------------------------------------
darkBac... | da-x/fancydiff | src/Fancydiff/Themes.hs | bsd-3-clause | 3,858 | 0 | 7 | 1,151 | 669 | 375 | 294 | 78 | 1 |
module AST.Variable where
import AST.V0_16
data Ref
= VarRef String
| OpRef String
| WildcardRef
deriving (Eq, Ord, Show)
-- LISTINGS
-- | A listing of values. Something like (a,b,c) or (..) or (a,b,..)
data Listing a
= ExplicitListing [Commented a]
| OpenListing (Commented ())
| ClosedListi... | fredcy/elm-format | parser/src/AST/Variable.hs | bsd-3-clause | 540 | 0 | 9 | 130 | 136 | 77 | 59 | 21 | 0 |
{-# LANGUAGE CPP, TypeFamilies #-}
-- Type definitions for the constraint solver
module TcSMonad (
-- The work list
WorkList(..), isEmptyWorkList, emptyWorkList,
extendWorkListNonEq, extendWorkListCt, extendWorkListDerived,
extendWorkListCts, extendWorkListEq, extendWorkListFunEq,
appendWorkList,
... | GaloisInc/halvm-ghc | compiler/typecheck/TcSMonad.hs | bsd-3-clause | 119,599 | 60 | 25 | 33,329 | 18,753 | 9,929 | 8,824 | 1,307 | 6 |
import Control.Monad.IO.Class (liftIO)
import Data.Monoid
import Test.SmallCheck.Series.Instances ()
import Test.Hspec
import Test.Hspec.SmallCheck (property)
import Test.Tasty (defaultMain)
import Test.Tasty.Hspec (testSpec)
import AppLib.GoogleCseApi (ResultItem(..))
import AppLib.SlackBot (botResponder)
import qual... | 3noch/slack-google-bot | test/Spec.hs | bsd-3-clause | 1,468 | 0 | 17 | 278 | 374 | 196 | 178 | 32 | 1 |
module Abyme.Regiony.Universe.Validate where
import Control.Lens
import Data.List (tails)
import Abyme.Polyomino
import Abyme.Regiony.Universe
import Abyme.Regiony.Addressing
-- TODO: return a descriptive error
-- TODO: check ids of key and value match
-- TODO: harder? check universe is connected
pairs :: [a] -> [(... | mvr/abyme | haskell-model/src/Abyme/Regiony/Universe/Validate.hs | bsd-3-clause | 960 | 0 | 13 | 161 | 291 | 159 | 132 | -1 | -1 |
module View where
data ViewState = ViewState { bTop :: Int
, bLeft :: Int
, top :: Int
, left :: Int
, width :: Int
, height :: Int
} deriving Show
| polygonhell/textEditor | src/View.hs | bsd-3-clause | 295 | 0 | 8 | 181 | 52 | 34 | 18 | 8 | 0 |
module Iron.Executables.Ironc
( main
) where
import Iron.IR
import Iron.IR.Pretty (prettyDecl)
import System.IO (stdout)
import Text.PrettyPrint.ANSI.Leijen (Pretty, pretty)
import qualified Text.PrettyPrint.ANSI.Leijen as PP
newtype D = D String
deriving (Eq, Ord)
newtype B = B String
deriving (Eq, Ord)
... | iron-codegen/iron | library/Iron/Executables/Ironc.hs | bsd-3-clause | 1,330 | 0 | 16 | 436 | 487 | 262 | 225 | 43 | 1 |
{-|
Module : Game.GoreAndAsh.Core
Description : Engine Core that controls modules execution
Copyright : (c) Anton Gushcha, 2015-2016
Oganyan Levon, 2016
License : BSD3
Maintainer : ncrashed@gmail.com
Stability : experimental
Portability : POSIX
The core of all engine. It contains generi... | Teaspot-Studio/gore-and-ash | src/Game/GoreAndAsh/Core.hs | bsd-3-clause | 941 | 0 | 5 | 141 | 100 | 73 | 27 | 13 | 0 |
{-
Register table: list of all registers
Part of Mackerel: a strawman device definition DSL for Barrelfish
Copyright (c) 2007, 2008, ETH Zurich.
All rights reserved.
This file is distributed under the terms in the attached LICENSE file.
If you do not find this file, copies can be found by writin... | kishoredbn/barrelfish | tools/mackerel/RegisterTable.hs | mit | 8,670 | 0 | 16 | 2,830 | 3,013 | 1,630 | 1,383 | 176 | 9 |
{-- snippet module --}
module DList
(
DList
, fromList
, toList
, empty
, append
, cons
, dfoldr
) where
{-- /snippet module --}
import Data.Monoid (Monoid(..))
{-- snippet newtype --}
newtype DList a = DL {
unDL :: [a] -> [a]
}
{-- /snippet newtype --}
{-- snippet app... | binesiyu/ifl | examples/ch13/DList.hs | mit | 1,483 | 0 | 9 | 403 | 528 | 283 | 245 | 39 | 2 |
import System.Environment
import Test.Hspec
main :: IO ()
main = withProgName "Spec.hs" . hspec $ do
return ()
| hspec/hspec | doc/_includes/Help.hs | mit | 114 | 0 | 9 | 21 | 45 | 22 | 23 | 5 | 1 |
module UU.Scanner.GenToken where
import UU.Scanner.Position(Pos)
data GenToken key tp val = Reserved !key !Pos
| ValToken !tp val !Pos
position :: GenToken k t v -> Pos
position tok = case tok of
Reserved _ p -> p
ValToken _ _ p ... | UU-ComputerScience/uulib | src/UU/Scanner/GenToken.hs | bsd-3-clause | 326 | 0 | 8 | 136 | 97 | 51 | 46 | 16 | 2 |
module ProjectEuler.Problem001 (solution001) where
multipleOf3or5 :: Integer -> Bool
multipleOf3or5 x = x `mod` 3 == 0 || x `mod` 5 == 0
genericSolution001 :: Integer -> Integer
genericSolution001 = sum . filter multipleOf3or5 . enumFromTo 1 . subtract 1
solution001 :: Integer
solution001 = genericSolution001 1000
| guillaume-nargeot/hpc-coveralls-testing-3 | src/ProjectEuler/Problem001.hs | bsd-3-clause | 319 | 0 | 9 | 50 | 100 | 54 | 46 | 7 | 1 |
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.BuildTargets
-- Copyright : (c) Duncan Coutts 2012
-- License : BSD-like
--
-- Maintainer : duncan@community.haskell.org
--
-- Handling for user-specified bui... | tolysz/prepare-ghcjs | spec-lts8/cabal/Cabal/Distribution/Simple/BuildTarget.hs | bsd-3-clause | 32,864 | 0 | 22 | 8,515 | 7,917 | 4,062 | 3,855 | 590 | 9 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TypeFamilies #-}
module E where
import Data.Kind (Type, Constraint)
import {-# SOURCE #-} Y
data E
type family CF a :: Type -> Constraint
type instance CF E = Y
| sdiehl/ghc | testsuite/tests/driver/T13803/E.hs | bsd-3-clause | 225 | 0 | 5 | 54 | 49 | 32 | 17 | -1 | -1 |
{-# LANGUAGE RankNTypes #-}
import Data.Data
import Data.List
import GHC
import DynFlags
import Outputable
import ApiAnnotation
import System.Environment( getArgs )
import System.Exit
import qualified Data.Map as Map
import qualified Data.Set as Set
main::IO()
main = do
args <- getArgs
case args of
[libdir,fil... | oldmanmike/ghc | utils/check-api-annotations/Main.hs | bsd-3-clause | 3,594 | 1 | 20 | 1,175 | 951 | 500 | 451 | 71 | 2 |
-- Both these functions should successfully simplify
-- using the combine-identical-alternatives optimisation
module T7360 where
data Foo = Foo1 | Foo2 | Foo3 !Int
fun1 :: Foo -> ()
{-# NOINLINE fun1 #-}
fun1 x = case x of
Foo1 -> ()
Foo2 -> ()
Foo3 {} -> ()
fun2 x =... | frantisekfarka/ghc-dsi | testsuite/tests/simplCore/should_compile/T7360.hs | bsd-3-clause | 485 | 0 | 10 | 180 | 124 | 67 | 57 | 14 | 3 |
main = putStrLn "Hello foo:foo-exe"
| themoritz/cabal | cabal-testsuite/PackageTests/NewBuild/CmdRun/MultiplePackages/foo/Main1.hs | bsd-3-clause | 36 | 0 | 5 | 5 | 9 | 4 | 5 | 1 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE NumDecimals #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE ApplicativeDo #-}
{-# LANGUAGE Arrows #-}
module Main where
import Prelude hiding ((.),id)
import Data.Monoid
import Data.IORef
import Data.Functor.Const
import Data.List.NonEmp... | danidiaz/checkpointed-pipeline | tests/tests.hs | mit | 3,294 | 0 | 17 | 773 | 1,133 | 589 | 544 | 80 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Haste.Prim
import Haste.Concurrent
import Hom.DOM
import Hom.App
count :: Int -> Node
count c = node "div" ["style"=:"color:red;"] [ text . toJSStr . show $ c]
counter startval ctr =
go startval
where
go n = do
putMVar ctr n
wait 1000
go $ n+1
mai... | arianvp/Hom | src/Main.hs | mit | 350 | 0 | 10 | 87 | 130 | 65 | 65 | 14 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-dataresource.html
module Stratosphere.ResourceProperties.CloudTrailTrailDataResource where
... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/CloudTrailTrailDataResource.hs | mit | 1,972 | 0 | 13 | 212 | 265 | 151 | 114 | 28 | 1 |
import Data.Char
-- takehalf returns first half of a list
takehalf :: [a] -> [a]
takehalf xs = take (length xs `div` 2) xs
-- drophalf returns second half of a list
drophalf :: [a] -> [a]
drophalf xs = drop (length xs `div` 2) xs
-- mergeWith
-- =========
-- merges two lists ordered with a given operator into a new ... | klarasch/nonproc | hw4-2_mergeWith_sortWith.hs | mit | 1,500 | 0 | 10 | 327 | 465 | 254 | 211 | 23 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Template.Model (
modelXml,
modelPhp
) where
import Template (render)
import Data.Data (Data, Typeable)
data ModelXmlTemplate = ModelXmlTemplate {
name :: String,
classNamePrefix :: String
} deriving (Data, Typeable)
data ModelPhpTemplate = ModelPhpTemplate ... | prasmussen/magmod | Template/Model.hs | mit | 630 | 0 | 8 | 109 | 164 | 91 | 73 | 19 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE RankNTypes #-}
module Web.Stripe.Test.Invoice where
import Data.Either
import Test.Hspec
import Web.Stripe.Customer
import Web.Stripe.Invoice
import We... | dmjio/stripe | stripe-tests/tests/Web/Stripe/Test/Invoice.hs | mit | 5,123 | 0 | 22 | 1,478 | 1,580 | 749 | 831 | 118 | 1 |
module TestZipper where
type ListZipper a = ([a], [a])
goForward :: ListZipper a -> ListZipper a
goForward (x:xs, bs) = (xs, x:bs)
goBack :: ListZipper a -> ListZipper a
goBack (xs, b:bs) = (b:xs, bs)
| rockdragon/julia-programming | code/haskell/TestZipper.hs | mit | 204 | 0 | 7 | 38 | 109 | 62 | 47 | 6 | 1 |
import Test.QuickCheck.Checkers
import Test.QuickCheck.Classes
import Test.QuickCheck (Arbitrary, arbitrary, elements)
data Validation err a =
Failure err
| Success a
deriving (Eq, Show)
instance (Eq e, Eq a) => EqProp (Validation e a) where (=-=) = eq
instance (Arbitrary e, Arbitrary a) => Arbitrary (Vali... | JustinUnger/haskell-book | ch17/valid-app.hs | mit | 928 | 0 | 10 | 219 | 397 | 210 | 187 | 25 | 1 |
module Feature.CorsSpec where
-- {{{ Imports
import qualified Data.ByteString.Lazy as BL
import Network.Wai (Application)
import Network.Wai.Test (SResponse (simpleBody, simpleHeaders))
import Network.HTTP.Types
import Test.Hspec
import Test.Hspec.Wai
import Protolude
import SpecHelper
-- }}}
spec :: SpecWith... | steve-chavez/postgrest | test/Feature/CorsSpec.hs | mit | 2,852 | 0 | 20 | 735 | 522 | 280 | 242 | 62 | 1 |
module Data.BuzHash
( ListAnd (..)
, ChunkSplit (..)
, BuzHash
, BuzHashRepr (..)
, buzHash
, buzHashBS
, buzHashBSL
, buzHashList
, buzHashRepr
, buzTable
) where
import Control.Exception (evaluate)
import Data.ByteString (ByteString)
import qualified Data.ByteString.Lazy as BSL
import Data.Func... | ion1/buzhash-haskell | src/Data/BuzHash.hs | mit | 2,386 | 0 | 12 | 485 | 647 | 350 | 297 | 60 | 2 |
doubleMe x = x + x
doubleUs x y = doubleMe x + doubleMe y
doubleSmallNumber x = if x > 100 then x else 2*x
doubleSmallNumber' x = (if x > 100 then x else 2*x) + 1
boomBangs xs = [if x < 10 then "boom" else "bang" | x <- xs, odd x]
length' xs = sum [1 | _ <- xs]
| autocorr/lyah | chap2.hs | mit | 264 | 0 | 8 | 67 | 148 | 76 | 72 | 6 | 2 |
-- | Settings are centralized, as much as possible, into this file. This
-- includes database connection settings, static file locations, etc.
-- In addition, you can configure a number of different aspects of Yesod
-- by overriding methods in the Yesod typeclass. That instance is
-- declared in the Foundation.hs file.... | builtinnya/lambdar-website | Settings.hs | mit | 5,963 | 0 | 12 | 1,745 | 791 | 452 | 339 | -1 | -1 |
module Orville.PostgreSQL.Internal.TableIdentifier
( TableIdentifier,
unqualifiedNameToTableId,
setTableIdSchema,
tableIdQualifiedName,
tableIdUnqualifiedName,
tableIdSchemaName,
tableIdToString,
tableIdUnqualifiedNameString,
tableIdSchemaNameString,
)
where
import qualified Orville... | flipstone/orville | orville-postgresql-libpq/src/Orville/PostgreSQL/Internal/TableIdentifier.hs | mit | 2,802 | 0 | 9 | 496 | 333 | 188 | 145 | 48 | 2 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleContexts #-}
module Protop.Core.Monos
( MonoTest(..)
, MonoTest1(..)
, MonoTest2(..)
, MONOTEST(..)
... | brunjlar/protop | src/Protop/Core/Monos.hs | mit | 7,712 | 0 | 19 | 2,973 | 3,067 | 1,547 | 1,520 | 202 | 1 |
import Graphics.UI.SDL as SDL
import FRP.Yampa as Y
import YampaUtils
output :: Surface -> Surface -> ((Int, Int), Bool) -> IO Bool
output object surface ((x,y), exit) = do
fillRect surface Nothing (Pixel $ 0)
blitSurface object Nothing surface (Just $ Rect x y 0 0)
SDL.flip surface
return exit
sigFun... | rlupton20/yampaTutorial | Test/Basic animation/test.hs | cc0-1.0 | 1,091 | 1 | 16 | 232 | 467 | 243 | 224 | 28 | 2 |
sumToProd :: Either (a, b) (a, c) -> (a, Either b c)
sumToProd e =
case e of
Left (x, y) -> (x, Left y)
Right (x, z) -> (x, Right z) | hmemcpy/milewski-ctfp-pdf | src/content/1.6/code/haskell/snippet35.hs | gpl-3.0 | 150 | 0 | 9 | 49 | 98 | 53 | 45 | 5 | 2 |
{-# LANGUAGE RankNTypes #-}
-- | Example given in "Lazy Functional State Threads".
module TheSTMonad where
data ST s a
data MutVar s a
newVar :: a -> ST s (MutVar s a)
newVar = undefined
readVar :: MutVar s a -> ST s a
readVar = undefined
writeVar :: MutVar s a -> a -> ST s ()
writeVar = undefined
-- | Let's see... | capitanbatata/sandbox | rank-n-polymorphism/src/TheSTMonad.hs | gpl-3.0 | 1,575 | 0 | 11 | 354 | 191 | 119 | 72 | -1 | -1 |
{-# OPTIONS_GHC -XFlexibleInstances #-}
module Database.Design.Ampersand.FSpec.ToFSpec.NormalForms
(delta,conjNF,disjNF,normPA,cfProof,dfProof,proofPA,simplify
,cfProofs, dfProofs -- these are for confluence testing.
, makeAllConjs, conjuncts
) where
import Data.Set (Set)
import qualified Data.Set as Set
im... | 4ZP6Capstone2015/ampersand | src/Database/Design/Ampersand/FSpec/ToFSpec/NormalForms.hs | gpl-3.0 | 109,779 | 1 | 26 | 39,269 | 32,582 | 17,030 | 15,552 | 1,287 | 112 |
module Main where
import Control.Concurrent
import Control.Monad.STM
import Control.Concurrent.MVar
import Control.Concurrent.STM.TVar
import Control.Monad.State.Strict
import Debug.Trace
main :: IO ()
main = do
v <- newTVarIO 0
m <- newEmptyMVar
forkIO (testThread v m)
forM_ [1..42] (\i -> do
-- use ... | thalerjonathan/phd | thesis/code/concurrent/inner_stm_semantics/src/Main.hs | gpl-3.0 | 946 | 0 | 13 | 247 | 334 | 166 | 168 | 31 | 2 |
module World
(decodeTile
,IRectangle
,Tile(..)
,World(..)
,loadWorld
,distanceSq
,index
,getTile
) where
import Graphics.Gloss
import Graphics.Gloss.Game
import Text.Parsec
import Control.Monad
import Constants
import GUI
--generateWorld
loadWorld :: String -> IO World
loadWorld... | Marthog/ld33 | World.hs | gpl-3.0 | 1,786 | 0 | 16 | 522 | 700 | 372 | 328 | 58 | 1 |
module GtkBlast.BoardSettingsGuiXML where
import Import
import BlastItWithPiss
import GtkBlast.Directory
boardSettingsGuiXML :: Board -> String
boardSettingsGuiXML board =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\
<interface>\
<requires lib=\"gtk+\" version=\"2.18\"/>\
<!-- interface-naming-policy project-wi... | exbb2/BlastItWithPiss | src/GtkBlast/BoardSettingsGuiXML.hs | gpl-3.0 | 17,976 | 642 | 329 | 6,618 | 2,627 | 1,209 | 1,418 | -1 | -1 |
{-# LANGUAGE ViewPatterns,RecordWildCards,PatternGuards,ScopedTypeVariables #-}
module HipSpec.Theory
( module HipSpec.Pretty
, ArityMap
, combineArityMap
, emptyArityMap
, Content(..)
, Theory
, Subtheory(..)
, dependencies
, subtheory
, calcDeps
, calcDepsIgnoring
, sor... | danr/hipspec | src/HipSpec/Theory.hs | gpl-3.0 | 3,459 | 0 | 13 | 1,008 | 958 | 523 | 435 | 82 | 7 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-digitalassetlinks/gen/Network/Google/Resource/DigitalAssetLinks/Assetlinks/Check.hs | mpl-2.0 | 15,483 | 0 | 22 | 3,003 | 1,288 | 785 | 503 | 180 | 1 |
{-|
Module : $Header$
Description : Creates a list of lexemes from an input.
Copyright : (c) Joshua Gutow, 2016
License : GNU AGPL-3
Maintainer : jbgutow@gmail.com
Stability : stable
Portability : portable
This module provides tools to represent and create an intermediary form of a
user's input to be us... | trianglesphere/hcas | src/Lexer.hs | agpl-3.0 | 6,654 | 0 | 12 | 2,068 | 1,737 | 866 | 871 | 107 | 4 |
{-
- This file is part of Bilder.
-
- Bilder is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- Bilder i... | ingemaradahl/bilder | src/TypeChecker/Scope.hs | lgpl-3.0 | 6,447 | 0 | 18 | 1,370 | 2,553 | 1,465 | 1,088 | 117 | 2 |
-- https://wiki.haskell.org/Multi-parameter_type_class
-- https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/type-class-extensions.html
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE InstanceSigs #-}
module P9x.P80.P80(
Graph(..), Digraph(..), Edge(..),
grap... | dkandalov/katas | haskell/p99/src/p9x/p80/P80.hs | unlicense | 14,287 | 0 | 17 | 3,061 | 5,534 | 2,938 | 2,596 | 256 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.