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 GeneralizedNewtypeDeriving
, FlexibleContexts
, FlexibleInstances
, MultiParamTypeClasses
, UndecidableInstances
, RankNTypes
, ScopedTypeVariables
#-}
module Data.BTree.Cache.STM where
import Data.Hashable (Hashable)
import qualified Da... | brinchj/btree-concurrent | Data/BTree/Cache/STM.hs | lgpl-3.0 | 9,400 | 15 | 21 | 3,230 | 4,001 | 1,980 | 2,021 | 255 | 7 |
<?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="tr-TR">
<title>TLS Debug | ZAP Uzantısı</title>
<maps>
<homeID>top</homeID>
<mapref loc... | secdec/zap-extensions | addOns/tlsdebug/src/main/javahelp/org/zaproxy/zap/extension/tlsdebug/resources/help_tr_TR/helpset_tr_TR.hs | apache-2.0 | 975 | 83 | 52 | 159 | 403 | 212 | 191 | -1 | -1 |
-----------------------------------------------------------------------------
--
-- Module : Manipulation
-- Description :
-- Copyright : (c) Tobias Reinhardt, 2015 <tobioso92_@hotmail.com
-- License : Apache License, Version 2.0
--
-- Maintainer : Tobias Reinhardt <tobioso92_@hotmail.com>
-- Portabilit... | tobiasreinhardt/show | IniConfiguration/src/Manipulation.hs | apache-2.0 | 1,098 | 8 | 11 | 209 | 340 | 186 | 154 | 20 | 1 |
-- | 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.... | mrkkrp/haskellers | Settings.hs | bsd-2-clause | 3,042 | 0 | 9 | 612 | 368 | 235 | 133 | -1 | -1 |
-- | Parse and encode JSON data in "Overpass API OSM JSON" format
--
-- http://overpass-api.de/output_formats.html#json
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
module OSM.OverpassJSON
where
import Data.Int (Int64)
import Data.Aeson
import Data.Aeson... | kolen/ptwatch | src/OSM/OverpassJSON.hs | bsd-2-clause | 3,187 | 0 | 18 | 716 | 1,095 | 552 | 543 | 76 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
module WebToInk.Converter.Exceptions where
import Control.Exception (Exception)
import Data.Typeable
data ConverterException = TableOfContentsCouldNotBeDownloadedException | UnknownDownloadException | KindlegenException Int
deriving (Show, Typeable)
instance Exception Con... | thlorenz/WebToInk | webtoink-converter/WebToInk/Converter/Exceptions.hs | bsd-2-clause | 336 | 0 | 6 | 39 | 56 | 33 | 23 | 7 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Web.Slack.IncomingWebhook (
sendMessage
) where
import Control.Monad (void)
import Data.Aeson (encode, toJSON)
import Network (withSocketsDo)
import Network.Wreq
import Web.Slack.IncomingWebhook.Attachment (Attachment)
import Web.Slack.IncomingWebhook.Message (defMessag... | ryota-ka/yo-slack-adapter | src/Web/Slack/IncomingWebhook.hs | bsd-3-clause | 434 | 0 | 8 | 56 | 119 | 70 | 49 | 11 | 1 |
module SimpleSolve (
solve
) where
import SudokuAbstract
import Data.Maybe
-- |Very basic alghoritm of solving a sudoku.
solve :: (SudokuBoard b, SudokuSquare s, SudokuValue v) => b (s v) -> Maybe (b (s v))
solve board = solve' board (0,0)
where
solve' board (0,9) = Just board
... | Solpatium/Haskell-Sudoku | src/SimpleSolve.hs | bsd-3-clause | 1,108 | 0 | 13 | 600 | 250 | 129 | 121 | 16 | 5 |
{-# LANGUAGE MultiParamTypeClasses, GeneralizedNewtypeDeriving, ScopedTypeVariables, DeriveDataTypeable, RecordWildCards #-}
-- | Both System.Directory and System.Environment wrappers
module Development.Shake.Directory(
doesFileExist, doesDirectoryExist,
getDirectoryContents, getDirectoryFiles, getDirectoryDir... | nh2/shake | Development/Shake/Directory.hs | bsd-3-clause | 9,619 | 0 | 16 | 2,090 | 2,609 | 1,351 | 1,258 | 155 | 3 |
module MainSpec where
import Test.Hspec
spec :: Spec
spec = do return ()
-- describe "main" $ do
-- it "works" $ do
-- 1 `shouldBe` 1
| mg50/hypnerotomachia | test/MainSpec.hs | bsd-3-clause | 154 | 0 | 8 | 47 | 30 | 18 | 12 | 4 | 1 |
{-# OPTIONS_GHC -fno-warn-missing-signatures -fno-warn-type-defaults #-}
module Colors (
red, green, yellow, blue,
magenta, cyan, white2, white, black,
bright, dim, underline, blink, Colors.reverse, hidden
) where
bright string = "\ESC[1m" ++ string ++ "\ESC[0m"
dim string = "\ESC[2m" ++ string ++ "\ESC... | blockapps/mgit | src/Colors.hs | bsd-3-clause | 991 | 0 | 6 | 167 | 296 | 158 | 138 | 20 | 1 |
{-# OPTIONS -cpp #-}
-- OPTIONS required for ghc-6.4.x compat, and must appear first
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -cpp #-}
{-# OPTIONS_NHC98 -cpp #-}
{-# OPTIONS_JHC -fcpp #-}
-- #hide
module Distribution.Compat.CopyFile (
copyFile,
copyOrdinaryFile,
copyExecutableFile,
setFileOrdinary,
setFileExecuta... | dcreager/cabal | Distribution/Compat/CopyFile.hs | bsd-3-clause | 3,255 | 0 | 14 | 812 | 657 | 364 | 293 | 31 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiWayIf #-}
-- todaybot
-- ben clifford benc@hawaga.org.uk
-- used https://www.fpcomplete.com/school/to-infinity-and-beyond/competition-winners/interfacing-with-restful-json-apis
-- as a tutorial
import Prelude hiding (mapM_)
imp... | benclifford/lsc-todaybot | Main.hs | bsd-3-clause | 8,115 | 0 | 22 | 1,893 | 2,034 | 1,034 | 1,000 | -1 | -1 |
module Code04 where
import Data.Array
-- Sample data
sX,sY :: Int -> [Int]
sX n = take n [ 2*x | x <- [0..], x `mod` 3 /= 0 ]
sY n = take n [ 3*x | x <- [0..]]
aX,aY :: Int -> Array Int Int
aX n = listArray (0,n) (sX n)
aY n = listArray (0,n) (sY n)
sX10 = sX 10
sX100 = sX 100
sX1000 = sX 1000
sX10000 = sX 10000
s... | sampou-org/pfad | Code/Code04.hs | bsd-3-clause | 2,389 | 0 | 16 | 798 | 1,329 | 720 | 609 | 70 | 4 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}
module Milib.Contest
( contestMain
, hContestMain
, hContestMainN
, parserWithoutError
, parsec
, gcjParsec
, gcjPrinter
, gcjPrinterLn
) where
import Cont... | mkut/milib_haskell | src/Milib/Contest.hs | bsd-3-clause | 2,241 | 0 | 12 | 527 | 801 | 421 | 380 | 60 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
module Problem11
( maxProductInMatrix
, maxProductInList
, diagonalsLR
, diagonalsRL
, cutFirstColumn
, upperRightHalf
) where
import Data.List as L
import Lib (slices)
type SliceProduct = (Int, [Int])
-- further relying on `Ord a => (a,a)` being an instance
-- o... | candidtim/euler | src/Problem11.hs | bsd-3-clause | 3,483 | 0 | 14 | 915 | 1,773 | 1,128 | 645 | 57 | 1 |
{-# LANGUAGE OverloadedStrings, FlexibleContexts, PackageImports #-}
module Network.Sasl.External.Client (sasl) where
import "monads-tf" Control.Monad.State
import "monads-tf" Control.Monad.Error
import Data.Pipe
import qualified Data.ByteString as BS
import Network.Sasl
sasl :: (
MonadState m, SaslState (StateTy... | YoshikuniJujo/sasl | src/Network/Sasl/External/Client.hs | bsd-3-clause | 846 | 28 | 11 | 131 | 307 | 168 | 139 | 24 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Yesod.Helpers.Logger where
import ClassyPrelude
import Data.Default (Default(..))
import qualified Data.Text as T
import Control.DeepSeq (force)
import Network.Wai.Logger (DateCacheGetter)
imp... | yoo-e/yesod-helpers | Yesod/Helpers/Logger.hs | bsd-3-clause | 15,756 | 0 | 23 | 4,835 | 3,853 | 1,924 | 1,929 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
The @match@ function
-}
{-# LANGUAGE CPP #-}
module Match ( match, matchEquations, matchWrapper, matchSimply, matchSinglePat ) where
#include "HsVersions.h"
import {-#SOURCE#-} DsExpr (dsLExpr, dsExpr)
import DynFlags... | gridaphobe/ghc | compiler/deSugar/Match.hs | bsd-3-clause | 40,083 | 12 | 21 | 10,631 | 6,852 | 3,582 | 3,270 | 381 | 28 |
{-# OPTIONS_GHC -Wall #-}
module BP.Ast where
import BP.Type
import Data.List(intercalate)
import qualified Text.PrettyPrint as PP
type EName = String
type Terms = [Term]
data ParamWithOptionalType = Param EName (Maybe Type)
data Term = Ident EName
| Lambda EName Term
| Function EName [ParamWith... | zjhmale/HMF | src/BP/Ast.hs | bsd-3-clause | 2,141 | 0 | 14 | 968 | 577 | 289 | 288 | 37 | 10 |
{-# OPTIONS_GHC -fno-warn-dodgy-exports #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE NoImplicitPrelude #-}
module Sound
(
-- * Reexports
-- $reexports
module Control.Monad
, module Data.Complex
, module Data.Int
-- * Input, output, and conversion
, module Sound.Io.Snd
, module Sound.I... | edom/sound | src/Sound.hs | bsd-3-clause | 2,856 | 0 | 5 | 599 | 475 | 313 | 162 | 83 | 0 |
{-# LANGUAGE CPP, DeriveFunctor, GADTs, PatternSynonyms #-}
-----------------------------------------------------------------------------
--
-- Pretty-printing of Cmm as C, suitable for feeding gcc
--
-- (c) The University of Glasgow 2004-2006
--
-- Print Cmm as real C, for -fvia-C
--
-- See wiki:commentary/compiler/b... | sdiehl/ghc | compiler/GHC/CmmToC.hs | bsd-3-clause | 52,471 | 0 | 20 | 16,099 | 12,823 | 6,359 | 6,464 | 895 | 68 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
module Unification where
import Control.Applicative
import Control.Monad
import Control.Monad.ST
import Control.Monad... | kylcarte/cardelli | src/Unification.hs | bsd-3-clause | 4,077 | 0 | 15 | 1,253 | 1,909 | 959 | 950 | -1 | -1 |
module LevelBuilder where
import Control.Category
import Control.Lens
import Data.Default
import Data.Map.Strict as Map
import Prelude hiding (Either(..), id, (.))
import Coord
import Entity
import GameState
(<>)
:: Monoid m
=> m -> m -> m
(<>) = mappend
data Tile
= Floor
| Wall
| LitColumn
d... | fros1y/umbral | src/LevelBuilder.hs | bsd-3-clause | 2,169 | 0 | 12 | 404 | 730 | 389 | 341 | 57 | 1 |
module Test.Ninja(main) where
import Development.Shake
import qualified Development.Shake.Config as Config
import System.Directory(copyFile, removeFile)
import Control.Monad
import General.GetOpt
import General.Extra
import Test.Type
import qualified Data.HashMap.Strict as Map
import Data.List.Extra
import System.IO.... | ndmitchell/shake | src/Test/Ninja.hs | bsd-3-clause | 4,964 | 0 | 17 | 877 | 990 | 443 | 547 | 97 | 2 |
#!/usr/bin/env runghc
-- NB: This code deliberately avoids relying on non-standard packages
import Control.Monad
import Data.List
import System.Environment
import System.Exit
import System.IO
import Distribution.PackageDescription.Parse (readPackageDescription)
import Distribution.PackageDescription (packageDescript... | davidlazar/hpygments | gen-travis-yml.hs | mit | 8,349 | 0 | 16 | 2,496 | 1,671 | 906 | 765 | 160 | 2 |
{- DATX02-17-26, automated assessment of imperative programs.
- Copyright, 2017, see AUTHORS.md.
-
- 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... | DATX02-17-26/DATX02-17-26 | Test/Norm/CompAssignmentTest.hs | gpl-2.0 | 1,150 | 0 | 6 | 204 | 56 | 34 | 22 | 8 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Network.AWS.CloudTrail.Waiters
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : Mozilla Public Licen... | fmapfmapfmap/amazonka | amazonka-cloudtrail/gen/Network/AWS/CloudTrail/Waiters.hs | mpl-2.0 | 633 | 0 | 4 | 122 | 39 | 31 | 8 | 7 | 0 |
-- Module : Network.AWS.KMS
-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>
-- License : This Source Code Form is subject to the terms of
-- the Mozilla Public License, v. 2.0.
-- A copy of the MPL can be found in the LICENSE file or
-- you can obt... | kim/amazonka | amazonka-kms/gen/Network/AWS/KMS.hs | mpl-2.0 | 3,200 | 0 | 5 | 473 | 417 | 310 | 107 | 53 | 0 |
import Data.List.Split
import Midi
main = write_music "test3.mid" 1 1 song
song = Parallel [under, over]
under = Higher (-24) $ Longer 4 $ Sequence [ Sequence chord, Longer 4 (Parallel chord) ]
over = Sequence (let x = take 8 major in x ++ reverse x)
chord = take 4 $ every 2 major
minor = concat $ iterate... | sordina/Midi | test/test3.hs | bsd-3-clause | 426 | 0 | 11 | 101 | 215 | 110 | 105 | 11 | 1 |
{-# OPTIONS #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.Python.Common.LexerUtils
-- Copyright : (c) 2009 Bernie Pope
-- License : BSD-style
-- Maintainer : bjpop@csse.unimelb.edu.au
-- Stability : experimental
-- Portability : ghc
--
-- Va... | jml/language-python | src/Language/Python/Common/LexerUtils.hs | bsd-3-clause | 7,246 | 0 | 17 | 1,596 | 1,955 | 1,030 | 925 | 158 | 6 |
{-# OPTIONS_HADDOCK hide #-}
{-# LANGUAGE TemplateHaskell, OverloadedStrings #-}
module SecondTransfer.Http1.Parse(
newIncrementalHttp1Parser
,addBytes
-- Internal exports, used by the test suite
,locateCRLFs
,splitByColon
,stripBs
,headerListToHTTP1RequestText
,headerListToHTTP1Respon... | shimmercat/second-transfer | hs-src/SecondTransfer/Http1/Parse.hs | bsd-3-clause | 28,177 | 0 | 23 | 9,049 | 5,606 | 3,034 | 2,572 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
module Example(main, platforms) where
import Development.Bake
import Development.Shake.Command
import System.Environment.Extra
import System.FilePath
import Data.List.Extra
import Data.Tuple.Extra
import System.Directory
import Control.Monad.Extra
import Data.Maybe
import System.Tim... | capital-match/bake | src/Example.hs | bsd-3-clause | 1,741 | 0 | 13 | 368 | 556 | 300 | 256 | 45 | 2 |
-- | The example program from the linux-perf.cabal file.
-- Let's run it once in a while to make sure API changes did not break it.
module Main where
import Profiling.Linux.Perf (readPerfData)
import Profiling.Linux.Perf.Types (PerfData (..))
import System.Environment (getArgs)
main :: IO ()
main = do
args <- get... | Mikolaj/haskell-linux-perf | test/count-events.hs | bsd-3-clause | 474 | 0 | 13 | 108 | 122 | 66 | 56 | 12 | 2 |
{-# LANGUAGE Haskell2010 #-}
{-# LINE 1 "System/FilePath/Windows.hs" #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE Safe #-}
{-# LANGUAGE PatternGuards #-}
-- This template expects CPP definitions for:
-- Windows = Posix | Windows
-- True = False | True
-- |
-- Module ... | phischu/fragnix | tests/packages/scotty/System.FilePath.Windows.hs | bsd-3-clause | 38,649 | 0 | 18 | 7,510 | 5,160 | 2,971 | 2,189 | 303 | 6 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Data.Streaming.ByteString.BuilderSpec
( spec
, builderSpec
, BuilderFunctions(..)
) where
import qualified Data.ByteString as S
import Data.ByteString.Char8 ()
import qualified Data.ByteStrin... | phadej/streaming-commons | test/Data/Streaming/ByteString/BuilderSpec.hs | mit | 5,520 | 0 | 24 | 1,779 | 1,563 | 793 | 770 | 124 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-sqs/gen/Network/AWS/SQS/ChangeMessageVisibilityBatch.hs | mpl-2.0 | 5,585 | 0 | 10 | 1,019 | 577 | 351 | 226 | 65 | 1 |
module Oracles.Setting (
configFile, Setting (..), SettingList (..), setting, settingList, getSetting,
getSettingList, anyTargetPlatform, anyTargetOs, anyTargetArch, anyHostOs,
ghcWithInterpreter, ghcEnableTablesNextToCode, useLibFFIForAdjustors,
ghcCanonVersion, cmdLineLengthLimit, iosHost, osxHost, w... | snowleopard/shaking-up-ghc | src/Oracles/Setting.hs | bsd-3-clause | 9,078 | 0 | 13 | 2,227 | 1,260 | 697 | 563 | 146 | 37 |
module Data.Graph.Inductive.Internal.Queue
(Queue(..), mkQueue, queuePut, queuePutList, queueGet, queueEmpty)
where
{
data Queue a = MkQueue [a] [a];
mkQueue :: Queue a;
mkQueue = MkQueue [] [];
queuePut :: a -> Queue a -> Queue a;
queuePut item (MkQueue ins outs) = MkQueue (item : ins... | ckaestne/CIDE | other/CaseStudies/fgl/CIDEfgl/Data/Graph/Inductive/Internal/Queue.hs | gpl-3.0 | 737 | 0 | 9 | 178 | 336 | 184 | 152 | 15 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
-}
module VarEnv (
-- * Var, Id and TyVar environments (maps)
VarEnv, IdEnv, TyVarEnv, CoVarEnv, TyCoVarEnv,
-- ** Manipulating these environments
emptyVarEnv, unitVarEnv, mkVarEnv, mkVarEnv... | shlevy/ghc | compiler/basicTypes/VarEnv.hs | bsd-3-clause | 21,826 | 0 | 14 | 5,628 | 4,857 | 2,684 | 2,173 | 337 | 2 |
<?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="ms-MY">
<title>OpenAPI Support Add-on</title>
<maps>
<homeID>openapi</homeID>
<mapref l... | thc202/zap-extensions | addOns/openapi/src/main/javahelp/org/zaproxy/zap/extension/openapi/resources/help_ms_MY/helpset_ms_MY.hs | apache-2.0 | 971 | 77 | 67 | 157 | 413 | 209 | 204 | -1 | -1 |
{-# LANGUAGE RoleAnnotations, RankNTypes, ScopedTypeVariables #-}
import Data.Coerce (coerce, Coercible)
import Data.Ord (Down)
newtype Age = Age Int deriving Show
type role Map nominal _
data Map a b = Map a b deriving Show
foo1 = coerce $ one :: ()
foo2 :: forall m. Monad m => m Age
foo2 = coerce $ (return one :... | frantisekfarka/ghc-dsi | testsuite/tests/typecheck/should_fail/TcCoercibleFail.hs | bsd-3-clause | 795 | 0 | 9 | 174 | 276 | 154 | 122 | 19 | 1 |
module State0 () where
import State
{-@ fresh :: ST <{\v -> (v >= 0)}, {\xx v -> ((xx>=0) && (v>=0))}> Int Int @-}
fresh :: ST Int Int
fresh = S (\n -> (n, n+1))
{-@ incr4' :: ST <{\v -> (v>=0)}, {\xxxx v -> ((v>=0) && (xxxx>=0))}> Int Int @-}
incr4' :: ST Int Int
incr4' = fresh `bindST` returnST
| mightymoose/liquidhaskell | tests/pos/State1.hs | bsd-3-clause | 301 | 0 | 9 | 65 | 69 | 41 | 28 | 6 | 1 |
module T13591A where
import Second
one :: Int
one = _
| ezyang/ghc | testsuite/tests/ghci/scripts/T13591A.hs | bsd-3-clause | 54 | 0 | 4 | 11 | 17 | 11 | 6 | 4 | 1 |
-- !!! Dynamic library regression tests
module Main(main) where
import Data.Dynamic
main :: IO ()
main = do
test "toDyn" toDyn_list
testIO "fromDyn" fromDyn_test
toDyn_list :: [Dynamic]
toDyn_list =
[ toDyn (1::Int)
, toDyn ('a')
, toDyn False
, toDyn ((-1.0)::Float)
, toDyn (0.0::Doubl... | seereason/ghcjs | test/pkg/base/dynamic001.hs | mit | 3,104 | 2 | 17 | 720 | 1,286 | 692 | 594 | 62 | 2 |
import Data.Complex
main :: IO ()
main = do let res = dft $ enumerate $ map (\x -> x :+ 0) [1..100]
putStrLn $ show res
enumerate :: Integral b => [a] -> [(a, b)]
enumerate l = zip l [0..]
dft :: (RealFloat a, Integral b) => [(Complex a, b)] -> [Complex a]
dft x = map (\(_, k) -> singleDFT k x) x... | fredmorcos/attic | snippets/haskell/DFT.hs | isc | 681 | 2 | 14 | 212 | 382 | 201 | 181 | 13 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Pretty where
import qualified Pact as P
import qualified Data.Maybe as M
import qualified Data.ByteString.Lazy.Char8 as BLC
import Text.PrettyPrint.ANSI.Leijen
import Data.Aeson.Encode.Pretty (encodePretty)
type Path = String
contractStart :: Path -> P.ContractDescription ->... | mannersio/manners | cli/src/Pretty.hs | mit | 2,474 | 0 | 19 | 588 | 885 | 448 | 437 | 54 | 6 |
{-# LANGUAGE OverloadedStrings #-}
module MyAntigen where
import Antigen (
-- Rudimentary imports
AntigenConfig (..)
, defaultConfig
, bundle
, antigen
-- If you want to source a bit trickier plugins
, ZshPlugin (..... | jacquesd/dotfiles | zsh/MyAntigen.hs | mit | 945 | 0 | 8 | 334 | 136 | 82 | 54 | 24 | 1 |
module Queens (queens) where
import Control.Monad (zipWithM_)
import FD
queens n = runFD $ do
vars <- news n (1, n)
allDifferent vars
diagonals vars
labelling vars
diagonals :: [FDExpr] -> FDConstraint
diagonals [] = return ()
diagonals (x:xs) = do
zipWithM_ (diag x) xs [1..]
diagonals xs... | dmoverton/finite-domain | src/Queens.hs | mit | 421 | 0 | 10 | 113 | 188 | 93 | 95 | 17 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Travis
Description : A simple client implementation using Travis CI API.
Copyright : (c) Tomas Tauber, 2015
License : MIT
Maintainer : Tomas Tauber <tomtau@hku.hk>
Stability : experimental
A simple client implementation using Travis CI API: <http://docs.tra... | tomtau/travis | src/Travis.hs | mit | 1,749 | 0 | 12 | 360 | 331 | 178 | 153 | 25 | 1 |
{-# LANGUAGE RecordWildCards #-}
module Main where
import WangsAlgorithm.Prover
import WangsAlgorithm.LaTeX (latexProof)
import qualified WangsAlgorithm.Parser as P
import Options.Applicative
import Data.Semigroup ((<>))
data Backend =
Text
| LaTeX
deriving (Show, Eq, Read, Enum, Bounded)
allBackends :: [Bac... | joom/WangsAlgorithm | execs/Main.hs | mit | 1,395 | 0 | 15 | 356 | 394 | 202 | 192 | 43 | 4 |
module Glucose.Parser.EOFOr where
data EOFOr a = EOF | NotEOF a
deriving (Functor, Eq, Show)
-- instance Ord a => Ord (EOFOr a) where
-- compare EOF EOF = EQ
-- compare EOF (NotEOF _) = GT
-- compare (NotEOF _) EOF = LT
-- compare (NotEOF a) (NotEOF b) = compare a b
maybeEOF :: b -> (a -> b) -> ... | sardonicpresence/glucose | src/Glucose/Parser/EOFOr.hs | mit | 387 | 0 | 8 | 107 | 100 | 56 | 44 | 6 | 1 |
module Main where
import JavaFX
import TeaStormApp
main :: IO ()
main = javafx (Proxy :: Proxy TeaStormApp)
| filippovitale/eta-playground | javafx-teastorm/src/Main.hs | mit | 110 | 0 | 7 | 20 | 37 | 21 | 16 | 5 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE ScopedTypeVariables #-}
--------------------------------------------------------------------------------
-- |
-- Module : Network.MQTT.Broker
-- Copyright : (c) Lars Petersen 2016
-- License : MIT
--
-- Maintainer : info@lars-petersen.net
-- Stability ... | lpeterse/haskell-mqtt | src/Network/MQTT/Broker.hs | mit | 11,336 | 2 | 29 | 3,426 | 2,255 | 1,161 | 1,094 | 181 | 8 |
-- ghci
-- :load C:\Users\Thomas\Documents\GitHub\haskell.practice\PE\Problem0019.hs
-- :r
-- :set +s
module Problem19 where
import Data.Time.Calendar
import Data.Time.Calendar.WeekDate
--1 monday - 7 sunday http://www.haskell.org/ghc/docs/6.12.3/html/libraries/time-1.1.4/Data-Time-Calendar-WeekDate.html
-- Fir... | Sobieck00/practice | pe/nonvisualstudio/haskell/OldWork/Implementation/Problem0019.hs | mit | 1,792 | 66 | 13 | 283 | 419 | 229 | 190 | 29 | 1 |
import Data.Hash.MD5
main = do
let input = "ojvtpuvg"
result = compute input
print result
compute :: String -> String
compute input = take 8 $ findPass input 0
findPass :: String -> Int -> String
findPass input index1 = c : findPass input (index2 + 1)
where (c, index2) = computeHas... | aBhallo/AoC2016 | Day 5/day5part1.hs | mit | 555 | 0 | 10 | 149 | 219 | 110 | 109 | 15 | 1 |
import ChunkedMain (chunkedMain)
import FrequencyParMap (frequencyChunked)
main :: IO ()
main = chunkedMain frequencyChunked
| apauley/parallel-frequency | src/freq-parmap.hs | mit | 126 | 0 | 6 | 15 | 35 | 19 | 16 | 4 | 1 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell #-}
-- | Alert API.
module Web.Mackerel.Api.Alert (listAlerts, closeAlert) where
import Data.Aeson.TH (deriveJSON)
import qualified Data.ByteString.Char8 as BS
import qualified Data.HashMap.Lazy as HM
import Network.HTTP.Types (StdMethod(..))
import Web.Mackerel.Client
... | itchyny/mackerel-client-hs | src/Web/Mackerel/Api/Alert.hs | mit | 988 | 0 | 13 | 123 | 295 | 168 | 127 | 19 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE MultiParamTypeClasses #-}
-------------------------------------------------------------------------------
-- Module : Domain.Concrete.Transformers.System
-- Copyright : (c) 2017 Marcelo Sousa
--
-- Transformers for the concrete semantics.
-- Transformer for the system... | marcelosousa/poet | src/Domain/Concrete/Transformers/System.hs | gpl-2.0 | 1,962 | 0 | 12 | 258 | 488 | 285 | 203 | 36 | 1 |
module Interface (startInterface) where
import Interface.Torrent.Info
import Interface.Torrent.List
import Interface.Torrent.Behavior
import Interface.Torrent.Handler
import Interface.Completed
import Interface.Peer
import HTorrentPrelude
import MetaInfo
import Torrent.Env
import qualified Graphics.UI.Threepenny as U... | ian-mi/hTorrent | Interface.hs | gpl-3.0 | 1,766 | 0 | 12 | 387 | 522 | 288 | 234 | 46 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings #-}
module Language.UHIM.Japanese.Adjective where
import qualified Data.Text as T
import qualified Data.Map as M
import Data.Map (Map)
import Data.Aeson.Types hiding (parse)
import Language.UHIM.Japanese.Prim (JaYomi(..))
data JaAdjConjugation = JaAdjI ... | na4zagin3/uhim-dict | src/Language/UHIM/Japanese/Adjective.hs | gpl-3.0 | 2,340 | 0 | 13 | 493 | 587 | 324 | 263 | 59 | 1 |
module HEP.Automation.MadGraph.Dataset.Set20110714set2 where
import HEP.Storage.WebDAV.Type
import HEP.Automation.MadGraph.Model
import HEP.Automation.MadGraph.Machine
import HEP.Automation.MadGraph.UserCut
import HEP.Automation.MadGraph.SetupType
import HEP.Automation.MadGraph.Model.Trip
import HEP.Automation.MadG... | wavewave/madgraph-auto-dataset | src/HEP/Automation/MadGraph/Dataset/Set20110714set2.hs | gpl-3.0 | 2,386 | 0 | 14 | 803 | 458 | 288 | 170 | 48 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module Test.Fake
( FakeMoon(..)
, output, allowedContent, forkCount, timeoutCount
, loggedMess... | felixsch/moonbase | test/Test/Fake.hs | gpl-3.0 | 6,739 | 0 | 15 | 1,702 | 2,114 | 1,119 | 995 | -1 | -1 |
{-# LANGUAGE FlexibleInstances, FlexibleContexts, MultiParamTypeClasses, FunctionalDependencies, BangPatterns, NoMonomorphismRestriction, ScopedTypeVariables, StandaloneDeriving, TemplateHaskell, NamedFieldPuns, FlexibleContexts, TypeFamilies, OverlappingInstances, CPP #-}
{-# OPTIONS -Wall -fno-warn-unused-binds -fno... | DanielSchuessler/hstri | Equivalence.hs | gpl-3.0 | 8,364 | 0 | 20 | 2,235 | 1,891 | 1,014 | 877 | 127 | 3 |
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : Network.Google.Internal.Body
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
-- Stability : provisional
-- Portability : non-portable (GHC extensions)
--
module ... | rueshyna/gogol | gogol/src/Network/Google/Internal/Body.hs | mpl-2.0 | 1,715 | 0 | 12 | 392 | 296 | 174 | 122 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-file/gen/Network/Google/Resource/File/Projects/Locations/Instances/List.hs | mpl-2.0 | 6,970 | 0 | 20 | 1,618 | 1,048 | 607 | 441 | 148 | 1 |
import Data.Ratio
import Data.List
fm = flip (-)
-- Special form(s) of div which maps x / 0 to 0
cdiv a 0 = 0
cdiv a b = a / b
fcdiv 0 b = 0
fcdiv a b = b / a
genChoose _ 0 = [[]]
genChoose l n =
concat $
map (\h -> map (h:) (genChoose l (n-1))) l
ops :: [Ratio Integer -> Ratio Integer -> Ratio Integer]
ops = ... | jdavidberger/project-euler | prob93.hs | lgpl-3.0 | 855 | 0 | 13 | 210 | 522 | 281 | 241 | 25 | 1 |
module VMerge where
import CLaSH.Prelude
topEntity :: (Vec 2 Int,Vec 2 Int) -> Vec 4 Int
topEntity (x,y) = merge x y
testInput :: Signal (Vec 2 Int,Vec 2 Int)
testInput = signal (iterateI (+1) 1,iterateI (+1) 3)
expectedOutput :: Signal (Vec 4 Int) -> Signal Bool
expectedOutput = outputVerifier ((1:>3:>2:>4:>Nil):>... | ggreif/clash-compiler | tests/shouldwork/Vector/VMerge.hs | bsd-2-clause | 325 | 0 | 12 | 55 | 171 | 90 | 81 | -1 | -1 |
import Data.Array
import qualified Data.Array.Unboxed as U
import qualified Data.Foldable as Fld
import Data.List
import qualified Data.Map as Map
import Data.Maybe
import qualified Data.Sequence as Seq
buildArr la a b f = res
where
res = la (a, b) (map (f (res !)) [a .. b])
arrlst i j xs = map (xs !) [i ... | pbl64k/HackerRank-Contests | 2014-06-20-FP/BoleynSalary/bs.accepted.hs | bsd-2-clause | 4,701 | 0 | 20 | 1,696 | 2,475 | 1,319 | 1,156 | 108 | 6 |
module HEP.ModelScan.MSSMScan.Parse where
import Debug.Trace
import qualified Data.ByteString.Lazy.Char8 as B
import Data.ByteString.Lex.Lazy.Double
import HEP.ModelScan.MSSMScan.Model
import HEP.Physics.MSSM.OutputPhys
isRight (Left x) = False
isRight (Right x) = True
unRight (Right x) = x
unRight (Left x) ... | wavewave/MSSMScan | src/HEP/ModelScan/MSSMScan/Parse.hs | bsd-2-clause | 5,897 | 1 | 53 | 2,937 | 1,479 | 723 | 756 | 110 | 3 |
{-|
Module : Data.Number.MPFR.Integer
Description : Integer related functions
Copyright : (c) Aleš Bizjak
License : BSD3
Maintainer : ales.bizjak0@gmail.com
Stability : experimental
Portability : non-portable
For documentation on particular functions see
<http://www.... | ekmett/hmpfr | src/Data/Number/MPFR/Integer.hs | bsd-3-clause | 4,960 | 0 | 26 | 1,630 | 1,605 | 818 | 787 | 94 | 1 |
{-# LANGUAGE CPP, FlexibleContexts#-}
module Tools.TimePlot.Conf (
ConcreteConf(..),
Conf,
readConf
) where
import Text.Regex.TDFA
import Text.Regex.TDFA.ByteString
import Data.Time hiding (parseTime)
import Data.Time.Parse
import Data.List
import Graphics.Rendering.Chart
import qualified Data... | jkff/timeplot | Tools/TimePlot/Conf.hs | bsd-3-clause | 10,055 | 0 | 20 | 3,083 | 2,745 | 1,500 | 1,245 | 156 | 52 |
--
-- @file
--
-- @brief Translates the parsed intermediate specifications into a compilable Haskell program using our EDSL
--
-- @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
--
module Elektra.SpecTranslator (KeySpecification (..), translateSpecifications) where
import Elektra.Specifications
... | e1528532/libelektra | src/libs/typesystem/spectranslator/Elektra/SpecTranslator.hs | bsd-3-clause | 5,223 | 0 | 21 | 1,245 | 1,698 | 888 | 810 | 91 | 5 |
{-# LANGUAGE PatternGuards, LambdaCase #-}
module Development.NSIS.Optimise(optimise) where
import Development.NSIS.Type
import Data.Generics.Uniplate.Data
import Data.List
import Data.Maybe
-- before: secret = 1021, primes = 109
optimise :: [NSIS] -> [NSIS]
optimise =
-- allow Label 0
rep (elimDeadLabel .... | ndmitchell/nsis | src/Development/NSIS/Optimise.hs | bsd-3-clause | 4,668 | 0 | 15 | 1,566 | 1,915 | 963 | 952 | 102 | 8 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fplugin Brisk.Plugin #-}
{-# OPTIONS_GHC -fplugin-opt Brisk.Plugin:main #-}
module Scratch where
import Control.Distributed.Process
import Data.Binary
import Data.Type... | abakst/brisk-prelude | examples/data00.hs | bsd-3-clause | 737 | 0 | 8 | 165 | 167 | 89 | 78 | 21 | 1 |
{-# OPTIONS_GHC -fplugin Brisk.Plugin #-}
module LookAtAnnotations where
import AnnotateMe
foo :: Int
foo = AnnotateMe.x
| abakst/brisk-prelude | examples/LookAtAnnotations.hs | bsd-3-clause | 123 | 0 | 5 | 18 | 20 | 13 | 7 | 5 | 1 |
module GPP where
import Data.Generics.Strafunski.StrategyLib.StrategyLib
import Text.PrettyPrint.HughesPJ
import Control.Monad.Identity
-- | The type of generic pretty-printers (universally quantified).
type GPP = forall a . Term a => a -> Doc
-- | The type of generic pretty-printers (as TU strategy)
type TUDoc = TU... | jkoppel/Strafunski-Sdf2Haskell | generator/GPP.hs | bsd-3-clause | 1,997 | 0 | 10 | 431 | 551 | 294 | 257 | -1 | -1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.EXT.Convolution
-- Copyright : (c) Sven Panne 2013
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
... | mfpi/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/EXT/Convolution.hs | bsd-3-clause | 1,643 | 0 | 4 | 222 | 136 | 98 | 38 | 35 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
module Check.Snmp where
import Check.Snmp.Snmp
import Control.Exception
import ... | chemist/fixmon | src/Check/Snmp.hs | bsd-3-clause | 2,724 | 0 | 15 | 729 | 828 | 455 | 373 | 54 | 3 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE T... | edgarklerks/hforum | src/Data/Derived.hs | bsd-3-clause | 850 | 0 | 6 | 109 | 142 | 91 | 51 | 27 | 0 |
-- Copyright (c) 2012, Christoph Pohl BSD License (see
-- http://www.opensource.org/licenses/BSD-3-Clause)
-------------------------------------------------------------------------------
--
-- Project Euler Problem 2
--
-- Each new term in the Fibonacci sequence is generated by adding the previous
-- two terms. By star... | Psirus/euler | src/euler002.hs | bsd-3-clause | 795 | 0 | 12 | 139 | 145 | 79 | 66 | 8 | 1 |
{-# LANGUAGE OverloadedStrings, DataKinds #-}
module Main where
import Model
import Site
import Web.Spock.Safe
import Network.Wai.Middleware.Static
import Network.Wai.Middleware.RequestLogger
import qualified Data.Text as T
-- ?:
import Database.Persist.Sqlite hiding (get)
import Control.Monad
import Control.Monad... | denoptic/app | src/Main.hs | bsd-3-clause | 5,496 | 0 | 16 | 1,212 | 1,164 | 634 | 530 | 95 | 3 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Distance.R... | facebookincubator/duckling | Duckling/Distance/RO/Rules.hs | bsd-3-clause | 2,613 | 0 | 17 | 524 | 655 | 388 | 267 | 71 | 2 |
-- import the reflex-host library and reflex itself
import Reflex.Host.App
import Reflex
import Control.Concurrent (forkIO)
import Control.Monad (forever)
import Control.Monad.IO.Class (liftIO)
-- The application should be generic in the host monad that is used
app :: MonadAppHost t m => m ()
app = do
(inputEvent, i... | bennofs/reflex-host | example.hs | bsd-3-clause | 506 | 0 | 10 | 83 | 141 | 76 | 65 | 12 | 1 |
module Lib where
import Data.Binary
import qualified Data.ByteString.Lazy as L
import Data.Typeable (Typeable)
import GHC.Packing
wrapToBinary :: (Typeable a) => a -> IO L.ByteString
wrapToBinary a = trySerialize a >>= return . encode
unwrapFromBinary :: (Typeable a) => L.ByteString -> IO a
unwrapFromBinary = dese... | michaxm/packman-exploration | src/Lib.hs | bsd-3-clause | 525 | 0 | 8 | 86 | 177 | 96 | 81 | 13 | 1 |
{-# LANGUAGE BangPatterns, CPP #-}
-- | A CSV parser. The parser defined here is RFC 4180 compliant, with
-- the following extensions:
--
-- * Empty lines are ignored.
--
-- * Non-escaped fields may contain any characters except
-- double-quotes, commas, carriage returns, and newlines.
--
-- * Escaped fields may... | hvr/cassava | src/Data/Csv/Parser.hs | bsd-3-clause | 6,584 | 0 | 20 | 1,792 | 1,413 | 764 | 649 | 120 | 5 |
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE QuasiQuotes #-}
module Ivory.Compile.C.Types where
import Language.C.Quote.GCC
import qualified "language-c-quote" Language.C.Syntax as C
import MonadLib (WriterT,Id,put)
import Data.Monoid
import Control.Applicative
import qual... | Hodapp87/ivory | ivory-backend-c/src/Ivory/Compile/C/Types.hs | bsd-3-clause | 2,058 | 0 | 12 | 349 | 536 | 314 | 222 | 43 | 2 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.EXT.PalettedTexture
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portabil... | haskell-opengl/OpenGLRaw | src/Graphics/GL/EXT/PalettedTexture.hs | bsd-3-clause | 1,005 | 0 | 5 | 134 | 96 | 67 | 29 | 18 | 0 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.EXT.TextureBufferObject
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Port... | haskell-opengl/OpenGLRaw | src/Graphics/GL/EXT/TextureBufferObject.hs | bsd-3-clause | 916 | 0 | 5 | 117 | 77 | 55 | 22 | 13 | 0 |
{-# LANGUAGE OverloadedStrings #-}
-- | Description : @ToJSON@ for Messages
--
-- This module contains the @ToJSON@ instance for @Message@.
module IHaskell.IPython.Message.Writer (ToJSON(..)) where
import Data.Aeson
import Data.Map (Map)
import Data.Text (Text, pack)
import Dat... | FranklinChen/IHaskell | ipython-kernel/src/IHaskell/IPython/Message/Writer.hs | mit | 4,460 | 0 | 13 | 1,268 | 1,184 | 632 | 552 | 95 | 1 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell, QuasiQuotes, TypeFamilies, ViewPatterns, MultiParamTypeClasses #-}
module Main (main, resourcesApp) where
import Network.Wai.Middleware.Routes
import Network.Wai.Handler.Warp
import qualified Data.Text.Lazy as T
import Data.Text.Lazy (Text)
import System.Environment (ge... | philopon/apiary-benchmark | src/wai-routes.hs | mit | 8,531 | 0 | 12 | 1,621 | 2,005 | 1,067 | 938 | 129 | 3 |
{- |
Module : ./Modal/StatAna.hs
Copyright : (c) Christian Maeder, Uni Bremen 2004-2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : luecke@informatik.uni-bremen.de
Stability : provisional
Portability : portable
static analysis of modal logic parts
-}
module Modal.StatAna (basicModalAn... | spechub/Hets | Modal/StatAna.hs | gpl-2.0 | 9,729 | 0 | 26 | 3,215 | 3,000 | 1,450 | 1,550 | 213 | 12 |
{-# LANGUAGE BangPatterns, ScopedTypeVariables #-}
{-
- Qoropa -- Love Your Mail!
- Copyright © 2010 Ali Polatel
- Based in part upon XMonad which is:
- Copyright (c) 2007 Spencer Janssen
- Based in part upon gregorycollins/homepage which is:
- Copyright (C) 2009 Gregory Collins
-
- This file is part of the Qoropa ... | beni55/qoropa | src/Qoropa/Util.hs | gpl-2.0 | 5,548 | 0 | 16 | 1,866 | 1,243 | 653 | 590 | 105 | 2 |
<?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="id-ID">
<title>Port Pemindai | Eksistensi ZAP</title>
<maps>
<homeID>top</homeID>
<map... | veggiespam/zap-extensions | addOns/portscan/src/main/javahelp/org/zaproxy/zap/extension/portscan/resources/help_id_ID/helpset_id_ID.hs | apache-2.0 | 972 | 80 | 66 | 160 | 415 | 210 | 205 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NamedFieldPuns #-}
module GDALDriverSpec (main, spec) where
import GDAL
import GDAL.Internal.GDAL ( createDatasetH )
import GDAL.Internal.HSDriver
--... | meteogrid/bindings-gdal | tests/GDALDriverSpec.hs | bsd-3-clause | 1,599 | 0 | 20 | 358 | 404 | 219 | 185 | 41 | 1 |
{-# Language PatternGuards #-}
module Blub
( blub
, foo
, bar
) where
import Ugah.Foo
import Control.Applicative ( a
, b
)
import Ugah.Blub
f :: Int -> Int
f = (+ 3)
g :: Int -> Int
g =
where
| jystic/hsimport | tests/inputFiles/ModuleTest29.hs | bsd-3-clause | 262 | 0 | 5 | 112 | 71 | 44 | 27 | -1 | -1 |
{-# LANGUAGE OverloadedLists #-}
-- | STG error transitions, in order to provide useful information to the user.
module Stg.Machine.Evaluate.ErrorTransitions (
updatableClosureWithArgs,
returnWithEmptyReturnStack,
functionArgumentNotInScope,
constructorArgumentNotInScope,
primopArgumentNotInScope,
... | quchen/stg | src/Stg/Machine/Evaluate/ErrorTransitions.hs | bsd-3-clause | 5,965 | 0 | 17 | 1,293 | 1,464 | 770 | 694 | 108 | 1 |
module ETA.Util
(indexList,
upperFirst,
scanM,
expectJust,
safeHead,
safeLast)
where
import qualified Data.Char as C
import Data.Text (Text, empty, uncons, cons)
import ETA.Utils.Maybes(expectJust)
indexList :: (Integral b) => [a] -> [(b, a)]
indexList = zip [1..]
upperFirst :: Text -> Text
upperFir... | pparkkin/eta | compiler/ETA/Util.hs | bsd-3-clause | 743 | 0 | 11 | 182 | 372 | 200 | 172 | 27 | 2 |
module Operator00001 where
renderNode (s, a) = text (label a) # bold # font "sans-serif"
| charleso/intellij-haskforce | tests/gold/parser/Operator00001.hs | apache-2.0 | 90 | 0 | 9 | 16 | 38 | 20 | 18 | 2 | 1 |
{-# LANGUAGE CPP #-}
{- |
Module : XMonad.Util.XSelection
Copyright : (C) 2007 Andrea Rossato, Matthew Sackman
License : BSD3
Maintainer : Gwern Branwen <gwern0@gmail.com>
Stability : unstable
Portability : unportable
A module for accessing and manipulating X Window's mouse selection (the buffer us... | MasseR/xmonadcontrib | XMonad/Util/XSelection.hs | bsd-3-clause | 4,474 | 0 | 18 | 1,036 | 634 | 327 | 307 | 41 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.