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 Settings.Exception.Prettify.JSONException (
pJSONException
) where
import Control.Exception
import Network.HTTP.Simple
import Settings.Exception.Prettify.HttpException (getReqStringHost)
pJSONException :: SomeException -> Maybe String
pJSONException ex = extractor <$> fromExc... | Evan-Zhao/FastCanvas | src/Settings/Exception/Prettify/JSONException.hs | bsd-3-clause | 682 | 0 | 9 | 129 | 142 | 76 | 66 | 14 | 1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[RnExpr]{Renaming of expressions}
Basically dependency analysis.
Handles @Match@, @GRHSs@, @HsExpr@, and @Qualifier@ datatypes. In
general, all of these functions return a renamed thing, and a set of
free variables.
-}
{-# LANGUAGE CPP #-}
{-# LA... | sgillespie/ghc | compiler/rename/RnExpr.hs | bsd-3-clause | 79,391 | 107 | 22 | 22,755 | 19,984 | 10,616 | 9,368 | 1,164 | 13 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Time.ES.Tests
( tests ) where
import Data.String
import Prelude
import Test.Tasty
import Duck... | facebookincubator/duckling | tests/Duckling/Time/ES/Tests.hs | bsd-3-clause | 541 | 0 | 9 | 87 | 93 | 57 | 36 | 12 | 1 |
{-# LANGUAGE TemplateHaskell #-}
-- | The @bounds@ element of a OSM file.
module Data.Geo.OSM.Bounds
(
Bounds
, bounds
) where
import Text.XML.HXT.Arrow.Pickle
import Data.Geo.OSM.Lens.MinlatL
import Data.Geo.OSM.Lens.MaxlatL
import Data.Geo.OSM.Lens.MinlonL
import Data.Geo.OSM.Lens.MaxlonL
import Data.Geo.OSM.Lens.... | tonymorris/geo-osm | src/Data/Geo/OSM/Bounds.hs | bsd-3-clause | 1,715 | 0 | 14 | 310 | 405 | 237 | 168 | 46 | 1 |
-- | Test standard RandomGen interface of Random123-backed generators.
module TestTypeclasses (test_typeclasses) where
import Data.Word
import Test.Framework (testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import System.Random.Random123.Types
test_li1x32_bijection initial = initial == mapped... | fjarri/haskell-random123 | test/TestTypeclasses.hs | bsd-3-clause | 4,086 | 0 | 11 | 979 | 1,030 | 526 | 504 | 78 | 1 |
{-# LANGUAGE QuasiQuotes #-}
import LiquidHaskell
import Language.Haskell.Liquid.Prelude
[lq| data Pair a b <p :: x0:a -> x1:b -> Prop> = P (x :: a) (y :: b<p x>) |]
data Pair a b = P a b
[lq| mkP :: forall a <q :: y0:a -> y1:a -> Prop>. x: a -> y: a<q x> -> Pair <q> a a |]
mkP :: a -> a -> Pair a a
mkP x y = P... | spinda/liquidhaskell | tests/gsoc15/unknown/pos/deptupW.hs | bsd-3-clause | 493 | 0 | 7 | 138 | 174 | 93 | 81 | 15 | 1 |
{-# OPTIONS -fno-cse #-}
{-
From happstack-server
License BSD3
Author Happstack team, HAppS LLC
-}
module Happstack.Server.Internal.Clock
( getApproximateTime
, getApproximatePOSIXTime
, getApproximateUTCTime
, formatHttpDate
) where
import Control.Applicative ((<$>))
import Control.Concurrent... | aslatter/happstack-wai | src/Happstack/Server/Internal/Clock.hs | bsd-3-clause | 1,835 | 0 | 12 | 326 | 451 | 243 | 208 | 51 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- | A bunch of type classes representing common values shared between multiple
-- CSS properties, like `Auto`, `Inherit`, `None`, `Normal` and several more.
--
-- All the common value type classes have an instance for the Value type,
-- making them easily derivable for custom value ... | bergmark/clay | src/Clay/Common.hs | bsd-3-clause | 1,643 | 0 | 7 | 384 | 275 | 157 | 118 | 24 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Dalvik.AccessFlags
( AccessFlag(..)
, AccessFlags
, AccessType(..)
, flagCode
, codeFlag
, flagString
, flagsString
, hasAccessFlag
) where
import Data.Bits
import Data.List
import Data.Monoid
import Data.String
import Data.Word
import Text.Printf
import Pre... | travitch/dalvik | src/Dalvik/AccessFlags.hs | bsd-3-clause | 3,856 | 0 | 10 | 724 | 945 | 509 | 436 | 115 | 1 |
{-# LANGUAGE Arrows #-}
module HN.MainPage where
import HN.Parsing
data SParse = Title String String | Info String deriving Show
doc' = readDocument opts "../newest.html"
nn = doc' /> hasName "html" /> hasName "body" /> hasName "center" /> hasName "table"
/> hasName "tr" /> hasName "td" /> hasName "table" />... | llelf/hn | HN/MainPage.hs | bsd-3-clause | 879 | 2 | 15 | 305 | 269 | 130 | 139 | 17 | 1 |
-- | Some text utility functions.
module Text where
import Text.Regex.Posix
import Data.Char
nameOkay :: String -> Bool
nameOkay = (=~ "^[-'a-zA-Z]{3,16}$")
notEmpty :: String -> Bool
notEmpty = not . all isSpace
trim :: String -> String
trim = f . f where f = reverse . dropWhile isSpace
type MatchRes = (String, S... | MedeaMelana/custard | Text.hs | bsd-3-clause | 1,361 | 0 | 10 | 297 | 466 | 257 | 209 | 29 | 3 |
module Spec.Enum where
import Data.Int(Int32)
-- TODO: Parse the XML comments into here
data Enum = Enum { eName :: String
, eNamespace :: Maybe String
, eExpand :: Maybe String
, eComment :: Maybe String
, eElements :: [EnumElement]
... | oldmanmike/vulkan | generate/src/Spec/Enum.hs | bsd-3-clause | 554 | 0 | 9 | 249 | 113 | 67 | 46 | 14 | 0 |
module Crawl where
import Network.Browser( browse,
setCookies,
request)
import Network.HTTP( rspBody,
getRequest,
rspBody,
mkRequest,
RequestMethod(..),
... | RayRacine/hs-word2vec | Crawl.hs | bsd-3-clause | 5,561 | 0 | 15 | 1,425 | 1,496 | 791 | 705 | 108 | 3 |
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Test.Framework.Providers.HUnit
import Test.Framework.Providers.QuickCheck2
import Test.Framework.TH
import Test.HUnit
--import Test.QuickCheck.Modifiers
main :: IO ()
main = $(defaultMainGenerator)
type Pro... | j-rock/4hire | tests/Tests.hs | mit | 436 | 0 | 6 | 105 | 94 | 56 | 38 | 13 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeOperators #-}
modu... | qmuli/qmuli | library/Qi/Program/Lambda/Lang.hs | mit | 973 | 0 | 9 | 294 | 199 | 116 | 83 | 40 | 1 |
module Code.Huffman.Boiler where
import Code.Type
import Code.Huffman.Partial
import Code.Huffman.Throw
import Code.Huffman.Config
import Inter.Quiz
import Inter.Types
import Autolib.Reader
import Autolib.ToDoc
make_fixed :: Make
make_fixed = direct Huffman
$ Frequency $ listToFM
$ zip [ 'a'... | florianpilz/autotool | src/Code/Huffman/Boiler.hs | gpl-2.0 | 769 | 0 | 8 | 176 | 267 | 149 | 118 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module SubHask.Algebra.Array
( BArray (..)
, UArray (..)
, Unboxable
)
where
import Control.Monad
import Control.Monad.Primitive
import Data.Pr... | Drezil/subhask | src/SubHask/Algebra/Array.hs | bsd-3-clause | 18,638 | 72 | 19 | 4,856 | 5,781 | 3,038 | 2,743 | -1 | -1 |
import Control.Blub
import Control.Monad
f :: Int -> Int
f = (+ 3)
| jystic/hsimport | tests/goldenFiles/ModuleTest11.hs | bsd-3-clause | 67 | 0 | 5 | 13 | 29 | 17 | 12 | 4 | 1 |
{-# LANGUAGE Haskell2010 #-}
{-# LINE 1 "Control/Concurrent/STM/TSem.hs" #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Concurrent.STM.TSem
-- Copyright : (c) The University of Glasgow 2012
-- License : BSD-style (see the file libraries/base/LICE... | phischu/fragnix | tests/packages/scotty/Control.Concurrent.STM.TSem.hs | bsd-3-clause | 1,769 | 0 | 9 | 312 | 247 | 142 | 105 | 21 | 1 |
{-# LANGUAGE Haskell98 #-}
{-# LINE 1 "Network/Wai/Handler/Warp/Date.hs" #-}
{-# LANGUAGE CPP #-}
module Network.Wai.Handler.Warp.Date (
withDateCache
, GMTDate
) where
import Control.AutoUpda... | phischu/fragnix | tests/packages/scotty/Network.Wai.Handler.Warp.Date.hs | bsd-3-clause | 953 | 0 | 8 | 282 | 154 | 90 | 64 | 18 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveDataTypeable #-}
-- | Provides functionality for runtime Hamlet templates. Please use
-- "Text.Hamlet.Runtime" instead.
module Text.Hamlet.RT
( -- * Public API
Ham... | fgaray/shakespeare | Text/Hamlet/RT.hs | mit | 8,307 | 0 | 24 | 2,423 | 2,446 | 1,251 | 1,195 | 174 | 22 |
{- |
Module : $Header$
Description : Gtk Module to enable disproving Theorems
Copyright : (c) Simon Ulbricht, Uni Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : tekknix@informatik.uni-bremen.de
Stability : provisional
Portability : portable
This module provides a disproving m... | mariefarrell/Hets | GUI/GtkDisprove.hs | gpl-2.0 | 11,301 | 4 | 24 | 2,849 | 2,744 | 1,315 | 1,429 | -1 | -1 |
{-# LANGUAGE PatternSignatures #-}
module Test10255 where
import Data.Maybe
fob (f :: (Maybe t -> Int)) =
undefined
| christiaanb/ghc | testsuite/tests/ghc-api/annotations/Test10255.hs | bsd-3-clause | 120 | 0 | 10 | 22 | 35 | 20 | 15 | 5 | 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... | janschulz/pandoc | src/Text/Pandoc/Writers/Native.hs | gpl-2.0 | 3,194 | 0 | 17 | 673 | 672 | 344 | 328 | 41 | 3 |
{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE TypeFamilies, GADTs, PolyKinds, DataKinds, ExplicitForAll #-}
-- See also: saks007_fail.hs
module SAKS_007 where
import Data.Kind (Type, Constraint)
type family F a where { F Type = True; F _ = False }
type family G a where { G Type = False; G _ = True }
type X... | sdiehl/ghc | testsuite/tests/saks/should_compile/saks007.hs | bsd-3-clause | 495 | 0 | 9 | 132 | 127 | 78 | 49 | -1 | -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="ko-KR">
<title>Server-Sent Events Add-on</title>
<maps>
<homeID>sse.introduction</homeID>
... | kingthorin/zap-extensions | addOns/sse/src/main/javahelp/org/zaproxy/zap/extension/sse/resources/help_ko_KR/helpset_ko_KR.hs | apache-2.0 | 983 | 77 | 68 | 157 | 419 | 212 | 207 | -1 | -1 |
import Test.Cabal.Prelude
main = cabalTest $ do
-- Don't run this test unless the GHC is sufficiently recent
-- to not ship boot old-time/old-locale
skipUnless =<< ghcVersionIs (>= mkVersion [7,11])
-- Don't run this test on GHC 8.2, which ships with Cabal 2.0,
-- which is not eligible for old-style... | mydaum/cabal | cabal-testsuite/PackageTests/NewBuild/T4375/cabal.test.hs | bsd-3-clause | 499 | 0 | 12 | 116 | 88 | 47 | 41 | 6 | 1 |
module Interp (runInterp) where
import GenUtils
import DataTypes
import InterpUtils
import Parser (pgnLexer)
runInterp :: AbsGame -> RealGame
runInterp (Game tags toks) = Game tags (pgnInterp toks initParState)
initParState = (FirstBoard startBoard)
type Par a = StoreBoard -> a
thenP :: Par a -> (a ... | shlevy/ghc | testsuite/tests/programs/andy_cherry/Interp.hs | bsd-3-clause | 8,294 | 0 | 20 | 2,203 | 3,298 | 1,700 | 1,598 | 180 | 5 |
{-# LANGUAGE DeriveDataTypeable #-}
module CostCentre (
CostCentre(..), CcName, IsCafCC(..),
-- All abstract except to friend: ParseIface.y
CostCentreStack,
CollectedCCs,
noCCS, currentCCS, dontCareCCS,
noCCSAttached, isCurrentCCS,
maybeSingletonCCS,
... | wxwxwwxxx/ghc | compiler/profiling/CostCentre.hs | bsd-3-clause | 10,877 | 7 | 17 | 3,352 | 2,107 | 1,147 | 960 | 183 | 3 |
module Trit (Trit, rationalToTrit, getIntegral, getFraction, getFraction',
neg, addTrits, subTrits, shiftLeft, shiftRight, multiply
) where
import Stream
import Utilities
import Data.Ratio
type Mantissa = Stream
type Fraction = Stream
type Trit = (Mantissa, Fraction)
-- Convert from a Rational number to its... | ghc-android/ghc | testsuite/tests/concurrent/prog001/Trit.hs | bsd-3-clause | 2,483 | 21 | 14 | 654 | 924 | 508 | 416 | 57 | 1 |
module HAD.Y2014.M03.D03.Exercise where
import Data.List
import Data.Function
-- | Sort a list of list of elements by the maximum of each list,
-- in ascending order
--
-- Point-free: easy and readable
-- Level: EASY
--
-- Examples:
-- >>> sortByMax [[1,10],[5,5]]
-- [[5,5],[1,10]]
-- >>> sortByMax []
-- []
--
-- so... | smwhr/1HAD | exercises/HAD/Y2014/M03/D03/Exercise.hs | mit | 472 | 0 | 8 | 83 | 78 | 53 | 25 | 5 | 1 |
{- |
Module : MainWindow.hs
Description : .
Maintainer : Kelvin Glaß, Chritoph Graebnitz, Kristin Knorr, Nicolas Lehmann (c)
License : MIT
Stability : experimental
The MainWindow-module depicts the main window of the editor.
-}
module MainWindow (
create
)
where
-- imports ... | SWP-Ubau-SoSe2014-Haskell/SWPSoSe14 | src/RailEditor/MainWindow.hs | mit | 3,260 | 0 | 16 | 674 | 929 | 461 | 468 | 66 | 2 |
module Main where
size :: [t] -> Integer
size [] = 0
size (h:t) = 1 + size t
| henryaddison/7-lang-7-weeks | week7-haskell/1/lists.hs | mit | 83 | 0 | 7 | 25 | 48 | 26 | 22 | 4 | 1 |
-- The information used in this module was pulled from the @Wikipedia article
-- about ISO_3166-2:US@: <https://en.wikipedia.org/wiki/ISO_3166-2:US>.
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ... | acamino/state-codes | src/Data/StateCodes/ISO31662US.hs | mit | 12,401 | 0 | 10 | 4,722 | 2,908 | 1,487 | 1,421 | 338 | 2 |
module Handler.Home where
import Init
getHomeR :: Handler Html
getHomeR = defaultLayout $ do
setTitle "SomeBlog"
-- change src URIs in production
addStylesheetRemote "//rawgithub.com/mkrull/yesod-ember-skel/master/static/css/normalize.css"
addStylesheetRemote "//rawgithub.com/mkrull/yesod-ember-s... | mkrull/yesod-ember-skel | src/Handler/Home.hs | mit | 984 | 0 | 10 | 91 | 91 | 38 | 53 | 14 | 1 |
import Test.DocTest
main = doctest ["-isrc", "src/Data/ByteString/Read.hs"]
| philopon/bytestring-read | tests/doctest.hs | mit | 76 | 0 | 6 | 7 | 20 | 11 | 9 | 2 | 1 |
{-# LANGUAGE CPP #-}
-- | Various utilities pertaining to searching for files & directories.
module Language.Haskell.GhcOpts.Utils where
import Control.Exception
import System.Process
import Data.Char (isSpace)
import System.FilePath
import System.Directory
getDirectoryContentsIfExists :: FilePath -> IO [FilePath]... | ranjitjhala/ghc-options | src/Language/Haskell/GhcOpts/Utils.hs | mit | 2,400 | 0 | 12 | 596 | 559 | 287 | 272 | 43 | 3 |
module Handler.ExampleXML where
import Assets (getAllExams)
import Import
import Widgets (titleWidget, iconWidget, publicExamWidget, privateExamWidget)
-- | Displays valid example XML
getExampleXMLR :: Handler Html
getExampleXMLR = do
setUltDestCurrent
memail <- lookupSession "_ID"
(publicExams... | cirquit/quizlearner | quizlearner/Handler/ExampleXML.hs | mit | 4,316 | 0 | 10 | 1,248 | 116 | 65 | 51 | -1 | -1 |
-- Rock Paper Scissors!
-- http://www.codewars.com/kata/5672a98bdbdd995fad00000f/
module Codewars.RockPaperScissors where
rps :: String -> String -> String
rps p1 p2 | p1 == p2 = "Draw!"
| (p1, p2) `elem` [("rock", "scissors"), ("paper", "rock"), ("scissors", "paper")] = "Player 1 won!"
| otherwis... | gafiatulin/codewars | src/8 kyu/RockPaperScissors.hs | mit | 340 | 0 | 10 | 67 | 98 | 56 | 42 | 5 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-app-datasource.html
module Stratosphere.ResourceProperties.OpsWorksAppDataSource where
import Strat... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/OpsWorksAppDataSource.hs | mit | 2,258 | 0 | 12 | 253 | 355 | 202 | 153 | 32 | 1 |
maximum' :: (Ord a) => [a] -> a
maximum' [] = error "maximum of empty list"
maximum' [x] = x
maximum' (x:xs)
| x > maxTail = x
| otherwise = maxTail
where maxTail = maximum' xs
replicate' :: (Num i, Ord i)=> i -> a -> [a]
replicate' n x
| n <= 0 = []
| otherwise = x:replicate' (n-1) x
take' :: ... | axnion/playground | random/haskell/recursion.hs | mit | 1,017 | 0 | 12 | 292 | 646 | 336 | 310 | 36 | 1 |
module Main where
import System.IO
import System.Process
import Data.List
main :: IO ()
main = do
files <- readProcess "ls" ["Player"] []
let players = (takeWhile (/='.')) <$> lines files
putStrLn ("Players registerd:\n\n" ++ unlines players)
writeFile "Players.hs" (preamble ++ unlines (imported <$> play... | 8Gitbrix/gomoku | src/MakePlayers.hs | mit | 841 | 0 | 13 | 170 | 272 | 142 | 130 | 24 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-xssmatchset-fieldtomatch.html
module Stratosphere.ResourceProperties.WAFRegionalXssMatchSetFieldT... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/WAFRegionalXssMatchSetFieldToMatch.hs | mit | 2,174 | 0 | 13 | 212 | 265 | 151 | 114 | 28 | 1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
{-# OPTIONS_GHC -fno-warn-implicit-prelude #-}
module Paths_isogram (
version,
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
impo... | c19/Exercism-Haskell | isogram/.stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/autogen/Paths_isogram.hs | mit | 2,356 | 0 | 10 | 239 | 410 | 238 | 172 | 33 | 1 |
{-
Copyright (C) 2012 Kacper Bak <http://gsd.uwaterloo.ca>
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,... | juodaspaulius/bclafer_old | src/Language/Clafer/Version.hs | mit | 1,152 | 0 | 4 | 179 | 13 | 9 | 4 | 2 | 1 |
double x = x + x
quadruple x = double x + double x
factorial n = product [1..n]
average ns = sum ns `div` length ns
| codingSteve/fp101x | 20151019/test.hs | cc0-1.0 | 131 | 0 | 6 | 42 | 67 | 32 | 35 | 4 | 1 |
{-# LANGUAGE DeriveGeneric #-} -- needed for json parsing
module Main where
import Data.Aeson (FromJSON, ToJSON, decodeStrict, decode, encode)
import Data.Text (Text)
import Data.Maybe (fromMaybe)
import Data.List (foldl')
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import GHC.Generics (Ge... | kovach/web | server-src/Main.hs | gpl-2.0 | 1,683 | 0 | 19 | 394 | 505 | 260 | 245 | 57 | 2 |
module Type.Poly.Roll where
import Type.Poly.Data
import Autolib.Util.Zufall
import Autolib.TES.Identifier
import Autolib.Util.Size
import Autolib.ToDoc
import qualified Data.Map as M
import qualified Data.Set as S
import Control.Monad ( forM, guard )
import Data.List ( nub , minimumBy)
import Data.Maybe (isJust)
i... | marcellussiegburg/autotool | collection/src/Type/Poly/Roll.hs | gpl-2.0 | 6,240 | 2 | 21 | 2,453 | 2,223 | 1,124 | 1,099 | 154 | 4 |
{- LANGUAGE TemplateHaskell #-}
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe
import Data.List
import Control.Lens
data Loc =
Albania
| Ankara
| Apulia
| Armenia
| Belgium
| Berlin
| Bohemia
| Brest
| Budapest
| Bulgaria
| Burgundy
| Clyde
| Constan... | bdmagnuson/haskell-diplomacy | src/Diplomacy.hs | gpl-2.0 | 4,221 | 0 | 11 | 1,123 | 845 | 527 | 318 | -1 | -1 |
module TemporalCache where
import qualified Data.Map as M
import Control.Concurrent.STM
-- | Map insertion which inserts value and drops previous values which
-- are older than given age. The key must be a timestamp or other kind
-- of increasing value.
ensureAgeInsert
:: (Num k, Ord k) => k -> k -> a -> M.Map k a ... | zouppen/irc-markets | src/TemporalCache.hs | gpl-3.0 | 877 | 0 | 13 | 216 | 266 | 133 | 133 | 16 | 1 |
module Lamdu.CodeEdit.Sugar.Internal
( BodyU, ExpressionU
) where
import Lamdu.CodeEdit.Sugar.Types
type BodyU m a = Body MStoredName m (ExpressionU m a)
type ExpressionU m a = Expression MStoredName m a
| Mathnerd314/lamdu | src/Lamdu/CodeEdit/Sugar/Internal.hs | gpl-3.0 | 210 | 0 | 7 | 35 | 61 | 38 | 23 | 5 | 0 |
{-# LANGUAGE ForeignFunctionInterface, MagicHash, FlexibleInstances, OverloadedStrings, StandaloneDeriving, GeneralizedNewtypeDeriving, MultiParamTypeClasses, TypeFamilies #-}
module Util where
import Foreign.C
import Foreign hiding (unsafePerformIO)
import Data.String
import Data.IORef
import GHC.Base
import GHC.Ptr
i... | mikeplus64/plissken | src/Util.hs | gpl-3.0 | 3,628 | 0 | 13 | 953 | 1,282 | 652 | 630 | 98 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Handler.Posts where
import qualified Data.Text as T
import Database.Persist
import Database.Persist.Class
import Database.Persist.Sql
import Model.Post
import Model.User
import Text.Blaze.Html
import Util
import qualified View.Posts
import Web.Spock
index :: RequestedFormat (... | bitraten/hands | src/Handler/Posts.hs | gpl-3.0 | 1,471 | 0 | 12 | 334 | 484 | 247 | 237 | 36 | 1 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the Lice... | karamellpelle/grid | designer/source/Game/LevelPuzzleMode/LevelPuzzleWorld/Content.hs | gpl-3.0 | 5,132 | 0 | 14 | 1,355 | 1,203 | 655 | 548 | 120 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-iam/gen/Network/Google/Resource/IAM/Organizations/Roles/Undelete.hs | mpl-2.0 | 6,269 | 0 | 16 | 1,251 | 795 | 471 | 324 | 112 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-adexchangebuyer2/gen/Network/Google/Resource/AdExchangeBuyer2/Accounts/Clients/Create.hs | mpl-2.0 | 5,250 | 0 | 18 | 1,209 | 804 | 467 | 337 | 115 | 1 |
{- |
Module : Bio.Motions.Common
Description : Common utility functions for working with common types.
License : Apache
Stability : experimental
Portability : unportable
-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts... | Motions/motions | src/Bio/Motions/Common.hs | apache-2.0 | 3,047 | 0 | 8 | 559 | 678 | 360 | 318 | 62 | 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="sl-SI">
<title>HTTPS Info Add-on</title>
<maps>
<homeID>httpsinfo</homeID>
<mapref loca... | secdec/zap-extensions | addOns/httpsInfo/src/main/javahelp/org/zaproxy/zap/extension/httpsinfo/resources/help_sl_SI/helpset_sl_SI.hs | apache-2.0 | 968 | 77 | 67 | 157 | 413 | 209 | 204 | -1 | -1 |
{- Scene.hs
- Heirarchical Scene Description
-
- Timothy A. Chagnon
- CS 636 - Spring 2009
-}
module Scene where
import Color
import Math
import Ray
import Primitive
import Mesh
data Scene =
Scene {
outfile :: String,
width :: Int,
height :: Int,
camera :: Came... | tchagnon/cs636-raytracer | a1/Scene.hs | apache-2.0 | 3,310 | 0 | 19 | 1,046 | 1,279 | 660 | 619 | 97 | 1 |
-- {-# OPTIONS_GHC -package=ghc-7.10.1 #-}
{-# LANGUAGE TypeFamilies, DataKinds, PolyKinds, StandaloneDeriving, TypeOperators, FlexibleInstances, ScopedTypeVariables #-}
module TySet(plugin, Set, Union) where
import TypeRep
import Type
import Kind
import TcEvidence
import CoAxiom
import Name
import OccName ... | k-bx/type-level-sets | TySet.hs | bsd-2-clause | 10,398 | 0 | 18 | 4,433 | 2,706 | 1,416 | 1,290 | -1 | -1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, TypeSynonymInstances, FlexibleInstances #-}
-- | Properties in this module ensure that things are currently mounted,
-- but without making the mount persistent. Use `Propellor.Property.Fstab`
-- to configure persistent mounts.
module Propellor.Property.Mount where
import Prop... | ArchiveTeam/glowing-computing-machine | src/Propellor/Property/Mount.hs | bsd-2-clause | 4,517 | 28 | 12 | 767 | 1,102 | 579 | 523 | 79 | 1 |
{-# LANGUAGE TypeFamilies #-}
module Text.Grampa.Combinators (moptional, concatMany, concatSome,
flag, count, upto,
delimiter, operator, keyword) where
import Control.Applicative(Applicative(..), Alternative(..))
import Data.List.NonEmpty (fromList)
impo... | blamario/grampa | grammatical-parsers/src/Text/Grampa/Combinators.hs | bsd-2-clause | 2,039 | 0 | 10 | 408 | 608 | 330 | 278 | 29 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ViewPatterns #-}
{-| This library exports two utilities for compiling Dhall expressions to Bash:
* `dhallToExpression`, which emits a Bash expression (i.e. a valid
right-hand side f... | Gabriel439/Haskell-Dhall-Library | dhall-bash/src/Dhall/Bash.hs | bsd-3-clause | 14,370 | 0 | 20 | 3,869 | 3,290 | 1,709 | 1,581 | 192 | 81 |
, testGroup "AU: standard typeclasses" [
testCase "show" $ "AU 15.5" @=? show (AU 15.5)
, testCase "showList" $ "[AU 15.3,AU 15.7]" @=? showList [AU 15.3, AU 15.7] ""
, testCase "showsPrec" $ "AU 15.5" @=? showsPrec 0 (AU 15.5) ""
, testCase "== (True)" ... | Alexander-Ignatyev/astro | test/Data/Astro/tmp.hs | bsd-3-clause | 1,720 | 2 | 12 | 610 | 720 | 358 | 362 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, NegativeLiterals #-}
module ETA.CodeGen.Prim where
import ETA.Main.DynFlags
import ETA.Types.TyCon
import ETA.Types.Type
import ETA.StgSyn.StgSyn
import ETA.Prelude.PrimOp
import ETA.Utils.Panic
import ETA.Utils.FastString
import Data.Maybe
import Codec.JVM
import ETA.CodeGen.ArgRep
imp... | pparkkin/eta | compiler/ETA/CodeGen/Prim.hs | bsd-3-clause | 45,153 | 0 | 20 | 9,250 | 12,972 | 6,440 | 6,532 | 866 | 3 |
module Data.List.TypeLevel.Intersection where
import Data.Constraint
import Data.List.TypeLevel.Cmp
import Data.List.TypeLevel.Subtraction (Subtraction)
import qualified Data.List.TypeLevel.Subtraction as Subtraction
import Data.List.TypeLevel.Union ... | andrewthad/vinyl-vectors | src/Data/List/TypeLevel/Intersection.hs | bsd-3-clause | 2,890 | 0 | 27 | 751 | 815 | 429 | 386 | -1 | -1 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Parsec (module AP, Parser, LineParser) where
import Control.Applicative as AP hiding (many,optional,(<|>))
import qualified Data.Text.Lazy as L
import Text.Parsec as AP hiding (satisfy, ParseError, errorPos)
import ... | kazu-yamamoto/piki | src/Parsec.hs | bsd-3-clause | 413 | 0 | 7 | 54 | 108 | 72 | 36 | 9 | 0 |
module Sudoku.Control.MoveSpec (main, spec) where
import Data.Set(singleton)
import Test.Hspec
import Sudoku.Control.Move
import Sudoku.Data.Board.Internal
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "Move properties:" $ do
let set = Set "0" "1" "1"
let set2 = Set "3" "4" ... | andrewmichaud/JustSudoku | test/Sudoku/Control/MoveSpec.hs | bsd-3-clause | 3,362 | 0 | 18 | 1,353 | 830 | 408 | 422 | 76 | 1 |
{-# language CPP #-}
-- | = Name
--
-- VK_NV_shader_subgroup_partitioned - device extension
--
-- == VK_NV_shader_subgroup_partitioned
--
-- [__Name String__]
-- @VK_NV_shader_subgroup_partitioned@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
-- 199
--
-- [__Revisio... | expipiplus1/vulkan | src/Vulkan/Extensions/VK_NV_shader_subgroup_partitioned.hs | bsd-3-clause | 4,234 | 0 | 8 | 696 | 200 | 154 | 46 | -1 | -1 |
{-# LANGUAGE ConstraintKinds, KindSignatures, DataKinds, ScopedTypeVariables, DeriveFunctor, RankNTypes, ViewPatterns, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, DeriveDataTypeable, DeriveGeneric, TupleSections #-}
module BlobStore where
import TypedBinary
import qualified Data.ByteString.Lazy as L
i... | aristidb/datastorage | src/BlobStore.hs | bsd-3-clause | 6,103 | 0 | 14 | 1,580 | 1,039 | 555 | 484 | 55 | 3 |
module Main (main) where
import Graphics.UI.Gtk
import Graphics.UI.Gtk.WebKit.WebView
import System.FilePath
import System.Environment(getArgs)
main = do
[url, path] <- getArgs
webSnap url path
webSnap :: String -> FilePath -> IO ()
webSnap url output = do
initGUI
w <- offscreenWindowNew
wv <- webVi... | jrb/websnap | src/Main.hs | bsd-3-clause | 756 | 0 | 13 | 188 | 255 | 127 | 128 | 29 | 2 |
module Main where
import Interpreter (interpret)
import Tokens (tokenize)
import Parser (parse)
import System.Environment (getArgs)
import Text.Show.Pretty (ppShow)
main :: IO ()
main = getArgs >>= run
run :: [String] -> IO ()
run ("c":args) = c args
run ("jit":args) = jit args
run ("i":args) = i args
run ("ast":ar... | tcsavage/rumex | src/Main.hs | bsd-3-clause | 876 | 0 | 9 | 185 | 382 | 200 | 182 | 28 | 1 |
{-# OPTIONS -fno-warn-type-defaults #-}
{-# LANGUAGE ExtendedDefaultRules #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Foundation layout elements. See
-- <http://foundation.zurb.com/> for more information.
module Lucid.Foundation
( module Lucid.Foundation.Structure
, module Lucid.Foundation.Navigation
, module L... | athanclark/lucid-foundation | src/Lucid/Foundation.hs | bsd-3-clause | 888 | 0 | 5 | 103 | 140 | 97 | 43 | 24 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.Monitors.Batt
-- Copyright : (c) 2010, 2011, 2012, 2013 Jose A Ortega
-- (c) 2010 Andrea Rossato, Petr Rockai
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Jose A. Ortega Ruiz ... | apoikos/pkg-xmobar | src/Plugins/Monitors/Batt.hs | bsd-3-clause | 7,148 | 0 | 17 | 2,046 | 2,519 | 1,343 | 1,176 | 161 | 9 |
{-|
Module : Pipeline
Description : Pipeline worker logic
Not working - needs refactor after last changes in Worker module.
-}
module Pipeline
where
import Protocol
import Reader
import Task as T
import qualified Worker as W
import qualified Data.List as DL
import qualified Data.Set as Set
import System.Dire... | zuzia/haskell_worker | src/Pipeline.hs | bsd-3-clause | 3,020 | 0 | 13 | 612 | 663 | 345 | 318 | 57 | 2 |
{-# LANGUAGE TemplateHaskell #-}
module Pinchot.SyntaxTree.Wrappers where
import qualified Control.Lens as Lens
import Data.List.NonEmpty (NonEmpty)
import Data.Maybe (catMaybes)
import qualified Language.Haskell.TH as T
import Pinchot.Names
import Pinchot.Rules
import Pinchot.Types
-- # Wrapped
-- | Creates a 'Len... | massysett/pinchot | pinchot/lib/Pinchot/SyntaxTree/Wrappers.hs | bsd-3-clause | 4,267 | 0 | 21 | 1,219 | 1,025 | 560 | 465 | 102 | 6 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeSynonymInstances #-}
import Prelude
import qualified Control.Exception as E
import Control.Monad
imp... | adunning/pandoc-citeproc | tests/test-citeproc.hs | bsd-3-clause | 10,230 | 0 | 22 | 2,876 | 2,808 | 1,447 | 1,361 | 221 | 7 |
{-# LANGUAGE ImplicitParams #-}
module Data.Macho.Types where
import Data.Int
import Data.Word
import Data.Bits
import Data.Binary.Get
import Data.Binary.Put
import Data.Bimap (Bimap)
import qualified Data.Bimap as Bimap
import Control.Monad
import Control.Applicative
import qualified Data.ByteString as B
imp... | copumpkin/macho | src/Data/Macho/Types.hs | bsd-3-clause | 33,246 | 0 | 12 | 8,379 | 4,894 | 2,953 | 1,941 | 619 | 17 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[TcMonoType]{Typechecking user-specified @MonoTypes@}
-}
{-# LANGUAGE CPP, TupleSections, MultiWayIf #-}
module TcHsType (
-- Type signatures
kcHsSigType, tcClassSigType,
tcHsSigType, tcHsS... | tjakway/ghcjvm | compiler/typecheck/TcHsType.hs | bsd-3-clause | 94,245 | 369 | 38 | 26,999 | 12,753 | 7,421 | 5,332 | -1 | -1 |
module Db (Band(..), Connection, createConnection, destroyConnection, migrate, selectBands) where
import Data.Text (Text)
import Database.PostgreSQL.Simple (Connection, close, connectPostgreSQL, query_, withTransaction)
import Database.PostgreSQL.Simple.FromRow (FromRow, fromRow, field)
import Database.PostgreSQL.Simp... | b0oh/heroku-docker-haskell-stack-example | src/Db.hs | isc | 1,228 | 0 | 10 | 218 | 311 | 173 | 138 | 28 | 1 |
-- module Practice where
times3PlusY = x * 3 + y
where x = 3
y = 1000
times5 = x * 5
where y = 10
x = 10 * 5 + y
divideProblem = z / x + y
where x = 7
y = negate x
z = y * 10
mult1 = x * y
where x = 5
y = 6
| brodyberg/Notes | ProjectRosalind.hsproj/LearnHaskell/lib/HaskellBook/Practice.hs | mit | 278 | 0 | 8 | 137 | 114 | 63 | 51 | 13 | 1 |
module Pos.Crypto.Signing.Types.Tag
( SignTag(..)
) where
import Universum
import Formatting (bprint, shown)
import qualified Formatting.Buildable
-- | To protect agains replay attacks (i.e. when an attacker intercepts a
-- signed piece of data and later sends it again), we add a ta... | input-output-hk/pos-haskell-prototype | crypto/Pos/Crypto/Signing/Types/Tag.hs | mit | 1,594 | 0 | 6 | 415 | 134 | 90 | 44 | 20 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/ReportInstanceStatus.hs | mpl-2.0 | 6,453 | 0 | 10 | 1,287 | 802 | 489 | 313 | 81 | 1 |
{-# OPTIONS_GHC -Wall -Wno-unticked-promoted-constructors -Wno-orphans -Wno-type-defaults #-}
{-# OPTIONS_GHC -ddump-tc-trace #-}
module Holo.Record
( Vocab(..)
, Definition(..)
)
where
import ExternalImports
import qualified Graphics.Cairo as Cr
import Holo.Instances
impor... | deepfire/mood | src/Holo/Record.hs | agpl-3.0 | 4,843 | 0 | 18 | 1,400 | 1,857 | 956 | 901 | -1 | -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="fil-PH">
<title>Gabay sa pagsisimula</title>
<maps>
<homeID>top</homeID>
<mapref locat... | veggiespam/zap-extensions | addOns/gettingStarted/src/main/javahelp/org/zaproxy/zap/extension/gettingStarted/resources/help_fil_PH/helpset_fil_PH.hs | apache-2.0 | 980 | 84 | 52 | 160 | 400 | 210 | 190 | -1 | -1 |
import qualified Tuura.PGminer.Main
main :: IO ()
main = Tuura.PGminer.Main.main
| tuura/process-mining | pgminer/Main.hs | bsd-3-clause | 82 | 0 | 6 | 11 | 27 | 16 | 11 | 3 | 1 |
module Web.Types where
import Web.Spock.Safe
import Formalize.Types
type SessionVal = Maybe SessionId
type FormalizeApp ctx = SpockCtxM ctx () SessionVal AppState ()
type FormalizeAction ctx a = SpockActionCtx ctx () SessionVal AppState a
data AppConfig = AppConfig
{ cPort :: Int
, cPath... | Lepovirta/Crystallize | app/Web/Types.hs | bsd-3-clause | 443 | 0 | 8 | 116 | 117 | 70 | 47 | 13 | 0 |
-- | Contains actions for voting on posts and comments. There are functions
-- for upvoting ('upvotePost', 'upvoteComment'), downvoting ('downvotePost',
-- 'downVoteComment') as well as removing votes that have already been cast
-- ('unvotePost', 'unvoteComment').
--
-- Please note that automated voting (i.e. b... | intolerable/reddit | src/Reddit/Actions/Voting.hs | bsd-2-clause | 1,573 | 0 | 9 | 281 | 323 | 177 | 146 | 26 | 1 |
-- | This module reexports the modules that every program using SubHask will need.
-- You should import it instead of Prelude.
module SubHask
( module SubHask.Algebra
, module SubHask.Category
, module SubHask.Compatibility.Base
, module SubHask.Internal.Prelude
, module SubHask.Monad
, module S... | abailly/subhask | src/SubHask.hs | bsd-3-clause | 505 | 0 | 5 | 85 | 78 | 52 | 26 | 13 | 0 |
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Idris.Core.DeepSeq where
import Idris.Core.TT
import Idris.Core.CaseTree
import Idris.Core.Evaluate
import Control.DeepSeq
instance NFData Name where
rnf (UN x1) = rnf x1 `seq` ()
rnf (NS x1 x2) = rnf x1 `seq` rnf x2 `seq` ()
rnf (MN x1 x... | osa1/Idris-dev | src/Idris/Core/DeepSeq.hs | bsd-3-clause | 9,370 | 0 | 12 | 3,184 | 4,944 | 2,594 | 2,350 | 216 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module System.Taffybar.DBus.Client.UPower where
import DBus.Generation
import System.FilePath
import System.Taffybar.DBus.Client.Params
import System.Taffybar.DBus.Client.Util
generateClientFromFile
defaultRecordGenerationParams { recordName = Just "UPowerInfo"
... | teleshoes/taffybar | src/System/Taffybar/DBus/Client/UPower.hs | bsd-3-clause | 515 | 0 | 10 | 113 | 82 | 50 | 32 | 12 | 0 |
{-# LANGUAGE CPP #-}
{-
Copyright (C) 2013-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) any later versi... | janschulz/pandoc | src/Text/Pandoc/Writers/OPML.hs | gpl-2.0 | 3,536 | 0 | 16 | 833 | 675 | 360 | 315 | 53 | 3 |
<?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="bs-BA">
<title>Code Dx | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref loca... | thc202/zap-extensions | addOns/codedx/src/main/javahelp/org/zaproxy/zap/extension/codedx/resources/help_bs_BA/helpset_bs_BA.hs | apache-2.0 | 968 | 78 | 66 | 159 | 413 | 209 | 204 | -1 | -1 |
module B2 where
import Control.Parallel.Strategies (rseq, rpar,
runEval)
qsort ((x : xs))
= lsort_2 ++ ([x] ++ hsort)
where
lsort = qsort (filter (<) x xs)
hsort = qsort (filter (>=) x xs)
lsort_2
=
runEval
(do lsort_2... | RefactoringTools/HaRe | old/testing/evalMonad/B2AST.hs | bsd-3-clause | 374 | 0 | 12 | 168 | 122 | 67 | 55 | 12 | 1 |
module Main where
import Criterion.Main
import Algo.ListRank (listRank)
import Algo.Rootfix (rootfix)
import Algo.Leaffix (leaffix)
import Algo.AwShCC (awshcc)
import Algo.HybCC (hybcc)
import Algo.Quickhull (quickhull)
import Algo.Spectral ( spectral )
import Algo.Tridiag ( tridiag )
import TestData.... | dolio/vector | benchmarks/Main.hs | bsd-3-clause | 1,686 | 0 | 13 | 559 | 538 | 294 | 244 | 36 | 1 |
{- |
Module : Numeric.GSL
Copyright : (c) Alberto Ruiz 2006-7
License : GPL-style
Maintainer : Alberto Ruiz (aruiz at um dot es)
Stability : provisional
Portability : uses -fffi and -fglasgow-exts
This module reexports all available GSL functions.
The GSL special functions are in the separate pa... | abakst/liquidhaskell | benchmarks/hmatrix-0.15.0.1/lib/Numeric/GSL.hs | bsd-3-clause | 1,190 | 0 | 7 | 172 | 148 | 99 | 49 | 21 | 0 |
{-# LANGUAGE FlexibleContexts #-}
module PostgREST.App (app, sqlError, isSqlError) where
import Control.Monad (join)
import Control.Arrow ((***), second)
import Control.Applicative
import Data.Text hiding (map)
import Data.Maybe (fromMaybe, mapMaybe)
import Text.Regex.TDFA ((=~))
import Data.Ord (comparing)
import Da... | nayosx/postgrest | src/PostgREST/App.hs | mit | 12,040 | 0 | 35 | 3,963 | 3,665 | 1,883 | 1,782 | -1 | -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... | ddssff/pandoc | src/Text/Pandoc/Writers/AsciiDoc.hs | gpl-2.0 | 18,861 | 0 | 19 | 5,601 | 5,310 | 2,622 | 2,688 | 351 | 30 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Reporting
-- Copyright : (c) David Waern 2008
-- License : BSD-like
--
-- Maintainer : david.waern@gmail.com
-- Stability : experimental
-- Portability : portable
--
-- Anonymous build ... | DavidAlphaFox/ghc | libraries/Cabal/cabal-install/Distribution/Client/BuildReports/Anonymous.hs | bsd-3-clause | 11,532 | 0 | 17 | 3,303 | 2,702 | 1,475 | 1,227 | 222 | 15 |
module Attribute where
data ComponentType =
IntegerSigned
| IntegerUnsigned
| FloatingPoint
data AttributeType = AttributeType {
attribute_component_type :: ComponentType,
attribute_component_count :: Word32,
attribute_component_size :: Word32
}
data Attribute = Attribute {
attribute_name :: String... | io7m/smf | com.io7m.smfj.specification/src/main/resources/com/io7m/smfj/specification/attribute.hs | isc | 358 | 0 | 8 | 61 | 65 | 41 | 24 | 12 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.