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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
--
-- Copyright (c) 2012 Citrix Systems, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This progra... | crogers1/manager | xec/Show.hs | gpl-2.0 | 1,869 | 0 | 12 | 327 | 497 | 256 | 241 | 27 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Register
-- Copyright : Isaac Jones 2003-2004
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- This module deals with registering and unregister... | rimmington/cabal | Cabal/Distribution/Simple/Register.hs | bsd-3-clause | 20,437 | 0 | 22 | 5,935 | 3,687 | 1,960 | 1,727 | 341 | 8 |
<?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="da-DK">
<title>All In One Notes Add-On</title>
<maps>
<homeID>top</homeID>
<mapref loca... | kingthorin/zap-extensions | addOns/allinonenotes/src/main/javahelp/org/zaproxy/zap/extension/allinonenotes/resources/help_da_DK/helpset_da_DK.hs | apache-2.0 | 968 | 77 | 67 | 159 | 417 | 211 | 206 | -1 | -1 |
module A2 where
data BTree a
= Empty | T a (BTree a) (BTree a) deriving Show
buildtree :: Ord a => [a] -> BTree a
buildtree [] = Empty
buildtree ((x : xs)) = insert x (buildtree xs)
insert :: Ord a => a -> (BTree a) -> BTree a
insert val Empty = T val Empty Empty
insert val t@(T tval left right)
| val >... | kmate/HaRe | old/testing/unfoldAsPatterns/A2AST.hs | bsd-3-clause | 429 | 0 | 9 | 115 | 225 | 115 | 110 | 13 | 1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
-----------------------------------------------------------------------------
--
-- Stg to C-- code generation: expressions
--
-- (c) The University of Glasgow 2004-2006
--
-----------------------------------------------------------------------------
m... | urbanslug/ghc | compiler/codeGen/StgCmmExpr.hs | bsd-3-clause | 33,142 | 8 | 20 | 8,862 | 4,814 | 2,536 | 2,278 | -1 | -1 |
-- !!! Recursive newtypes
-- Needs -O
-- This one made GHC < 5.00.2 go into an
-- infinite loop in the strictness analysier
module Foo where
newtype V = MkV V
f :: V -> V
f (MkV v) = v
| urbanslug/ghc | testsuite/tests/stranal/should_compile/str002.hs | bsd-3-clause | 191 | 0 | 7 | 48 | 39 | 24 | 15 | 4 | 1 |
import Control.Concurrent
import Control.Monad
import GHC.Conc
main = do
mainTid <- myThreadId
labelThread mainTid "main"
forM_ [0..0] $ \i -> forkIO $ do
subTid <- myThreadId
labelThread subTid $ "sub " ++ show i
forM_ [0..100000000] $ \j -> putStrLn $ "sub " ++ show i ++ ": " ++ show j
yield
se... | urbanslug/ghc | testsuite/tests/rts/T8209.hs | bsd-3-clause | 339 | 0 | 17 | 78 | 135 | 63 | 72 | 12 | 1 |
import Control.Applicative
import Control.Arrow
import Control.Monad
import qualified Data.List as List
import Data.Maybe
import Data.Set (Set)
import qualified Data.Set as Set
{-| One dimension by which the board can be covered -}
data... | jnonce/queens | queens.hs | mit | 4,379 | 6 | 12 | 1,144 | 1,088 | 570 | 518 | 74 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Gather.Utils where
--import Data.ByteString as BS
import Data.Char as C
import Data.Text as T
import qualified Network.HTTP as NH
import System.Time
import Text.HTML.TagSoup
openURL :: String -> IO String
openURL x = do
re... | qpfiffer/gather | src/Gather/Utils.hs | mit | 842 | 0 | 11 | 219 | 241 | 128 | 113 | 22 | 2 |
{-# LANGUAGE MonadComprehensions, RecordWildCards #-}
{-# OPTIONS_GHC -Wall #-}
module HW07 where
import Prelude hiding (mapM)
import HW07.Cards
import Control.Monad hiding (mapM, liftM)
import Control.Monad.Random
import Data.Functor
import Data.Function (on)
import Data.Monoid
import Data.Vector (Vector, cons, (!),... | mrordinaire/upenn-haskell | src/HW07.hs | mit | 5,731 | 0 | 24 | 1,639 | 2,197 | 1,128 | 1,069 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.Binding
-- License : MIT (see the LICENSE file)
-- Maintainer : Felix Klein (klein@react.uni-saarland.de)
--
-- A data type to store an identifier bound to an expression.
--
---------------------------------... | reactive-systems/syfco | src/lib/Data/Binding.hs | mit | 1,418 | 0 | 10 | 227 | 116 | 80 | 36 | 14 | 0 |
-- Type arithmetic
-- ref: https://wiki.haskell.org/Type_arithmetic
-- oleg: http://article.gmane.org/gmane.comp.lang.haskell.general/13223
-- ref: https://wiki.haskell.org/Typeful_symbolic_differentiation
-- oleg: https://mail.haskell.org/pipermail/haskell/2004-November/014939.html
-- Type arithmetic (or type-level c... | Airtnp/Freshman_Simple_Haskell_Lib | Idioms/Type-arithmetic.hs | mit | 4,063 | 0 | 11 | 898 | 1,290 | 679 | 611 | -1 | -1 |
module Flight where
import Text.Regex.PCRE
import qualified Data.Map.Strict as Map
import Control.Monad.Trans.RWS.Strict
import Control.Monad (replicateM_, forM_)
import Data.List (maximumBy)
import Data.Ord (comparing)
type Reindeer = String
data Constraint = Constraint
{ name :: Reindeer
, km... | corajr/adventofcode2015 | 14/Flight.hs | mit | 2,475 | 0 | 17 | 602 | 894 | 468 | 426 | 60 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGRenderingIntent
(pattern RENDERING_INTENT_UNKNOWN, pattern RENDERING_INTENT_AUTO,
pattern RENDERING_INTENT_PERCEPTUAL,
pattern RENDERING_INTENT_RELATIVE_COLORIMETRIC,
pattern REND... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/SVGRenderingIntent.hs | mit | 1,486 | 0 | 6 | 170 | 361 | 231 | 130 | 28 | 0 |
{-@ LIQUID "--no-termination" @-}
{-@ measure len @-}
len :: BTree a -> Int
len m =
case m of
Nil -> 1
Branch t1 _ t2 -> 1 + len t1 + len t2
data BTree a = Nil | Branch (BTree a) a (BTree a) deriving Eq
mapBTree :: (a -> a) -> BTree a -> BTree a
mapBTree f Nil = Nil
mapBTree f (Branch b1 v b2) = Branch (... | santolucito/ives | tests/btree.hs | mit | 452 | 0 | 10 | 122 | 225 | 115 | 110 | 13 | 2 |
-- No explicit exports.
-- Typeclass instances are always exported?
module Ternary.List.ExactNum () where
import Ternary.Core.Digit (T2(..), negateT2)
import Ternary.List.Exact
import Ternary.Core.Multiplication (fineStructure)
negateDigits :: [T2] -> [T2]
negateDigits = map negateT2
absDigits :: [T2] -> [T2]
absD... | jeroennoels/exact-real | src/Ternary/List/ExactNum.hs | mit | 687 | 0 | 8 | 110 | 220 | 126 | 94 | 19 | 1 |
{-# LANGUAGE FlexibleInstances -- needed for instance
-- Replacement [Either Int String]
-- else
{- Illegal instance declaration for `Replacement [Either Int String]'
(All instance types must be of the form (T a1 ... an)
where a1 ... | sixears/fluffy | src/Fluffy/Text/PCRE.hs | mit | 4,062 | 0 | 17 | 1,261 | 632 | 332 | 300 | 45 | 3 |
module System.AtomicWrite.Writer.LazyByteStringSpec (spec) where
import Test.Hspec (it, describe, shouldBe, Spec)
import System.AtomicWrite.Writer.LazyByteString (atomicWriteFile, atomicWriteFileWithMode)
import System.IO.Temp (withSystemTempDirectory)
import System.FilePath.Posix (joinPath)
import System.PosixCompa... | stackbuilders/atomic-write | spec/System/AtomicWrite/Writer/LazyByteStringSpec.hs | mit | 4,920 | 0 | 18 | 1,240 | 884 | 433 | 451 | 74 | 1 |
-- Copyright © 2013 Julian Blake Kongslie <jblake@jblake.org>
-- Licensed under the MIT license.
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -Wall -Werror -fno-warn-type-defaults #-}
-- |Here we define the actual opcodes allowed in our assembly language.
-- There's no particularly compact way to do this, so w... | jblake/gbasm | src/Language/GBAsm/Opcodes.hs | mit | 27,879 | 0 | 10 | 14,786 | 11,230 | 5,704 | 5,526 | 515 | 1 |
import Data.Array
import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.IO as IO
import Text.Parsec
import Text.Parsec.Text
data Instruction
= Half Register
| Triple Register
| Increment Register
| Jump Int
| JumpIfEven Register Int
| JumpIfOne Register Int
deriving (Eq, S... | SamirTalwar/advent-of-code | 2015/AOC_23_2.hs | mit | 2,825 | 0 | 16 | 653 | 1,011 | 523 | 488 | -1 | -1 |
import Control.Concurrent.MVar
import qualified System.FilePath.Glob as Glob
import qualified Data.Map.Strict as Map
import Data.Either
import System.Directory
import System.Environment
import System.IO
import System.IO.Error
import System.INotify
data FileState = FS Integer
data State = State String (Map.Map Strin... | cwgreene/tailpattern | src/Main.hs | mit | 2,895 | 0 | 17 | 571 | 856 | 422 | 434 | 71 | 2 |
module Main where
import Criterion.Main
-- infixl 9 !?
-- _ !? n | n<0 = Nothing
-- [] !?_ = Nothing
-- (x:_) !? 0 = Just x
-- (_:xs) !? n = xs !? (n-1)
infixl 9 !?
{-# INLINABLE (!?) #-}
(!?) :: [a] -> Int -> Maybe a
xs !? n
| n < 0 = Nothing
| otherwise =
foldr
(\x r k ->
... | NickAger/LearningHaskell | HaskellProgrammingFromFirstPrinciples/Chapter28.hsproj/BenchIndex.hs | mit | 602 | 0 | 14 | 208 | 201 | 108 | 93 | 21 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Typechecker where
import Prelude hiding (lookup)
import Syntax
import Data.Word(Word64)
import Data.HashMap.Strict(HashMap, fromList, insert, foldrWithKey, lookup)
import Data.Monoid(getAp)
import Control.Monad.Trans.Reader(ReaderT(ReaderT), runReaderT, asks, local)
import Con... | kindl/Hypatia | src/Typechecker.hs | mit | 13,186 | 0 | 17 | 2,845 | 4,089 | 1,995 | 2,094 | 255 | 3 |
-- Copyright (C) 2002-2004 David Roundy
--
-- 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, or (at your option)
-- any later version.
--
-- This program is distributed ... | DavidAlphaFox/darcs | src/Darcs/UI/Commands/Help.hs | gpl-2.0 | 17,275 | 0 | 19 | 4,548 | 3,419 | 1,907 | 1,512 | 324 | 11 |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings, Rank2Types, RecordWildCards, NamedFieldPuns, DeriveDataTypeable, ScopedTypeVariables, LambdaCase, BangPatterns #-}
module Main
( main
) where
import Control.Concurrent.MVar
import qualified Control.Exception as E
import qualified Control.Lens as Lens... | da-x/lamdu | Lamdu/Main.hs | gpl-3.0 | 17,332 | 0 | 22 | 5,082 | 4,258 | 2,204 | 2,054 | -1 | -1 |
{-# OPTIONS -Wall #-}
{-# LANGUAGE OverloadedStrings #-}
module Graphics.UI.Bottle.Widgets.EventMapDoc(make, addHelp, makeToggledHelpAdder) where
import Data.IORef (newIORef, readIORef, modifyIORef)
import Data.List.Utils (groupOn, sortOn)
import Data.Monoid (mappend)
import Graphics.UI.Bottle.EventMap (EventMap)
impo... | nimia/bottle | bottlelib/Graphics/UI/Bottle/Widgets/EventMapDoc.hs | gpl-3.0 | 2,939 | 0 | 17 | 546 | 873 | 481 | 392 | 62 | 2 |
-- Copyright 2012 Justus Sagemüller.
--
-- This file is part of the Cqtx library.
-- This library 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 License, or
-- (at your... | leftaroundabout/cqtx | HsMacro/CodeGen/CXX/Cqtx/PhqFn.hs | gpl-3.0 | 39,637 | 1 | 44 | 13,287 | 9,719 | 4,960 | 4,759 | -1 | -1 |
module TestImport
( module TestImport
, module X
) where
import Application (makeFoundation, makeLogWare)
#if MIN_VERSION_classy_prelude(1, 0, 0)
import ClassyPrelude as X hiding (delete, deleteBy, Handler)
#else
import ClassyPrelude as X hiding (delete, deleteBy)
#endif
... | uros-stegic/canx | server/canx-server/test/TestImport.hs | gpl-3.0 | 2,583 | 0 | 12 | 629 | 599 | 324 | 275 | -1 | -1 |
{- This file is part of PhoneDirectory.
Copyright (C) 2009 Michael Steele
PhoneDirectory 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 License, or
(at your option) any la... | mikesteele81/Phone-Directory | src/Name.hs | gpl-3.0 | 3,136 | 0 | 14 | 720 | 826 | 444 | 382 | 69 | 1 |
-- TabCode - A parser for the Tabcode lute tablature language
--
-- Copyright (C) 2015-2017 Richard Lewis
-- Author: Richard Lewis <richard@rjlewis.me.uk>
-- This file is part of TabCode
-- TabCode is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as publi... | TransformingMusicology/tabcode-haskell | src/TabCode/Serialiser/MEIXML/Elements.hs | gpl-3.0 | 19,571 | 0 | 14 | 3,947 | 7,409 | 3,760 | 3,649 | 456 | 13 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/PublicAdvertisedPrefixes/Delete.hs | mpl-2.0 | 4,890 | 0 | 16 | 1,017 | 477 | 287 | 190 | 79 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/VerifyCustomToken.hs | mpl-2.0 | 3,452 | 0 | 13 | 701 | 308 | 189 | 119 | 54 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Data.RangeSet.Parse
( showRangeSet
, parseRangeSet
) where
import Control.Applicative (optional)
import Data.Maybe (fromMaybe)
import qualified Data.RangeSet.List as R
import qualified Text.ParserCombinators.ReadP as RP
import qualified Text.ParserCombinators.Re... | databrary/databrary | src/Data/RangeSet/Parse.hs | agpl-3.0 | 1,651 | 0 | 13 | 367 | 661 | 351 | 310 | 41 | 1 |
module Hodor.Reports where
import Control.Arrow (first)
import Data.Function (on)
import Data.List (groupBy, intercalate, sort)
import Data.Time (Day)
import Hodor (
Project,
TodoItem,
dateCompleted,
unparse,
)
-- True when item has been closed on 'day' or after.
closedSince :: Day -> TodoItem -> Bool
cl... | jml/hodor | Hodor/Reports.hs | apache-2.0 | 1,300 | 0 | 12 | 276 | 470 | 261 | 209 | 27 | 2 |
{- |
Module : Environment
Description : REPL environment
Copyright : (c) 2014—2015 The F2J Project Developers (given in AUTHORS.txt)
License : BSD3
Maintainer : Boya Peng <u3502350@connect.hku.hk>
Stability : stable
Portability : portable
-}
module Environment where
import Data.List.Split
impor... | bixuanzju/fcore | repl/Environment.hs | bsd-2-clause | 1,708 | 0 | 12 | 507 | 493 | 273 | 220 | 36 | 2 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QHostAddress.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:31
Warning : this file is machine generated - do ... | keera-studios/hsQt | Qtc/Network/QHostAddress.hs | bsd-2-clause | 6,241 | 0 | 12 | 983 | 1,776 | 922 | 854 | -1 | -1 |
module ElmFormat.World where
class Monad m => World m where
readFile :: FilePath -> m String
writeFile :: FilePath -> String -> m ()
putStrLn :: String -> m ()
getProgName :: m String
-- instance World IO where
| nukisman/elm-format-short | src/ElmFormat/World.hs | bsd-3-clause | 229 | 0 | 10 | 57 | 75 | 38 | 37 | 6 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Ppt.Frame.Parser where -- (parseFile, compileFrame) where
import Control.Exception (handle)
import Control.Lens hiding (element, noneOf)
import Control.Monad
import Data.Aeson (decode, encode)
import Data... | lally/libmet | src/Ppt/Frame/Parser.hs | bsd-3-clause | 12,173 | 0 | 17 | 4,280 | 3,497 | 1,795 | 1,702 | 253 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Config
-- Copyright : (c) David Himmelstrup 2005
-- License : BSD-like
--
-- Maintainer : lemmih@gmail.com
-- Stability : provisional
-- Portability : portable
--
-- Utilities for handl... | yihuang/cabal-install | Distribution/Client/Config.hs | bsd-3-clause | 19,554 | 0 | 20 | 4,410 | 4,384 | 2,363 | 2,021 | 386 | 4 |
module Process.CssBox where
import Data.Char
import Data.DataTreeCSS
import qualified Data.Map as Map
import Data.Maybe
import Graphics.UI.WX hiding (get)
import Graphics.UI.WXCore
import Data.CommonTypes
import Data.Propert... | carliros/Simple-San-Simon-Functional-Web-Browser | src/Process/CssBox.hs | bsd-3-clause | 13,074 | 0 | 21 | 4,624 | 3,532 | 1,872 | 1,660 | 187 | 11 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Command.Info
( CommandInfo(..)
, name
, aliases
, permissions
, help
, dynCmdInfo
)
where
import Control.Lens
import Data.Aeson.TH
import Data.Text (Text)
import ... | frublox/aichanbot | src/Command/Info.hs | bsd-3-clause | 901 | 0 | 10 | 269 | 202 | 121 | 81 | 28 | 1 |
{-# LANGUAGE OverloadedStrings, NamedFieldPuns,
ScopedTypeVariables, CPP, RecordWildCards #-}
{-# OPTIONS_GHC -fwarn-unused-imports #-}
-- This module implements the commandline driver for the paragrep program.
{-
[2011.02.21]
Observing Mac/Linux differences. First with respect to the
mat... | rrnewton/paragrep | Paragrep/Executable.hs | bsd-3-clause | 6,893 | 79 | 18 | 1,542 | 1,226 | 675 | 551 | 113 | 12 |
module Main where
import Graphomania.Main
main :: IO ()
main = defaultMain
| schernichkin/BSPM | graphomania/app/Main.hs | bsd-3-clause | 87 | 0 | 6 | 24 | 24 | 14 | 10 | 4 | 1 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.ARB.TextureEnvDot3
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portabili... | haskell-opengl/OpenGLRaw | src/Graphics/GL/ARB/TextureEnvDot3.hs | bsd-3-clause | 679 | 0 | 5 | 95 | 52 | 39 | 13 | 8 | 0 |
module Marvin.Adapter.Telegram.Internal.Common where
import Control.Applicative
import Control.Concurrent.Async.Lifted
import Control.Concurrent.Chan.Lifted
import Control.Exception.Lifted
import Control.Monad
import Control.Monad.IO.Class
import Co... | JustusAdam/marvin | src/Marvin/Adapter/Telegram/Internal/Common.hs | bsd-3-clause | 16,862 | 0 | 29 | 4,837 | 4,352 | 2,248 | 2,104 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables, TypeOperators, TypeFamilies, FlexibleContexts, UndecidableInstances #-}
module Foreign.Storable.Generic (
-- * Generic Storable class
GStorable(..),
-- * Default functions
sizeOfDefault,
alignmentDefault,
peekDefault,
peekByteOffDefault,
peekElemOffDefault,
pokeDe... | tanakh/generic-storable | Foreign/Storable/Generic.hs | bsd-3-clause | 4,670 | 0 | 14 | 1,016 | 1,770 | 914 | 856 | 83 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Network.AMI
(Parameters,
ActionType, EventType,
ActionID, ResponseType,
EventHandler, ResponseHandler,
Packet (..),
ConnectInfo (..),
open, openMD5,
close,
withAMI, withAMI_MD5,
runAMI, runAMI',
sendAction,
handleEvent,
wait
) where
impo... | trskop/AMI | Network/AMI.hs | bsd-3-clause | 7,923 | 0 | 22 | 1,992 | 2,870 | 1,474 | 1,396 | 199 | 10 |
-- | Quote ASCII arguments to be passed through the Unix shell.
--
-- For safety, these functions drop all non-ASCII characters.
module System.Posix.Escape
( escape
, escapeMany
) where
import qualified System.Posix.Escape.Unicode as U
import Data.Char
-- | Wrap a @String@ so it can be used within a Unix... | kmcallister/posix-escape | System/Posix/Escape.hs | bsd-3-clause | 700 | 0 | 8 | 131 | 92 | 57 | 35 | 9 | 1 |
-- Mini Benchmark
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ScopedTypeVariables, CPP #-}
module Main where
import Control.Concurrent
import Control.DeepSeq
import Criterion.IO
import Criterion.Main
import Criterion.Types
import qualif... | tittoassini/flat | benchmarks/Mini.hs | bsd-3-clause | 3,009 | 0 | 18 | 753 | 609 | 337 | 272 | 56 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, PatternGuards, TypeSynonymInstances #-}
-- --------------------------------------------------------------------------
-- |
-- Module : XMonad.Operations
-- Copyright : (c) Spencer Janssen 2007
-- License : BSD3-s... | markus1189/xmonad-710 | XMonad/Operations.hs | bsd-3-clause | 24,275 | 0 | 23 | 6,293 | 7,196 | 3,663 | 3,533 | 363 | 4 |
{-# LANGUAGE DeriveGeneric #-}
module Saturnin.Server.Config
( ConfigServer (..)
, readConfig
, MachineDescription
, Hostname
, YBServerPersistentState (..)
, readPState
, writePState
, JobID (..)
, bumpJobID
)
where
import Data.Default
import Data.HashMap.Strict
import Data.Yam... | yaccz/saturnin | library/Saturnin/Server/Config.hs | bsd-3-clause | 2,191 | 1 | 13 | 506 | 560 | 303 | 257 | 66 | 2 |
module Write.Quirks where
import Data.HashMap.Strict as M
import Write.Utils
-- | Entities which must be put in hs-boot files to break dependency cycles
--
-- Only handles are allowed in here, this isn't checked
cycleBreakers :: HashMap ModuleName [String]
cycleBreakers = M.fromList [ (ModuleName "Graphics.Vulkan.Dev... | oldmanmike/vulkan | generate/src/Write/Quirks.hs | bsd-3-clause | 818 | 0 | 9 | 300 | 121 | 71 | 50 | 10 | 1 |
{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
module Main where
import Data.Aeson
import Data.Aeson.Encode.Pretty (encodePretty)
import qualified Data.ByteString.Lazy.Char8 as BL
import System.Environment (getArgs)
import Case
main :: IO ()
main = do
args <- getArgs
xs <- getContents
if length arg... | bergmark/http2 | test-frame/frame-encode.hs | bsd-3-clause | 561 | 0 | 9 | 119 | 163 | 90 | 73 | 18 | 2 |
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE TypeFamilies #-}
-- | Use @ByteArray@s containing one element for mutable references.
--
-- This is similar to @URef@s, but avoids the overhead of storing the length of
-- the @Vector@, which we statically know will always be 1. This allows it to
-- be a bit faster.
--
-- Moti... | bitemyapp/mutable-containers | Data/Mutable/PRef.hs | mit | 1,817 | 0 | 11 | 464 | 381 | 213 | 168 | 39 | 1 |
module Text.XkbCommon.Types
( Direction, keyUp, keyDown,
CLogLevel, CKeycode(..), CLayoutIndex(..), CModIndex(..), CLevelIndex(..),
CLedIndex(..), Keysym(..), StateComponent, CModMask(..),
stateModDepressed, stateModLatched, stateModLocked, stateModEffective,
stateLayoutDepressed, stateLayoutLa... | tulcod/haskell-xkbcommon | Text/XkbCommon/Types.hs | mit | 432 | 0 | 5 | 62 | 107 | 74 | 33 | 8 | 0 |
{-|
Pier Configuration
-}
module Urbit.King.Config where
import Urbit.Prelude
{-|
All the configuration data revolving around a ship and the current
execution options.
-}
data PierConfig = PierConfig
{ _pcPierPath :: FilePath
, _pcDryRun :: Bool
} deriving (Show)
makeLenses ''PierConfig
cl... | jfranklin9000/urbit | pkg/hs/urbit-king/lib/Urbit/King/Config.hs | mit | 1,043 | 0 | 9 | 204 | 235 | 127 | 108 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module InnerEar.Exercises.ThresholdOfSilence (thresholdOfSilenceExercise) where
import Reflex
import Reflex.Dom
import Data.Map
import Text.JSON
import Text.JSON.Generic
import Sound.MusicW
import InnerEar.Exercises.MultipleChoice
import InnerEar.Types.ExerciseId
import InnerEar... | luisnavarrodelangel/InnerEar | src/InnerEar/Exercises/ThresholdOfSilence.hs | gpl-3.0 | 3,826 | 0 | 15 | 588 | 1,134 | 606 | 528 | 72 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ml/gen/Network/AWS/MachineLearning/DeleteEvaluation.hs | mpl-2.0 | 4,056 | 0 | 9 | 811 | 464 | 284 | 180 | 56 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-}
-- |
-- Module : Statistics.Distribution.Exponential
-- Copyright : (c) 2009 Bryan O'Sullivan
-- License : BSD3
--
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portab... | bos/statistics | Statistics/Distribution/Exponential.hs | bsd-2-clause | 4,798 | 3 | 12 | 1,125 | 1,200 | 629 | 571 | 98 | 1 |
module Reddit.Types.Listing where
import Reddit.Parser
import Control.Applicative
import Data.Aeson
import Data.Traversable
import Data.Monoid
import Network.API.Builder.Query
import Prelude
data ListingType = Hot
| New
| Rising
| Controversial
| To... | FranklinChen/reddit | src/Reddit/Types/Listing.hs | bsd-2-clause | 1,414 | 0 | 13 | 421 | 520 | 273 | 247 | 41 | 0 |
{-# LANGUAGE CPP #-}
-- |
-- Copyright : (c) 2011 Simon Meier
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
-- Stability : experimental
-- Portability : GHC
--
-- Hexadecimal encoding of nibbles (4-bit) and octets (8-bit) as ASCII
-- characters.
--
-- The current imp... | meiersi/bytestring-builder | Data/ByteString/Lazy/Builder/BasicEncoding/Internal/Base16.hs | bsd-3-clause | 3,680 | 0 | 12 | 641 | 467 | 272 | 195 | 33 | 1 |
{-# LANGUAGE CPP, MagicHash #-}
-- | Dynamically lookup up values from modules and loading them.
module DynamicLoading (
#if defined(GHCI)
-- * Loading plugins
loadPlugins,
loadFrontendPlugin,
-- * Force loading information
forceLoadModuleInterfaces,
forceLoadNameModule... | ezyang/ghc | compiler/main/DynamicLoading.hs | bsd-3-clause | 11,481 | 1 | 24 | 3,118 | 1,991 | 1,036 | 955 | 12 | 1 |
-- | Same as 'txt', but stupidly wraps long lines
module Brick.Widgets.WrappedText
( wrappedText
) where
import Brick
import Control.Lens
import Data.Text (Text)
import qualified Data.Text as T
wrappedText :: Text -> Widget n
wrappedText theText = Widget Fixed Fixed $ do
... | rootzlevel/device-manager | src/Brick/Widgets/WrappedText.hs | bsd-3-clause | 539 | 0 | 13 | 134 | 158 | 83 | 75 | 14 | 1 |
{-# LANGUAGE CPP, NondecreasingIndentation, ScopedTypeVariables #-}
-- -----------------------------------------------------------------------------
--
-- (c) The University of Glasgow, 2005-2012
--
-- The GHC API
--
-- -----------------------------------------------------------------------------
module GHC (
... | vTurbine/ghc | compiler/main/GHC.hs | bsd-3-clause | 56,666 | 4 | 28 | 15,356 | 10,125 | 5,455 | 4,670 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
-- |
-- Module : Data.ByteString.Lazy.Search.DFA
-- Copyright : Daniel Fischer
-- Licence : BSD3
-- Maintainer : Daniel Fischer <daniel.is.fischer@googlemail.com>
-- Stability : Provisional
-- Portability : non-portable (BangPatterns)
--
-- Fast search of la... | seereason/stringsearch | Data/ByteString/Lazy/Search/DFA.hs | bsd-3-clause | 18,013 | 0 | 23 | 5,963 | 3,539 | 1,873 | 1,666 | 236 | 11 |
import System.Process
import Data.Char
import Data.List
import Data.Maybe
main = getDepLibs "hets"
getDepLibs :: String -> IO ()
getDepLibs binOrLib = do
str <- readProcess "otool" ["-L", binOrLib] ""
let ls = map (takeWhile $ not . isSpace)
$ mapMaybe (stripPrefix lib . dropWhile isSpace) $ line... | keithodulaigh/Hets | utils/macports/libs.hs | gpl-2.0 | 696 | 0 | 15 | 148 | 269 | 131 | 138 | 21 | 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="sk-SK">
<title>JSON View</title>
<maps>
<homeID>jsonview</homeID>
<mapref location="map... | thc202/zap-extensions | addOns/jsonview/src/main/javahelp/help_sk_SK/helpset_sk_SK.hs | apache-2.0 | 959 | 82 | 52 | 156 | 390 | 206 | 184 | -1 | -1 |
module Main where
import MainIO
import System
main = do
[f1,f2] <- getArgs
mainIO f1 f2
| forste/haReFork | StrategyLib-4.0-beta/examples/joos-rule02/testsuite/Main.hs | bsd-3-clause | 109 | 0 | 8 | 37 | 36 | 20 | 16 | 6 | 1 |
module BSimple where
-- Test for refactor of if to case
foo x = if (odd x) then "Odd" else "Even"
| RefactoringTools/HaRe | test/testdata/Case/BSimple.hs | bsd-3-clause | 100 | 0 | 7 | 23 | 27 | 16 | 11 | 2 | 2 |
{-# LANGUAGE OverloadedStrings, CPP #-}
-- | Basic bindings to HTML5 WebStorage.
module Haste.LocalStorage (setItem, getItem, removeItem) where
import Haste
import Haste.Foreign
import Haste.Serialize
import Haste.JSON
#if __GLASGOW_HASKELL__ < 710
import Control.Applicative
#endif
-- | Locally store a serializable va... | beni55/haste-compiler | libraries/haste-lib/src/Haste/LocalStorage.hs | bsd-3-clause | 1,066 | 0 | 12 | 179 | 238 | 126 | 112 | 18 | 1 |
module Foo () where
gloop = poop True
{-@ poop :: z:a -> {v: Maybe a | fromJust(v) = z} @-}
poop z = Just z
| mightymoose/liquidhaskell | tests/pos/maybe00.hs | bsd-3-clause | 112 | 0 | 5 | 30 | 27 | 15 | 12 | 3 | 1 |
{-# LANGUAGE FlexibleContexts, OverloadedStrings, TypeFamilies, Rank2Types, PatternGuards #-}
module Lamdu.Sugar.Convert
( convertDefI
) where
import Control.Applicative (Applicative(..), (<$>), (<$))
import Control.Lens (LensLike, Lens')
import Control.Lens.Operators
import Control.Monad (guard, void)
import Cont... | aleksj/lamdu | Lamdu/Sugar/Convert.hs | gpl-3.0 | 35,949 | 0 | 22 | 7,934 | 10,423 | 5,320 | 5,103 | -1 | -1 |
-- | Extra Maybe utilities.
module Data.Maybe.Extra where
import Control.Applicative
import Control.Monad
import Data.Traversable hiding (mapM)
import Data.Maybe
import Prelude -- Silence redundant import warnings
-- | Applicative 'mapMaybe'.
mapMaybeA :: Applicative f => (a -> f (Maybe b)) -> [a] -> f [b]
mapMaybeA... | AndreasPK/stack | src/Data/Maybe/Extra.hs | bsd-3-clause | 743 | 0 | 12 | 135 | 274 | 145 | 129 | 14 | 1 |
module ListExtras where
foldFilter :: (a -> b -> (a, Bool)) -> a -> [b] -> [b] -> (a, [b])
foldFilter _ acc [] lacc = (acc, lacc)
foldFilter f acc (x:xs) lacc =
let (acc', filterOut) = f acc x
lacc' = if filterOut then lacc else lacc ++ [x]
in foldFilter f acc' xs lacc'
| fredmorcos/attic | projects/pet/archive/pet_haskell_20131209/ListExtras.hs | isc | 286 | 0 | 11 | 72 | 152 | 84 | 68 | 7 | 2 |
{-# LANGUAGE FlexibleContexts #-}
module Futhark.Internalise.Lambdas
( InternaliseLambda
, internaliseMapLambda
, internaliseFoldLambda
, internaliseRedomapInnerLambda
, internaliseStreamLambda
, internalisePartitionLambdas
)
where
import Control.Applicative
import Control.Monad
import Data.List
import... | ihc/futhark | src/Futhark/Internalise/Lambdas.hs | isc | 10,022 | 0 | 22 | 2,790 | 2,556 | 1,286 | 1,270 | 177 | 3 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE RecordWildCards #-}
module Eventful.ProcessManager
( ProcessManager (..)
, ProcessManagerCommand (..)
, applyProcessManagerCommandsAndEvents
) where
import Control.Monad (forM_, void)
import Eventful.CommandHandler
import Eventful.Projection
import Even... | jdreaver/eventful | eventful-core/src/Eventful/ProcessManager.hs | mit | 2,530 | 0 | 12 | 368 | 415 | 228 | 187 | 37 | 1 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.SQLTransactionCallback
(newSQLTransactionCallback, newSQLTransactionCallbackSync,
newSQLTransactionCallba... | ghcjs/jsaddle-dom | src/JSDOM/Generated/SQLTransactionCallback.hs | mit | 2,740 | 0 | 13 | 605 | 561 | 335 | 226 | 49 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
module Game.GBA.RegisterSet
( Register
, RegisterSet(..)
, RegisterID
, register'
, makeRegisterSet
-- * Special registers
, linkRegis... | jhance/gba-hs | src/Game/GBA/RegisterSet.hs | mit | 7,557 | 0 | 37 | 1,612 | 1,809 | 1,027 | 782 | 157 | 1 |
module Graphics.D3D11Binding.Interface.D3D11SamplerState where
import Graphics.D3D11Binding.Interface.Unknown
data ID3D11SamplerState = ID3D11SamplerState
instance UnknownInterface ID3D11SamplerState | jwvg0425/d3d11binding | src/Graphics/D3D11Binding/Interface/D3D11SamplerState.hs | mit | 202 | 0 | 5 | 14 | 29 | 18 | 11 | 4 | 0 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Control.Monad.Trans.Pool (WithResourceT, WithResource, withResource, tryWithResource, runPooled, runDedicated) where
import Control.Arrow (Kleisli(..))
import Control.Monad.Trans.... | srijs/haskell-resource-pool-monad | src/Control/Monad/Trans/Pool.hs | mit | 2,094 | 0 | 10 | 343 | 757 | 407 | 350 | 35 | 1 |
module Shexkell.Data.Common where
import Data.Char (toLower)
data SemAct = SemAct IRI (Maybe String)
deriving (Show, Eq)
data ObjectValue =
IRIValue IRI
| StringValue String
| DatatypeString String IRI
| LangString String String
| NumericValue NumericLiteral
deriving (Show, Eq)
data NumericLiteral ... | weso/shexkell | src/Shexkell/Data/Common.hs | mit | 2,064 | 0 | 8 | 403 | 863 | 444 | 419 | 48 | 1 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
module L.Interpreter.Runtime where
import Control.Applicative
import Control.Monad.Error.Class
import Data.Bits
import Data.Foldable hiding (concat)
import Data.Int
import L.Interpreter.Ou... | joshcough/L5-Haskell | src/L/Interpreter/Runtime.hs | mit | 3,051 | 0 | 11 | 748 | 1,308 | 659 | 649 | 64 | 1 |
module Routing
( API
, api
, server
) where
import qualified AccessCode.Controller as AccessCode
import App (AppT)
import Data.Text (Text)
import qualified Home.Controller as Home
import Servant
import Servant.HTML.Blaze (HTML)
import Text.Blaze.Html5 (Html)
type API = MarketingAPI
type MarketingAPI = Home
... | gust/feature-creature | auth-service/app/Routing.hs | mit | 560 | 0 | 8 | 112 | 173 | 103 | 70 | -1 | -1 |
{-# htermination (*) :: Float -> Float -> Float #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_STAR_3.hs | mit | 52 | 0 | 2 | 10 | 3 | 2 | 1 | 1 | 0 |
module CheapestInsertion (algCheapestInsertion) where
import TSPLib
import Insertion
import Data.List hiding (insert)
import Data.Function
algCheapestInsertion :: TSPAlgorithm
algCheapestInsertion = insertionAlgorithm select
select :: Path -> [Node] -> Node
select subtour restNs = selectedNode
where selectedNode... | shouya/thinking-dumps | tsp/CheapestInsertion.hs | mit | 591 | 0 | 10 | 116 | 188 | 102 | 86 | 15 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Query
-- Copyright : (c) 2014 Stefan Bühler
-- License : MIT-style (see the file COPYING)
--
-- Maintainer : stbuehler@web.de
-- Stability : experimental
-- Por... | stbuehler/haskell-mail-policy | src/Control/Query.hs | mit | 2,376 | 7 | 14 | 441 | 500 | 266 | 234 | 36 | 1 |
module Jaml.Parser.JavaScript.Line
( silentJS
, noisyJS
) where
import Text.ParserCombinators.Parsec
import Control.Monad (liftM)
import Jaml.Types
import Jaml.Parser.Util (tillEol, optSpaces)
silentJS :: Parser Node
silentJS =
do char '-' >> optSpaces
liftM SilentJS tillEol -- don't use 'between' (which... | marklar/jaml | Jaml/Parser/JavaScript/Line.hs | mit | 423 | 0 | 8 | 80 | 114 | 62 | 52 | 15 | 1 |
module Behaviors.CountingBrowser where
import Control.Concurrent.STM (TVar, atomically, modifyTVar')
import Data.Text (Text)
import Data.Time (getCurrentTime, diffUTCTime)
import Simulation.Node.Endpoint.AppCounter
import Simulation.Node.Endpoint.Behavior
import Simulation.Node.Endpoint.Behavior.Browser (browsePage)
i... | kosmoskatten/programmable-endpoint-demo | src/Behaviors/CountingBrowser.hs | mit | 1,000 | 0 | 10 | 173 | 300 | 157 | 143 | 24 | 1 |
module QuickTest (module QuickTest) where
import Test.QuickCheck
import Test.QuickCheck.Monadic
import HspInterpreter
import Phonemizer
import Soundgluer
qtest :: IO ()
qtest = do
putStrLn "Checking phonemizer"
quickCheck prop_phonemizer
putStrLn "Checking matchLangRule"
quickCheck prop_matchLangRule... | mprzewie/haspell | test/QuickTest.hs | mit | 2,067 | 0 | 12 | 426 | 569 | 282 | 287 | 53 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-devicetemplate.html
module Stratosphere.ResourceProperties.IoT1ClickProjectDeviceTemplate w... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/IoT1ClickProjectDeviceTemplate.hs | mit | 2,176 | 0 | 12 | 203 | 252 | 145 | 107 | 27 | 1 |
module Cryptography.MACs.Macro where
import Types
import Functions.Application.Macro
-- * MAC
-- | Tag space
tsp_ :: Note
tsp_ = mathcal "T"
-- | Concrete MAC function
mfn_ :: Note
mfn_ = "f"
-- | Computation of tag of message and key
mfn :: Note -> Note -> Note
mfn = fn2 mfn_
| NorfairKing/the-notes | src/Cryptography/MACs/Macro.hs | gpl-2.0 | 304 | 0 | 6 | 78 | 64 | 39 | 25 | 9 | 1 |
{-# LANGUAGE
RecordWildCards
, FlexibleInstances
, FlexibleContexts
, TypeFamilies
#-}
module Hammer.VoxBox.Render
( getExtendedVoxBox
, getVoxBoxCornersPoints
, RenderVox(..)
) where
import qualified Data.Vector.Unboxed as U
import Data.Vector.Unboxed (Vector, Unbox)
import ... | lostbean/Hammer | src/Hammer/VoxBox/Render.hs | gpl-3.0 | 3,905 | 0 | 17 | 936 | 1,526 | 802 | 724 | 91 | 4 |
module Main ( main ) where
import qualified SteamQuota as SQ ( main )
main :: IO ()
main = SQ.main | nikitaDanilenko/steamQuota | Main.hs | gpl-3.0 | 100 | 0 | 6 | 22 | 37 | 23 | 14 | 4 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Module : UHA_Utils
License : GPL
Maintainer : helium@cs.uu.nl
Stability : experimental
Portability : portable
Utilities to extract data from the syntax tree
-}
module Helium.Syntax.UHA_Utils where
--import Helium.UHA_Range(noRange, getNa... | roberth/uu-helium | src/Helium/Syntax/UHA_Utils.hs | gpl-3.0 | 7,364 | 0 | 11 | 1,976 | 1,831 | 922 | 909 | 127 | 13 |
-- | 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.... | c0c0n3/audidoza | Settings.hs | gpl-3.0 | 2,734 | 0 | 12 | 500 | 297 | 186 | 111 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Khan.CLI.Metadata (commands) where
-- Module : Khan.CLI.Metadata
-- Copyright : (c) 2013 Brendan Hay <brendan.g.hay@gmail.com>
-- License : This Source Code Form is subject to the terms of
-- ... | brendanhay/khan | khan-cli/Khan/CLI/Metadata.hs | mpl-2.0 | 3,260 | 0 | 14 | 930 | 696 | 378 | 318 | 66 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/RegionAutoscalers/Update.hs | mpl-2.0 | 5,234 | 0 | 18 | 1,186 | 639 | 380 | 259 | 97 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/List.hs | mpl-2.0 | 9,696 | 0 | 19 | 1,972 | 1,021 | 613 | 408 | 130 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-swf/gen/Network/AWS/SWF/PollForDecisionTask.hs | mpl-2.0 | 13,123 | 0 | 22 | 2,742 | 1,368 | 829 | 539 | 140 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-cloudasset/gen/Network/Google/Resource/CloudAsset/BatchGetAssetsHistory.hs | mpl-2.0 | 8,315 | 0 | 19 | 1,878 | 1,065 | 621 | 444 | 153 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.