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) 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 OverloadedStrings #-}
module Duckling.Time.UK.Corpus
( corpus
, negativeCorpus
) where
impor... | facebookincubator/duckling | Duckling/Time/UK/Corpus.hs | bsd-3-clause | 20,404 | 2 | 11 | 7,430 | 6,464 | 3,921 | 2,543 | 366 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveTraversable #-}
module Jade.Middle.SubModuleRed where
-- import GHC.Generics
-- import Data.Aeson
-- import Control.Monad
-- import Jade.Common
-- import Text.Format
-- import qualified Data.List as DL
... | drhodes/jade2hdl | src/Jade/Middle/SubModuleRep.hs | bsd-3-clause | 1,134 | 0 | 3 | 283 | 34 | 32 | 2 | 5 | 0 |
--------------------------------------------------------------------------------
-- BitTicker - A program to periodically fetch and display Bitcoin stats. --
-- Copyright (C) 2013 Sam Fredrickson <kinghajj@gmail.com> --
-- ... | kinghajj/BitTicker | src/Main.hs | bsd-3-clause | 874 | 0 | 8 | 231 | 147 | 86 | 61 | 10 | 2 |
-- |
-- Copyright : (c) 2011 Duncan Coutts
--
-- test-framework stub API
--
-- Currently we cannot use the nice test-framework package for this testsuite
-- since test-framework indirectly depends on bytestring and this makes cabal
-- think we've got a circular dependency.
--
-- On the other hand, it's very nice to ... | markflorisson/hpack | testrepo/bytestring-0.10.2.0/tests/TestFramework.hs | bsd-3-clause | 1,991 | 0 | 14 | 494 | 511 | 278 | 233 | 35 | 2 |
module Logic.Link
(
LinkType(..),
Link,--(..), -- Do not expose type constructor for link; use constructor function
constructLink,
isLeftLink,
isRightLink,
numberOfTentacles,
linkType,
premises ,
conclusions,
mainFormula,
getAllPremises,
getAllConclusions,
isConclusionOfAnyLink,
isPremiseOfAnyLink
) where
import Logic.... | digitalheir/net-prove | src/Logic/Link.hs | bsd-3-clause | 4,143 | 0 | 14 | 921 | 1,001 | 548 | 453 | 79 | 4 |
{--
--- Day 1: Not Quite Lisp ---
Santa was hoping for a white Christmas, but his weather machine's "snow" function is powered by stars, and he's fresh out! To save Christmas, he needs you to collect fifty stars by December 25th.
Collect stars by helping Santa solve puzzles. Two puzzles will be made available on each... | hlmerscher/advent-of-code-2015 | src/Day1.hs | bsd-3-clause | 2,269 | 0 | 10 | 515 | 212 | 108 | 104 | 15 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Sensit where
import Network.Wreq
import Control.Lens
import Data.Map as Map
import Data.Aeson (Value)
import Data.Aeson.Lens (key)
type Resp = Response (Map String Value)
| julienXX/sensit-haskell | src/Sensit.hs | bsd-3-clause | 216 | 0 | 7 | 31 | 60 | 37 | 23 | 8 | 0 |
module Dalvik.Types where
import qualified Data.ByteString as BS
import qualified Data.Map as Map
import Data.Int
import Data.Map (Map)
import Data.Word
import Dalvik.AccessFlags
data DexHeader =
DexHeader
{ dexMagic :: BS.ByteString
, dexVersion :: BS.ByteString
, dexChecksum :: Word32
, d... | atomb/dalvik | Dalvik/Types.hs | bsd-3-clause | 5,872 | 0 | 10 | 1,551 | 1,515 | 902 | 613 | 206 | 2 |
module Main where
import Lib
main :: IO ()
main = defMain
| thulishuang/Compiler | app/Main.hs | bsd-3-clause | 60 | 0 | 6 | 14 | 22 | 13 | 9 | 4 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Parser.AST where
import Control.Lens (Plated)
import Data.Data
data AST =
IntLit Integer |
DoubleLit Double |
AST :+ AST |
AST :- AST |
AST :* AST |
AST :/ AST |
AST :^ AST
deriving (Eq, Ord, Read, Show, Data, Typeable)
instance Plated AST
da... | lightquake/sym | src/Parser/AST.hs | bsd-3-clause | 487 | 0 | 6 | 138 | 169 | 95 | 74 | 18 | 0 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE Rank2Types #-}
{-# OPT... | plow-technologies/persistent | persistent/Database/Persist/Sql/Orphan/PersistStore.hs | mit | 15,385 | 60 | 37 | 5,023 | 2,918 | 1,646 | 1,272 | 316 | 2 |
{-# LANGUAGE QuasiQuotes #-}
module Examples.First where
import HarmLang.Interpreter
import HarmLang.Types
import HarmLang.InitialBasis
import HarmLang.QuasiQuoter
import HarmLang.Expression
import HarmLang.Probability
import HarmLang.HarmonyDistributionModel
import HarmLang.Priors
import Test.HUnit hiding (test)
... | lrassaby/harmlang | examples/first.hs | mit | 9,787 | 0 | 15 | 2,323 | 2,592 | 1,438 | 1,154 | 151 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : $Header$
Description : Signatures for DL logics, as extension of CASL signatures
Copyright : (c) Klaus Luettich, Uni Bremen 2004
License : GPLv2 or higher, see LICENSE.txt
Maintainer : luecke@informatik.uni-bremen.de
Stability : provisional
Portabil... | mariefarrell/Hets | CASL_DL/Sign.hs | gpl-2.0 | 4,089 | 0 | 18 | 1,419 | 955 | 494 | 461 | 82 | 2 |
-----------------------------------------------------------------------------
--
-- Module : IDE.Utils.GtkBindings
-- Copyright : 2007-2014 Juergen Nicklisch-Franken, Hamish Mackenzie
-- License : GPL
--
-- Maintainer : maintainer@leksah.org
-- Stability : provisional
-- Portability :
--
-- |
--
----... | jaccokrijnen/leksah | src/IDE/Utils/GtkBindings.hs | gpl-2.0 | 1,167 | 0 | 10 | 144 | 204 | 120 | 84 | 14 | 1 |
{-|
Description: Main module for testing.
Module that acts as interface for testing multiple test suites using cabal.
-}
module Main
( main ) where
import qualified System.Exit as Exit
import ParserTests.ParserTests( reqTestSuite )
import Test.HUnit ( runTestTT, Test(..), failures )
-- Single test encompassi... | hermish/courseography | app/ParserTests/tests.hs | gpl-3.0 | 504 | 0 | 9 | 97 | 116 | 67 | 49 | 11 | 2 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Network.XmlRpc.Internals
-- Copyright : (c) Bjorn Bringert 2003
-- License : BSD-style
--
-- Maintainer : bjorn@bringert.net
-- Stability : experimental
-- Portability : non-portable (... | laurencer/confluence-sync | vendor/haxr/Network/XmlRpc/Internals.hs | bsd-3-clause | 20,916 | 448 | 34 | 4,686 | 6,022 | 3,285 | 2,737 | 391 | 12 |
-----------------------------------------------------------------------------
-- |
-- License : BSD-3-Clause
-- Maintainer : Oleg Grenrus <oleg.grenrus@iki.fi>
--
module GitHub.Data.Enterprise.Organizations where
import GitHub.Data.Definitions
import GitHub.Data.Name (Name)
import GitHub.Data.URL (URL)
import G... | jwiegley/github | src/GitHub/Data/Enterprise/Organizations.hs | bsd-3-clause | 2,021 | 0 | 11 | 449 | 447 | 244 | 203 | 53 | 0 |
-- demonstrates an old bug with joins without a restrict
import Database.HaskellDB
import Database.HaskellDB.Sql
import Database.HaskellDB.Query
import Database.HaskellDB.Optimize
import Database.HaskellDB.HDBRec
import Database.HaskellDB.PrimQuery
import TestConnect
import Dp037.D3proj_time_reports hiding (xid)
imp... | m4dc4p/haskelldb | test/old/join-without-restrict.hs | bsd-3-clause | 1,324 | 0 | 19 | 276 | 385 | 189 | 196 | 39 | 1 |
module Model.ResourceEdit
( fetchAllEditAddCollectionsDB
, fetchAllEditAddTagsDB
, fetchAllEditAuthorsDB
, fetchAllEditPublishedDB
, fetchAllEditRemoveCollectionsDB
, fetchAllEditRemoveTagsDB
, fetchAllEditTitlesDB
, fetchAllEditTypesDB
, fetchEditAddCollectionsDB
, fetchEditAddT... | mitchellwrosen/dohaskell | src/Model/ResourceEdit.hs | bsd-3-clause | 4,943 | 0 | 13 | 1,095 | 1,278 | 662 | 616 | 91 | 1 |
{-# LANGUAGE CPP, DeriveDataTypeable, FlexibleInstances, ScopedTypeVariables #-}
#if __GLASGOW_HASKELL__ >= 703
{-# LANGUAGE Trustworthy #-}
#endif
-- |
-- Maintainer : judah.jacobson@gmail.com
-- Stability : experimental
-- Portability : portable (FFI)
--
-- This module provides a low-level interface to the C funct... | jwiegley/ghc-release | libraries/terminfo/System/Console/Terminfo/Base.hs | gpl-3.0 | 13,647 | 0 | 17 | 3,807 | 2,730 | 1,411 | 1,319 | -1 | -1 |
-- Setup file for a Gtk2Hs module. Contains only adjustments specific to this module,
-- all Gtk2Hs-specific boilerplate is stored in Gtk2HsSetup.hs which should be kept
-- identical across all modules.
import Gtk2HsSetup ( gtk2hsUserHooks, checkGtk2hsBuildtools )
import Distribution.Simple ( defaultMainWithHooks )
ma... | YoEight/poppler_bak | Setup.hs | lgpl-2.1 | 449 | 0 | 8 | 59 | 51 | 29 | 22 | 5 | 1 |
module Main where
import Lib (ourAdd)
import Text.Printf (printf)
main :: IO ()
main = printf "2 + 3 = %d\n" (ourAdd 2 3)
| emaphis/Haskell-Practice | testing-project/app/Main.hs | bsd-3-clause | 125 | 0 | 7 | 27 | 50 | 28 | 22 | 5 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
module Lazyfoo.Lesson05 (main) where
import Control.Monad
import Foreign.C.Types
import Linear
import qualified SDL
import Paths_sdl2 (getDataFileName)
#if !MIN_VERSION_base(4,8,0)
import Control.Applicative
#endif
screenWidth, screenHeight :: CInt
(screenWidt... | dalaing/sdl2 | examples/lazyfoo/Lesson05.hs | bsd-3-clause | 1,468 | 0 | 21 | 285 | 391 | 191 | 200 | 39 | 2 |
{-# LANGUAGE FlexibleContexts #-}
module Opaleye.SQLite.RunQuery (module Opaleye.SQLite.RunQuery,
QueryRunner,
IRQ.QueryRunnerColumn,
IRQ.fieldQueryRunnerColumn) where
import qualified Database.SQLite.Simple as PGS
import qualified Database.SQ... | bergmark/haskell-opaleye | opaleye-sqlite/src/Opaleye/SQLite/RunQuery.hs | bsd-3-clause | 3,411 | 0 | 13 | 862 | 511 | 306 | 205 | 40 | 2 |
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Verbosity
-- Copyright : Ian Lynagh 2007
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- A simple 'Verbosity' type wit... | DavidAlphaFox/ghc | libraries/Cabal/Cabal/Distribution/Verbosity.hs | bsd-3-clause | 2,702 | 0 | 17 | 547 | 537 | 299 | 238 | 53 | 3 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeFamilies #-}
module Langu... | thinkpad20/rowling | src/Language/Rowling/Common.hs | mit | 2,237 | 0 | 9 | 457 | 527 | 342 | 185 | 54 | 1 |
{-# htermination (head :: (List a) -> a) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
head :: (List a) -> a;
head (Cons x vv) = x;
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/head_1.hs | mit | 191 | 0 | 8 | 49 | 70 | 40 | 30 | 5 | 1 |
{-# OPTIONS_GHC -funbox-strict-fields #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
module Database.Mongodb.Connection
( Host, Port
, ConnectionIn... | lambda-llama/mnogo | src/Database/Mongodb/Connection.hs | mit | 6,134 | 0 | 18 | 1,422 | 1,398 | 745 | 653 | 139 | 2 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Main where
import Control.Applicative
import Control.Monad
import Haste
import Haste.Ajax
import Haste.Foreign
import Haste.JSON
impo... | zopa/aghast | app/hask/aghast.hs | mit | 4,523 | 0 | 11 | 1,078 | 1,110 | 560 | 550 | 87 | 11 |
{-# LANGUAGE FlexibleContexts #-}
module Level where
import Control.Monad
import Control.Monad.State
import qualified Player as P
import qualified Platform as Platform
import qualified Switch as Switch
import qualified Base.InputHandler as IH
import qualified Base.AudioManager as AM
import qualified Base.GraphicsManag... | mdietz94/haskellgame | src/Level.hs | mit | 5,419 | 8 | 24 | 1,237 | 1,832 | 992 | 840 | 86 | 5 |
module Main
( main
) where
import GhostLang.Node (runNode)
import System.Environment (getArgs)
main :: IO ()
main = do
[listenPort] <- getArgs
runNode $ read listenPort
| kosmoskatten/ghost-lang | ghost-node/src/Main.hs | mit | 183 | 0 | 8 | 40 | 64 | 35 | 29 | 8 | 1 |
module CastInsertion where
import System.IO.Unsafe
import Data.Unique
import qualified Data.Map as HM
import Data.List
import TypeSystem
import FinalType
import Static
import TypeSystemForCC
labelPrefix :: String
labelPrefix = "L"
typeOfCI :: String
typeOfCI = "typeOfCI"
sig_typeOfCI :: Signature
sig_typeOfCI = [D... | mcimini/Gradualizer | CastInsertion.hs | mit | 4,016 | 5 | 15 | 652 | 1,316 | 688 | 628 | 51 | 2 |
import Control.Monad (foldM)
import System.Console.GetOpt
import System.Environment (getArgs,getProgName)
import YML.Dataset (parse, R)
import YML.LinearGradient (cost, gradientDescent, nullF
... | yogsototh/YML | src/Main.hs | mit | 2,428 | 0 | 18 | 828 | 656 | 344 | 312 | 42 | 3 |
to_tens :: Integer -> [Integer]
to_tens 0 = []
to_tens n = to_tens (n `div` 10) ++ [n `mod` 10]
ans = sum $ to_tens (2^1000) | stefan-j/ProjectEuler | q16.hs | mit | 130 | 0 | 8 | 31 | 75 | 41 | 34 | 4 | 1 |
{-# LANGUAGE DeriveDataTypeable,DeriveGeneric,TemplateHaskell #-}
module Database.Toxic.Query.AST where
import GHC.Generics
import Control.DeepSeq
import Control.Exception
import Control.Lens
import qualified Data.Map as M
import qualified Data.Text as T
import Data.Typeable
import qualified Data.Vector as V
import D... | MichaelBurge/ToxicSludgeDB | src/Database/Toxic/Query/AST.hs | mit | 2,449 | 0 | 12 | 459 | 654 | 377 | 277 | 90 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE OverloadedStrings #-}
module Clingo.Internal.AST where
import Control.Monad
import Data.Text (Text, unpack, pack)
import Data.Text.Lazy (fromStrict)
import Data.Bifunctor
... | tsahyt/clingo-haskell | src/Clingo/Internal/AST.hs | mit | 67,391 | 0 | 17 | 13,976 | 21,938 | 10,655 | 11,283 | 1,422 | 9 |
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE FlexibleContexts #-}
module Yage.Rendering.Mesh
( module Yage.Render... | MaxDaten/yage-rendering | src/Yage/Rendering/Mesh.hs | mit | 7,285 | 0 | 17 | 1,742 | 1,761 | 945 | 816 | -1 | -1 |
module Main where
import Options.Declarative
import CLI
main :: IO ()
main = run_ ski
| todays-mitsui/lambda2ski | app/Main.hs | mit | 91 | 0 | 6 | 20 | 30 | 17 | 13 | 5 | 1 |
{-# LANGUAGE TypeSynonymInstances, MultiParamTypeClasses #-}
module Hafer.Metric.ClassDiagram.Coupling
( evaluate
, coupling
) where
import Hafer.Data.ClassDiagram
evaluate g = coupling g
coupling :: CDGraph -> Int
coupling g = let
vs = vertices g
es' = filter (\(Edge e d a b) -> ca... | ooz/Hafer | src/Hafer/Metric/ClassDiagram/Coupling.hs | mit | 560 | 0 | 15 | 252 | 129 | 68 | 61 | 14 | 2 |
{-# LANGUAGE FlexibleInstances, UndecidableInstances, OverloadedStrings, TypeFamilies, RankNTypes, DeriveDataTypeable, FlexibleContexts, ScopedTypeVariables, GADTs, GeneralizedNewtypeDeriving, DeriveGeneric #-}
-----------------------------------------------------------------------------
{- |
Module : Language.J... | ghcjs/ghcjs | src/Compiler/JMacro/Base.hs | mit | 33,343 | 0 | 26 | 9,697 | 11,798 | 6,039 | 5,759 | 639 | 33 |
module ArrayBonn.Type where
import Autolib.TES.Identifier
import Autolib.Reader
import Autolib.ToDoc
data Statement = Assign Access Exp
data Exp = Reference Access
| Literal Integer
| Binary Op Exp Exp
data Op = Add | Subtract | Multiply | Divide
-- | access to array element
data Access = Access Identifier [ Ex... | Erdwolf/autotool-bonn | src/ArrayBonn/Type.hs | gpl-2.0 | 326 | 0 | 7 | 62 | 87 | 52 | 35 | 10 | 0 |
module Darcs.Repository.Flags
(
Compression (..)
, RemoteDarcs (..)
, Reorder (..)
, Verbosity (..)
, UpdateWorking (..)
, UseCache (..)
, DryRun (..)
, UMask (..)
, LookForAdds (..)
, LookForReplaces (..)
, DiffAlgorithm (..)
, LookForMoves (..)
, RunTest (..)
... | DavidAlphaFox/darcs | src/Darcs/Repository/Flags.hs | gpl-2.0 | 3,166 | 0 | 7 | 786 | 782 | 480 | 302 | 86 | 0 |
{-# LANGUAGE QuasiQuotes, TypeFamilies, GeneralizedNewtypeDeriving, TemplateHaskell,
OverloadedStrings, GADTs, FlexibleContexts, MultiParamTypeClasses #-}
module Main where
import Yesod
import Yesod.Static
import Yesod.Form
import Yesod.Form.Jquery
import MercadosCampesinos.Model.Market (MarketType(..), ... | arpunk/MercadosCampesinos | src/Main.hs | gpl-3.0 | 7,600 | 0 | 18 | 1,897 | 1,905 | 945 | 960 | -1 | -1 |
module Hob.Command.ReplaceText (
createMatcherForReplace,
replaceCommandHandler,
replaceNextCommandHandler,
) where
import Data.Monoid (mconcat)
import Graphics.UI.Gtk
import Hob.Command.FindText
import Hob.Context
import Hob.Ui.Editor
import Hob.Ui.Editor.Search
createMatcherForRepla... | svalaskevicius/hob | src/lib/Hob/Command/ReplaceText.hs | gpl-3.0 | 3,134 | 0 | 15 | 762 | 767 | 394 | 373 | 52 | 9 |
module Jumpie.MoveableObject where
import Jumpie.TileIncrement
class MoveableObject p where
moveObject :: p -> TileIncrement -> p
| pmiddend/jumpie | lib/Jumpie/MoveableObject.hs | gpl-3.0 | 134 | 0 | 8 | 20 | 33 | 18 | 15 | 4 | 0 |
module SIR.Model where
import SIR.API
data SIRState
= Susceptible
| Infected
| Recovered
deriving (Show, Eq)
data SIREvent
= MakeContact
| Contact !AgentId !SIRState
| Recover
deriving (Show, Eq)
createSIRStates :: Int -> Int -> Int -> [SIRState]
createSIRStates s i r = ss ++ is ++ rs
where
... | thalerjonathan/phd | thesis/code/taglessfinal/src/SIR/Model.hs | gpl-3.0 | 411 | 0 | 8 | 101 | 137 | 74 | 63 | 21 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Blog.Forms where
import Blog.Core
import Blog.Templates
import Data.Monoid
import Data.Text (Text)
import Text.Blaze.Html5 (Html, toHtml, (!), toValue)
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import Text.Digestive hiding (requi... | aslatter/blog | Blog/Forms.hs | gpl-3.0 | 1,416 | 0 | 18 | 386 | 402 | 218 | 184 | 39 | 2 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
-- | The handlers in this modules manage the sign in and sign out.
module Account.Auth (getSignInR, getSignOutR, postSignInR, signInForm) where
import Prelude
import Control.Applicative as Import ((<$>), (<*>))
import Data.Text (Text)
import Yesod
import Accou... | RaphaelJ/getwebb.org | Account/Auth.hs | gpl-3.0 | 3,130 | 0 | 20 | 898 | 720 | 381 | 339 | -1 | -1 |
module Shape.Sphere where
import Core.Constants
import Core.Types
import Core.Transform
import Core.Geometry
import Core.Intersection
import Core.DifferentialGeometry
import Data.Maybe (isJust)
type Radius = DFloat
data Sphere = Sphere {sphereToWorld :: Transform,
worldToSphere :: Transform,... | dsj36/dropray | src/Shape/Sphere.hs | gpl-3.0 | 8,804 | 0 | 16 | 3,758 | 2,391 | 1,310 | 1,081 | 171 | 6 |
module Example.Eg09 (eg09) where
import Graphics.Radian
import ExampleUtils
eg09 :: IO Html
eg09 = do
d <- readCSV "vic2012ooa2.csv" ["date", "tmp", "prc"] #+
M.fromList [ ("date", [format.="date", dateFormat.= "%b"])
, ("tmp", [label.="Temperature", units.= "°C"])
, (... | openbrainsrc/hRadian | examples/Example/Eg09.hs | mpl-2.0 | 647 | 8 | 15 | 167 | 230 | 125 | 105 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE... | olorin/amazonka | core/src/Network/AWS/Data/Time.hs | mpl-2.0 | 6,974 | 1 | 12 | 1,678 | 1,678 | 908 | 770 | 151 | 2 |
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeOperators #-}
module Data.Swagger.Bui... | twittner/swagger | src/Data/Swagger/Build/Resource.hs | mpl-2.0 | 3,032 | 0 | 14 | 594 | 826 | 476 | 350 | 52 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/CourseWorkMaterials/Patch.hs | mpl-2.0 | 7,827 | 0 | 20 | 1,725 | 957 | 563 | 394 | 142 | 1 |
-- | Low-level messaging between this client and the MongoDB server, see Mongo
-- Wire Protocol (<http://www.mongodb.org/display/DOCS/Mongo+Wire+Protocol>).
--
-- This module is not intended for direct use. Use the high-level interface at
-- "Database.MongoDB.Query" and "Database.MongoDB.Connection" instead.
{-# LANGU... | Yuras/mongodb | Database/MongoDB/Internal/Protocol.hs | apache-2.0 | 19,023 | 0 | 17 | 4,499 | 3,686 | 1,981 | 1,705 | 330 | 4 |
module Problem066 where
main =
print $ maximum [(pell n, n) | n <- [1 .. 1000]]
pell n
| s * s == n = 0
| otherwise = pell' (0, 1, s) (s, 1) (1, 0)
where s = sqrt' n
pell' (m, d, a) (n0, n1) (d0, d1)
| n0 * n0 - n * d0 * d0 == 1 = abs n0
| otherwise = let m' = d * a - m
... | vasily-kartashov/playground | euler/problem-066.hs | apache-2.0 | 612 | 0 | 15 | 298 | 308 | 168 | 140 | 16 | 1 |
module Kata02.Chop1 (chop) where
import Data.List
import Kata02.Utils
chop :: Int -> [Int] -> Int
chop _ [] = -1
chop x [y]
| x == y = 0
| otherwise = -1
chop x xs =
let start = 0
end = (length xs) - 1
in chop' x xs start end
chop' :: Int -> [Int] -> Int -> Int -> Int
chop' x xs start end
| start == ... | safwank/HaskellKata | src/Kata02/Chop1.hs | apache-2.0 | 624 | 0 | 12 | 238 | 290 | 150 | 140 | 24 | 3 |
{-
Copyright 2015 Tristan Aubrey-Jones
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | flocc-net/flocc | v0.1/Compiler/Types/Builder.hs | apache-2.0 | 9,318 | 15 | 30 | 1,963 | 2,735 | 1,466 | 1,269 | 144 | 12 |
module Regression (tests) where
import Control.Exception (bracket)
import Test.HUnit (Assertion)
import qualified System.Event as E
import qualified Test.Framework as F
import qualified Test.Framework.Providers.HUnit as F
startupShutdown :: Assertion
startupShutdown = E.new >>= E.shutdown
doubleRegister :: Assertion... | tibbe/event | tests/Regression.hs | bsd-2-clause | 663 | 0 | 13 | 122 | 207 | 112 | 95 | 18 | 1 |
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE DataKinds, TypeFamilies, StarIsType #-}
module Bug466 where
class Cl a where
type Fam a :: [*]
data X = X
instance Cl X where
type Fam X = '[Char]
| haskell/haddock | html-test/src/Bug466.hs | bsd-2-clause | 195 | 0 | 7 | 41 | 54 | 32 | 22 | 8 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
module Handler.Document
( getDocListR
, getDocNewR
, postDocNewR
, getDocR
, postDocR
, getDocEditR
, getDocDeleteR
, postDocDeleteR
, docAForm
, docForm
) where
import Data.Maybe
import Data.Monoid
import D... | erochest/whatisdh | Handler/Document.hs | bsd-2-clause | 4,511 | 0 | 19 | 1,599 | 1,221 | 592 | 629 | -1 | -1 |
{-# LANGUAGE UndecidableInstances, FlexibleContexts, TypeSynonymInstances #-}
import Control.Monad.Reader
import Control.Monad.State
import Control.Monad.Identity
import Control.Monad.Random
import Control.Monad.Random.Class
-- * fair coin
fair :: MonadRandom m => m Bool
fair = (flip (<=) 0.5) <$> getRandomR (0,1 ... | lingxiao/CIS700 | depricated/Tbd.hs | bsd-3-clause | 2,121 | 0 | 9 | 473 | 692 | 370 | 322 | 41 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
module River.Fresh (
MonadFresh(..)
, Fresh
, runFresh
, runFreshFrom
, FreshT
, runFreshT
, runFreshFromT
, FreshName(..)
) where
import Control.Monad.Trans.Class (lift)
import Control.Monad.Trans.Cont (... | jystic/river | src/River/Fresh.hs | bsd-3-clause | 3,821 | 0 | 12 | 834 | 1,130 | 614 | 516 | 113 | 1 |
module Pipes.Combinators where
import Control.Monad
import Pipes
import Pipes.Internal
import Pipes.Prelude as P
-----------------------------------------------------------------------------
interleaveRequests :: Monad m => Proxy () a () b m r -> Proxy () a () b m r -> Proxy () a () b m r
interleaveRequests p1 p2 = ... | cmahon/pipes-combinators | src/Pipes/Combinators.hs | bsd-3-clause | 3,240 | 0 | 19 | 1,050 | 1,486 | 742 | 744 | 68 | 7 |
module ETA.CodeGen.Utils where
import ETA.Main.DynFlags
-- import ETA.Types.Type
import ETA.BasicTypes.Name
import ETA.Types.TyCon
import ETA.BasicTypes.Literal
import Codec.JVM
import Data.Char (ord)
import Control.Arrow(first)
import ETA.CodeGen.Name
import ETA.CodeGen.Rts
import ETA.Debug
-- import Data.Text (Text)... | AlexeyRaga/eta | compiler/ETA/CodeGen/Utils.hs | bsd-3-clause | 2,614 | 0 | 13 | 594 | 786 | 419 | 367 | 50 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad.Except (runExceptT)
import Data.Monoid ((<>))
import Options.Applicative (Parser, execParser, strOption, long, value, info, helper, fullDesc)
import System.Exit (exitWi... | savannidgerinel/health | app/Main.hs | bsd-3-clause | 974 | 0 | 18 | 292 | 291 | 153 | 138 | 24 | 3 |
module GameMap where
import Data.Map.Strict
type Point = (Int, Int)
type Size = Point
data Cell = Floor | Wall | Space
deriving (Show, Eq)
data GameMap a = GameMap { mapData :: Map Point a
, mapSize :: Point }
type GameCellMap = GameMap Cell
class ShowANSI a where
showANSI :: a -> Ch... | lexical-works/LittleRogue | src/GameMap.hs | bsd-3-clause | 426 | 0 | 9 | 120 | 138 | 79 | 59 | 15 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Main where
import Control.Exception
import Data.Bugs
import Data.Char
import Data.Text (Text, pack)
import Prelude hiding (log)
import Test.Hspec
tryAny :: IO a -> IO (Either SomeException a)
tryAny = try
main :: IO ()
main = hspec $ do
desc... | jwiegley/bugs | test/main.hs | bsd-3-clause | 370 | 0 | 13 | 74 | 121 | 67 | 54 | 15 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Client.ParticleTGlobals where
import Control.Lens (makeLenses)
import qualified Data.Vector.Storable.Mutable as MSV
import qualified Data.Vector.Unboxed as UV
import System.IO.Unsafe (unsafePerformIO)
import qualified Con... | ksaveljev/hake-2 | src/Client/ParticleTGlobals.hs | bsd-3-clause | 664 | 0 | 12 | 146 | 132 | 79 | 53 | 14 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.EXT.FogCoord
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
-- ... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/EXT/FogCoord.hs | bsd-3-clause | 1,030 | 0 | 4 | 121 | 82 | 62 | 20 | 16 | 0 |
module Graphics.X11.Turtle.Input(TurtleInput(..), turtleSeries) where
import Graphics.X11.Turtle.State(TurtleState(..), initTurtleState, makeShape)
import Text.XML.YJSVG(SVG(..), Color(..), Position(..), Font(..), FontWeight(..))
import Control.Concurrent.Chan (Chan)
--------------------------------------------------... | YoshikuniJujo/xturtle_haskell | src/Graphics/X11/Turtle/Input.hs | bsd-3-clause | 4,548 | 38 | 15 | 871 | 2,212 | 1,179 | 1,033 | 101 | 6 |
-- |
-- Module : Network.TLS.Imports
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : unknown
--
{-# LANGUAGE NoImplicitPrelude #-}
module Network.TLS.Imports
(
-- generic exports
Control.Applicative.Applicative(..)
, (... | tolysz/hs-tls | core/Network/TLS/Imports.hs | bsd-3-clause | 758 | 0 | 8 | 149 | 132 | 88 | 44 | 16 | 1 |
-- 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. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
{-# LANGUAGE Over... | rfranek/duckling | Duckling/Volume/GA/Corpus.hs | bsd-3-clause | 971 | 0 | 9 | 261 | 156 | 95 | 61 | 22 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, PatternGuards #-}
module PTS.Dynamics.Evaluation where
import Control.Applicative hiding (Const)
import Control.Monad.Environment
import Control.Monad.State
import Data.Maybe (fromMaybe)
import qualified Data.Set as Set
import qualified Data.Map as Map
import PTS.Dynamics.Bin... | Toxaris/pts | src-lib/PTS/Dynamics/Evaluation.hs | bsd-3-clause | 4,956 | 0 | 22 | 1,357 | 2,342 | 1,077 | 1,265 | 167 | 15 |
module CodeGen
(showDIMACS, showCNF)
where
import DataStructures
import Data.List (foldl')
showDIMACS :: CNF -> Int -> String
showDIMACS cnf nVars = "p cnf " ++ show nVars ++ " " ++ show (length cnf)
++ "\n" ++ showCNF cnf
showCNF :: CNF -> String
showCNF = foldl' (\acc andClause -> showOrClause andClause ++ acc)... | anniecherk/pyschocnf | src/CodeGen.hs | bsd-3-clause | 539 | 0 | 10 | 100 | 188 | 99 | 89 | 11 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Prompt.Input
-- Copyright : (c) 2007 Brent Yorgey
-- License : BSD-style (see LICENSE)
--
-- Maintainer : <byorgey@gmail.com>
-- Stability : stable
-- Portability : unportable
--
-- A generic framew... | MasseR/xmonadcontrib | XMonad/Prompt/Input.hs | bsd-3-clause | 4,560 | 0 | 11 | 977 | 341 | 219 | 122 | 16 | 1 |
module JDec.Class.Raw.Field (
Field(Field),
fieldAccessFlags,
fieldNameIndex,
fieldDescriptorIndex,
fieldAttributes
) where
import JDec.Class.Raw.FieldModifier(FieldModifier)
import JDec.Class.Raw.Attribute(Attribute)
import JDec.Class.Raw.ConstantPoolIndex (ConstantPoolIndex)
import Data.Set
-- | Field decription. ... | rel-eng/jdec | src/JDec/Class/Raw/Field.hs | bsd-3-clause | 1,285 | 0 | 9 | 172 | 117 | 78 | 39 | 18 | 0 |
-- |
-- This helper module exports elements from the basic libraries:
-- XPathEval, XPathToString and XPathParser
--
-- Author : Torben Kuseler
module Yuuko.Text.XML.HXT.XPath
( module Yuuko.Text.XML.HXT.XPath.XPathEval
, module Yuuko.Text.XML.HXT.XPath.XPathToString
, module Yuuko.Text.XML.HXT.... | nfjinjing/yuuko | src/Yuuko/Text/XML/HXT/XPath.hs | bsd-3-clause | 491 | 0 | 5 | 79 | 73 | 58 | 15 | 7 | 0 |
{-# LANGUAGE QuasiQuotes #-}
module ConventionTest
( module Convention
, conventionCorrect
) where
import Convention
import Commandline
import Data.ByteString.Builder
import Data.List (intersperse, mapAccumL)
import qualified Data.ByteString.Lazy.Char8 as L
import Str
import Test.QuickCheck
import Test.QuickChe... | m-schmidt/fuzzer | src/ConventionTest.hs | bsd-3-clause | 7,120 | 0 | 22 | 1,791 | 1,622 | 823 | 799 | 99 | 2 |
--------------------------------------------------------------------------------
module Copilot.Kind.Misc.Type
( Type (..)
, U (..)
) where
import Copilot.Core.Type.Equality
--------------------------------------------------------------------------------
data Type a where
Bool :: Type Bool
Integ... | jonathan-laurent/copilot-kind | src/Copilot/Kind/Misc/Type.hs | bsd-3-clause | 986 | 0 | 8 | 188 | 186 | 102 | 84 | -1 | -1 |
module Data.Traversable.Fair
( foldMapBoth
, traverseBoth
, foldMapWithKeyBoth
, traverseWithKeyBoth
, foldMapBoth1
, traverseBoth1
, foldMapWithKeyBoth1
, traverseWithKeyBoth1
) where
import Control.Applicative
import Control.Arrow
import Data.Key
import Data.Functor.Apply
import Data.Foldable
impo... | ekmett/representable-tries | src/Data/Traversable/Fair.hs | bsd-3-clause | 5,052 | 0 | 14 | 1,287 | 2,782 | 1,428 | 1,354 | 105 | 4 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
----------------------------------------------... | qnikst/distributed-process-extras | src/Control/Distributed/Process/Extras/Internal/Primitives.hs | bsd-3-clause | 10,699 | 0 | 28 | 3,246 | 2,596 | 1,341 | 1,255 | 199 | 4 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
module Monto.Broker
( empty
, printBroker
, registerService
, deregisterService
, registerProductDep
, Broker(..)
, newVersion
, newProduct
, Response (..)
, Message (..)
, Dependency(..)
, Server(..)
, Serv... | wpmp/monto-broker | src/Monto/Broker.hs | bsd-3-clause | 9,904 | 0 | 18 | 2,226 | 3,185 | 1,702 | 1,483 | 212 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverlappingInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-|
Allocate resources which are guaranteed to be released.
One point to note: all register cleanup act... | duairc/resource-simple | src/Control/Monad/Resource.hs | bsd-3-clause | 9,954 | 0 | 22 | 1,936 | 2,025 | 1,087 | 938 | 119 | 2 |
{- |
Module : $Id: GUI.hs 13959 2010-08-31 22:15:26Z cprodescu $
Description : graphical user interface modules
Copyright : (c) Uni Bremen 2005-2009
License : GPLv2 or higher, see LICENSE.txt
Maintainer : raider@informatik.uni-bremen.de
Stability : provisional
Portability : non-portable (uses uni ... | nevrenato/HetsAlloy | GUI.hs | gpl-2.0 | 2,745 | 0 | 2 | 383 | 5 | 4 | 1 | 1 | 0 |
{-# OPTIONS_GHC -cpp #-}
-------------------------------------------------------------------------------------------
-- |
-- Module : Control.Arrow.BiKleisli
-- Copyright : 2008 Edward Kmett
-- License : BSD3
--
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : experimental
-- Portability : portable
--
--... | urska19/MFP---Samodejno-racunanje-dvosmernih-preslikav | Control/Arrow/BiKleisli.hs | apache-2.0 | 1,309 | 4 | 14 | 211 | 415 | 225 | 190 | 21 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
-- | Provide a notion of fanout wherein a single input is passed to
-- several consumers.
module Data.Machine.Fanout (fanout, fanoutSteps) where
import Data.List.NonEmpty (NonEmpty (..))
import Data.Machine
import Data.Semigroup (Semigroup ... | bitemyapp/machines | src/Data/Machine/Fanout.hs | bsd-3-clause | 2,352 | 0 | 16 | 618 | 789 | 420 | 369 | 34 | 4 |
{-# LANGUAGE CPP #-}
module Distribution.Client.Dependency.Modular.Builder (buildTree) where
-- Building the search tree.
--
-- In this phase, we build a search tree that is too large, i.e, it contains
-- invalid solutions. We keep track of the open goals at each point. We
-- nondeterministically pick an open goal (vi... | tolysz/prepare-ghcjs | spec-lts8/cabal/cabal-install/Distribution/Client/Dependency/Modular/Builder.hs | bsd-3-clause | 10,016 | 0 | 22 | 2,721 | 2,233 | 1,228 | 1,005 | 89 | 10 |
{-# OPTIONS_GHC -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Either
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
--... | FranklinChen/hugs98-plus-Sep2006 | packages/base/Data/Either.hs | bsd-3-clause | 1,447 | 2 | 8 | 292 | 151 | 92 | 59 | 4 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- |
-- Copyright : (c) 2011 Simon Meier
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
-- Portability : portable
--
-- Pretty-printing with support for HTML markup and proper HTML escaping.
module Text.PrettyPrint.Html (
-- * ... | rsasse/tamarin-prover | lib/utils/src/Text/PrettyPrint/Html.hs | gpl-3.0 | 7,106 | 0 | 13 | 1,442 | 1,586 | 852 | 734 | 119 | 6 |
<?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="pl-PL">
<title>AJAX Spider | ZAP Extensions</title>
<maps>
<homeID>top</homeID>
<mapre... | rnehra01/zap-extensions | src/org/zaproxy/zap/extension/spiderAjax/resources/help_pl_PL/helpset_pl_PL.hs | apache-2.0 | 977 | 80 | 66 | 160 | 420 | 212 | 208 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, RecordWildCards, EmptyDataDecls,
FlexibleInstances, FlexibleContexts #-}
module Database.Redis.PubSub (
publish,
pubSub,
Message(..),
PubSub(),
subscribe, unsubscribe, psubscribe, punsubscribe
) where
import Control.Applicative
import Control.Monad
import Contro... | MaxGabriel/hedis | src/Database/Redis/PubSub.hs | bsd-3-clause | 7,653 | 0 | 18 | 1,947 | 1,784 | 955 | 829 | -1 | -1 |
-- A simple let expression, to ensure the layout is detected
module Layout.LetExpr where
foo = let x = 1
y = 2
in x + y
| RefactoringTools/HaRe | test/testdata/Layout/LetExpr.hs | bsd-3-clause | 139 | 0 | 8 | 46 | 32 | 18 | 14 | 4 | 1 |
{-# LANGUAGE Unsafe #-}
{-# LANGUAGE CPP #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.ST.Imp
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
... | mightymoose/liquidhaskell | benchmarks/base-4.5.1.0/Control/Monad/ST/Imp.hs | bsd-3-clause | 2,219 | 0 | 10 | 524 | 272 | 171 | 101 | 15 | 0 |
<?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="zh-CN">
<title>AJAX Spider | ZAP Extensions</title>
<maps>
<homeID>top</homeID>
<mapre... | msrader/zap-extensions | src/org/zaproxy/zap/extension/spiderAjax/resources/help_zh_CN/helpset_zh_CN.hs | apache-2.0 | 974 | 82 | 65 | 160 | 413 | 209 | 204 | -1 | -1 |
-- | This module defines a generator for @getopt@ based command
-- line argument parsing. Each option is associated with arbitrary
-- Python code that will perform side effects, usually by setting some
-- global variables.
module Futhark.CodeGen.Backends.GenericPython.Options
( Option (..)
, OptionArgume... | ihc/futhark | src/Futhark/CodeGen/Backends/GenericPython/Options.hs | isc | 2,851 | 0 | 15 | 904 | 556 | 298 | 258 | 46 | 4 |
-----------------------------------------------------------------------------
--
-- Module : SGC.Object.SomeObject
-- Copyright :
-- License : MIT
--
-- Maintainer :
-- Stability :
-- Portability :
--
-- |
--
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ExistentialQ... | fehu/hsgc | SGC/Object/SomeObject.hs | mit | 3,296 | 0 | 10 | 697 | 884 | 519 | 365 | -1 | -1 |
module Unison.Test.BlockStore.MemBlockStore where
import System.Random
import Test.QuickCheck
import Test.Tasty
import Test.Tasty.HUnit
import Unison.Runtime.Address
import Unison.Test.BlockStore
import qualified Control.Concurrent.MVar as MVar
import qualified Data.IORef as IORef
import qualified Unison.BlockStore.Me... | nightscape/platform | node/tests/Unison/Test/BlockStore/MemBlockStore.hs | mit | 714 | 0 | 9 | 96 | 165 | 93 | 72 | 20 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
module KV where
import qualified Solar.Data.KV as K
import System.IO.Unsafe(unsafePerformIO)
import Data.Time.Clock
import Data.Text(pack)
i... | Cordite-Studios/solar | playground/KV.hs | mit | 2,001 | 0 | 10 | 387 | 707 | 400 | 307 | 55 | 1 |
module Food ( FoodType (..)
, Food (..)
, food
) where
--------------------
-- Global Imports --
import Prelude hiding ((.))
import System.Random
import Control.Wire
import Linear.V2
-------------------
-- Local Imports --
import Assets
import Config
import Render
----------
-- Co... | crockeo/netwire-vinyl | src/Food.hs | mit | 2,166 | 0 | 14 | 664 | 616 | 326 | 290 | 63 | 2 |
module Ch10Types where
import Prelude hiding (Bool)
type Pos = (Int,Int) -- type synonym
origin :: Pos
origin = (0,0)
left :: Pos -> Pos
left (x,y) = (x-1,y)
-- *Ch10Types> left (1,1)
-- (0,1)
----------------------
type Pair a = (a,a)
mult :: Pair Int -> Int
mult (m,n) = m * n
copy :: a -> Pair a
... | HaskellForCats/HaskellForCats | MenaBeginning/Ch010/2014-0331Ch10Types.hs | mit | 1,351 | 0 | 6 | 424 | 196 | 130 | 66 | 15 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.