code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Examples.Bandwidth
( bExamples
) where
import Utils
import Algebra.Matrix
import Algebra.Semiring
import Metrics.Bandwidth
bExamples :: Int -> Matrix Bandwidth
bExamples 0 = M (toArray 5 [ zero, B 1, B 4, zero, B 5
, B 1, zero, B 4, zero, B 3
, ... | sdynerow/Semirings-Library | haskell/Examples/Bandwidth.hs | apache-2.0 | 3,415 | 0 | 9 | 1,714 | 1,250 | 718 | 532 | 61 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-
RDGTest.hs
Copyright 2018 Sebastien Soudan
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 require... | ssoudan/hsStruct | test/RDGTest.hs | apache-2.0 | 1,328 | 0 | 11 | 350 | 259 | 146 | 113 | 20 | 1 |
module Util.Angular
( requireAuthIdPreventingXsrf
, setXsrfCookie
, validXsrfHeader
) where
import Prelude hiding (mapM_)
import Data.Foldable (mapM_)
import Control.Monad (unless)
import Data.Default (def)
import Data.Text.Encoding (decodeUtf8, encodeUtf8)
import qualified Network.HTTP.Types as HTTP
import ... | samstokes/yesodoro-reboot | Util/Angular.hs | bsd-2-clause | 1,628 | 0 | 14 | 307 | 406 | 221 | 185 | 40 | 1 |
module Handler.Constraint where
import Import
import Yesod.Form
import Data.Lens.Common
import Lol.Build
import Lol.Champs
import Lol.Constraints
import Lol.FD
import Lol.Items
import Lol.Stats
import Widget
buildList :: [[Item]]
buildList = runFD $ do
build <- defaultBuilds
labelling build
createBestBuil... | MostAwesomeDude/lollerskates | Handler/Constraint.hs | bsd-2-clause | 523 | 0 | 12 | 82 | 146 | 79 | 67 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, FlexibleInstances, MultiParamTypeClasses, FunctionalDependencies #-}
module Web.Thermopolis.PageIdentity where
import Control.Monad.Trans.Reader
import Data.Text(Text)
import qualified Data.Text as T
-- Every path has a depth, simply to find the way back to the root
class (... | andygill/thermopolis | src/Web/Thermopolis/PageIdentity.hs | bsd-2-clause | 722 | 0 | 11 | 154 | 218 | 118 | 100 | 15 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Network.HPACK.HeaderBlock.Integer (
encodeI
, encodeInteger
, decodeI
, decodeInteger
) where
import Data.Array (Array, listArray)
import Data.Array.Base (unsafeAt)
import Network.ByteOrder
import Imports
-- $setup
-- >>> import qualified Data.ByteString as BS
... | kazu-yamamoto/http2 | Network/HPACK/HeaderBlock/Integer.hs | bsd-3-clause | 3,236 | 0 | 16 | 1,026 | 667 | 360 | 307 | 56 | 2 |
-- |
module Renderer where
import qualified Graphics.UI.Threepenny as UI
import Graphics.UI.Threepenny.Core
import Hyrule
import Control.Monad (void)
import Data.Foldable(toList)
import Data.List.Split (chunksOf, splitOn)
nextTerrain :: AreaType -> String -> String
nextTerrain Overworld "g" = "s"
nextTerrain Overwo... | trxeste/wrk | haskell/TrabalhoIA/src/Renderer.hs | bsd-3-clause | 3,869 | 0 | 25 | 1,023 | 1,398 | 689 | 709 | 82 | 13 |
{-# LANGUAGE CPP, NamedFieldPuns, NondecreasingIndentation #-}
{-# OPTIONS_GHC -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
-----------------------------------------------------------------------------
--
-- GHC Driver
--
-- (c) The University of Glasgow 2005
--
------------------------------... | da-x/ghc | compiler/main/DriverPipeline.hs | bsd-3-clause | 101,562 | 0 | 31 | 34,315 | 16,419 | 8,311 | 8,108 | 1,397 | 43 |
module Main where
import Network.Wreq ( defaults )
import Data.Text.Encoding ( encodeUtf8 )
import Data.Text ( pack )
import Control.Lens ( (^.) )
import PivotalTrackerApi ( withToken
, getStory
)
import PivotalTrackerApi.Story ( name )
main :: IO ()
main = do
sto... | Irio/pivotal-tracker-api-playground | app/Main.hs | bsd-3-clause | 533 | 0 | 8 | 147 | 130 | 74 | 56 | 15 | 1 |
-- ^
-- Handlers for Xandar endpoints
module Handlers.Xandar where
import Api.Xandar
import Handlers.Common
import qualified Handlers.RssReaders.Feeds as F
import qualified Handlers.RssReaders.Subscriptions as S
import qualified Handlers.RssReaders.UserPosts as U
import Persistence.RssReaders.Common
import Persistence... | gabesoft/kapi | src/Handlers/Xandar.hs | bsd-3-clause | 3,149 | 0 | 17 | 618 | 560 | 287 | 273 | 82 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.SGIX.Resample
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
--... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/SGIX/Resample.hs | bsd-3-clause | 752 | 0 | 4 | 90 | 49 | 39 | 10 | 7 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Routes where
import Common
import Web.Scotty.Trans
import Network.Wai (Request)
import Control.Monad.Trans.Reader
import Control.Monad.Trans
import Data.Binary.Builder
import Network.HTTP.Types
import Data.Monoid
import Data.String.Conversions
import Data.List
comparePackageP... | chrissound/ArchPackageCompareStats | src/Routes.hs | bsd-3-clause | 1,032 | 1 | 11 | 126 | 285 | 160 | 125 | 24 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-|
Module : Numeric.AERN.RealArithmetic.NumericOrderRounding.Elementary
Description : support for various common elementary functions
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
... | michalkonecny/aern | aern-real/src/Numeric/AERN/RealArithmetic/NumericOrderRounding/Elementary.hs | bsd-3-clause | 6,731 | 0 | 19 | 1,754 | 1,600 | 852 | 748 | 132 | 3 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Test.IO.Tinfoil.Signing where
import Data.ByteString (ByteString)
import Disorder.Core (UniquePair(..))
import Disorder.Core.IO (testIO)
import P
import ... | ambiata/tinfoil | test/Test/IO/Tinfoil/Signing.hs | bsd-3-clause | 1,126 | 0 | 12 | 264 | 303 | 165 | 138 | 25 | 1 |
-- |
-- Module : Web.FBMessenger.API.Bot.Requests
-- License : BSD3
-- Maintainer : Marcello Seri <marcello.seri@gmail.com>
-- Stability : experimental
-- Portability : unknown
--
-- This module contains types and helpers to build requests to the
-- <https://developers.facebook.com/docs/messenger-platform/... | mseri/fbmessenger-api-hs | src/Web/FBMessenger/API/Bot/Requests.hs | bsd-3-clause | 25,252 | 0 | 24 | 6,266 | 4,132 | 2,270 | 1,862 | 359 | 3 |
{-|
This module provides the 'IFunctor' and 'IMonad' classes which are the
indexed counterparts to 'Functor' and 'Monad' from @Control.Monad@.
-}
{-# LANGUAGE Rank2Types, TypeOperators, CPP #-}
#if MIN_VERSION_base(4,6,0)
{-# LANGUAGE PolyKinds #-}
#endif
module Control.IMonad.Core (
-- * Indexed Monads
... | Gabriel439/Haskell-Index-Core-Library | Control/IMonad/Core.hs | bsd-3-clause | 2,324 | 0 | 10 | 562 | 463 | 263 | 200 | 24 | 1 |
module Main where
import Language.SSTG.GHC.CompileToSTG
import Language.SSTG.Syntax
import Language.SSTG.Serialization
import Outputable
import StgSyn (pprStgBindings)
import HscTypes
import Module
import System.IO
import System.Environment (getArgs)
import Control.Monad
import System.FilePath
import System.Director... | gergoerdi/sstg | src/sstg-compile.hs | bsd-3-clause | 1,611 | 0 | 16 | 346 | 578 | 288 | 290 | 45 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module IrcScanner.Index(tryIndex,addIndex,addIndexes,getIndexes,deleteIndex,addFileLine, addFileLines, getIState, updateIState,lookupCir,addIndex',loadKwTemplateFile,deleteAllIndexes,getIrssiMessageText,addLogFileToState) where
import Control.Lens.At (at)
import Control.Lens.Setter (... | redfish64/IrcScanner | src/IrcScanner/Index.hs | bsd-3-clause | 8,566 | 0 | 22 | 2,016 | 2,419 | 1,297 | 1,122 | 167 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Network.Consul.Types (
Check(..),
Config(..),
Consistency(..),
ConsulClient(..),
Datacenter (..),
Health(..),
HealthCheck(..),
HealthCheckStatus(..),
KeyValue(..),
... | hellertime/consul-haskell | src/Network/Consul/Types.hs | bsd-3-clause | 8,788 | 0 | 27 | 1,703 | 2,983 | 1,655 | 1,328 | 248 | 2 |
module Paths_aeson (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
import Data.Version (Version(..))
import System.Environment (getEnv)
import Prelude
catchIO :: IO a -> (Exception.IOException -> IO a) -> ... | jprider63/aeson-ios-0.8.0.2 | dist/i386/build/autogen/Paths_aeson.hs | bsd-3-clause | 1,286 | 0 | 10 | 177 | 362 | 206 | 156 | 28 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
module JavaParser
( Line(..),
getSuppressions,
javaParser,
javaLineParser,
suppressionParser,
reasonParser,
quotedString,
skipString,
skipToEOL
) where
import Control.Applicative
import Data... | j-a-k/suppr | src/JavaParser.hs | bsd-3-clause | 2,866 | 0 | 11 | 568 | 610 | 336 | 274 | 52 | 2 |
-- Note [Settings file]
-- ~~~~~~~~~~~~~~~~~~~~
--
-- GHC has a file, `${top_dir}/settings`, which is the main source of run-time
-- configuration. ghc-pkg needs just a little bit of it: the target platform CPU
-- arch and OS. It uses that to figure out what subdirectory of `~/.ghc` is
-- associated with the current ve... | sdiehl/ghc | libraries/ghc-boot/GHC/Settings.hs | bsd-3-clause | 4,028 | 0 | 14 | 716 | 819 | 416 | 403 | 65 | 3 |
module Database.Esqueleto.TextSearch (
module Database.Esqueleto.TextSearch.Language
, module Database.Esqueleto.TextSearch.Types
) where
import Database.Esqueleto.TextSearch.Language
import Database.Esqueleto.TextSearch.Types
| albertov/esqueleto-textsearch | src/Database/Esqueleto/TextSearch.hs | mit | 234 | 0 | 5 | 21 | 39 | 28 | 11 | 5 | 0 |
{-# Language RebindableSyntax #-}
{-# Language TypeOperators #-}
{-# Language ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-unused-binds -fno-warn-name-shadowing -fno-warn-unused-do-bind #-}
module Types00 where
import Prelude hiding ((>>=), (>>), fail, return)
import Symmetry.Language
import Symmetry.Verify
... | gokhankici/symmetry | checker/tests/neg/Types00.hs | mit | 640 | 0 | 11 | 191 | 184 | 100 | 84 | 18 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts, StandaloneDeriving, UndecidableInstances #-}
module Database.Persist.Class.PersistEntity
( P... | nakaji-dayo/persistent | persistent/Database/Persist/Class/PersistEntity.hs | mit | 14,622 | 0 | 17 | 2,984 | 2,492 | 1,418 | 1,074 | 151 | 6 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Network.AWS.ElasticBeanstalk.Types.Pr... | olorin/amazonka | amazonka-elasticbeanstalk/gen/Network/AWS/ElasticBeanstalk/Types/Product.hs | mpl-2.0 | 78,088 | 0 | 24 | 16,334 | 14,668 | 8,514 | 6,154 | 1,339 | 1 |
-- Copyright (c) 2015 Eric McCorkle. All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
--
-- 1. Redistributions of source code must retain the above copyright
-- notice, this list of conditi... | emc2/chill | src/IR/Common/TBAA.hs | bsd-3-clause | 3,579 | 0 | 14 | 918 | 574 | 338 | 236 | 48 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Main where
import Control.Monad.IO.Class (MonadIO)
import Data.Monoid ((<>))
import Database.PostgreSQL.Simple (ConnectInfo (..),
... | charlescrain/tholos | app/Main.hs | bsd-3-clause | 1,194 | 0 | 10 | 445 | 244 | 142 | 102 | 30 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module App
( app
) where
import Views
import Web.Scotty hiding (body)
app :: ScottyM ()
app = do
get "/" $
mustache "src/Views/index.mustache" $ indexView "Happy Holidays" "from Fujimura"
get "/foo" $
mustache "src/Views/foo.m... | beni55/wai-hspec-example | src/App.hs | bsd-3-clause | 393 | 0 | 9 | 120 | 96 | 47 | 49 | 13 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Async where
import Test.WebDriver
import qualified Data.Aeson as A
main :: IO ()
main = runSession defaultConfig defaultCaps $ do
openPage "http://www.wikipedia.org/"
r <- asyncJS [] "arguments[0]();"
if r /= Just A.Null
then error $ "Async returned " ++ sho... | wuzzeb/hs-webdriver | test/async.hs | bsd-3-clause | 345 | 0 | 11 | 75 | 98 | 50 | 48 | 11 | 2 |
-- BNF Converter: Error Monad
-- Copyright (C) 2004 Author: Aarne Ranta
-- This file comes with NO WARRANTY and may be used FOR ANY PURPOSE.
module FeatureModel.Parsers.FMIde.ErrM where
-- the Error monad: like Maybe type with error msgs
import Control.Monad (MonadPlus(..), liftM)
data Err a = Ok a | Bad String
... | hephaestus-pl/hephaestus | willian/hephaestus-integrated/feature-modeling/src/FeatureModel/Parsers/FMIde/ErrM.hs | mit | 602 | 0 | 8 | 153 | 170 | 92 | 78 | 15 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Monoid ((<>))
import qualified Graphics.Vty as V
import Brick.Main (App(..), defaultMain, resizeOrQuit, neverShowCursor)
import Brick.Types
( Widget
)
import Brick.Widgets.Core
( (<=>)
)
import Brick.Util (on, fg)
import Brick.Markup (markup, (@... | sisirkoppaka/brick | programs/MarkupDemo.hs | bsd-3-clause | 1,025 | 0 | 13 | 254 | 351 | 209 | 142 | 31 | 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="hi-IN">
<title>Call Home Add-On</title>
<maps>
<homeID>callhome</homeID>
<mapref locati... | thc202/zap-extensions | addOns/callhome/src/main/javahelp/org/zaproxy/addon/callhome/resources/help_hi_IN/helpset_hi_IN.hs | apache-2.0 | 966 | 77 | 67 | 157 | 413 | 209 | 204 | -1 | -1 |
{-# LANGUAGE NoMonomorphismRestriction #-}
-----------------------------------------------------------
-- Daan Leijen (c) 2000, http://www.cs.uu.nl/~daan
-- modified by John Meacham 2003
--
--
-- Pretty print module based on Philip Wadlers "prettier printer"
-- "A prettier printer"
-- Draft paper, April 1997,... | m-alvarez/jhc | src/Doc/Pretty.hs | mit | 12,378 | 0 | 16 | 3,928 | 3,186 | 1,658 | 1,528 | 195 | 10 |
{-@ LIQUID "--no-termination" @-}
module Eval (eval) where
import Language.Haskell.Liquid.Prelude (liquidError)
import Prelude hiding (lookup)
import Data.Set (Set (..))
lookup :: Bndr -> Env Expr -> Expr
-------------------------------------------------------------------
-- | Binders, Expressions, Environments
--... | abakst/liquidhaskell | docs/slides/BOS14/hs/end/06_Eval.hs | bsd-3-clause | 2,213 | 0 | 9 | 531 | 367 | 202 | 165 | 22 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE AutoDeriveTypeable, StandaloneDeriving #-}
{-# LANGUAGE MagicHash #-}
#if !defined(__PARALLEL_HASKELL__)
{-# LANGUAGE UnboxedTuples #-}
#endif
-----------------------------------------------------------------------------
-- |
-- Module : System.Mem.S... | szatkus/haste-compiler | libraries/ghc-7.10/base/System/Mem/StableName.hs | bsd-3-clause | 4,440 | 0 | 8 | 872 | 300 | 186 | 114 | 31 | 2 |
module T7050 where
data Foo a = Foo {-# UNPACK #-} !(Foo a)
| urbanslug/ghc | testsuite/tests/typecheck/should_compile/T7050.hs | bsd-3-clause | 62 | 0 | 9 | 15 | 22 | 13 | 9 | 2 | 0 |
{-# LANGUAGE RebindableSyntax #-}
module Main where
import Prelude
ifThenElse :: Int -> String -> String -> String
ifThenElse a b c = case a > 0 of
True -> b
False -> c
main :: IO ()
main = do
print $ if -5 then "this fails" else "this works"
print $ if 5 then "this works" else "this fails" | urbanslug/ghc | testsuite/tests/rebindable/rebindable10.hs | bsd-3-clause | 311 | 0 | 9 | 80 | 104 | 56 | 48 | 11 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
module ZoomHub.Types.ContentType
( ContentType (..),
)
where
import Data.Int (Int32)
import Squeal.PostgreSQL
( ... | zoomhub/zoomhub | src/ZoomHub/Types/ContentType.hs | mit | 1,457 | 0 | 9 | 274 | 375 | 211 | 164 | 54 | 1 |
import MCLList
import Test.QuickCheck
import Test.QuickCheck.Monadic
import Data.Maybe (isJust, fromJust)
import Foreign.C.Types
import Data.List (sort)
import ArbitraryInstances ()
genRandomList :: IO MCLListH
genRandomList = do
list <- newList
ints <- generate arbitrary
listInsertHelper list ints
return li... | hengchu/CDataStructureWithHaskellTesting | MCLListTest.hs | mit | 6,134 | 0 | 24 | 1,275 | 1,760 | 817 | 943 | 174 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
module Text.Inflections.DasherizeSpec
( spec )
where
import Test.Hspec
import Text.Inflections
#if !MIN_VERSION_base(4,8,0)
import Control.Applicative
#endif
spec :: Spec
spec = describe "dasherize" $
it "dasherizes a collection of words sen... | stackbuilders/inflections-hs | test/Text/Inflections/DasherizeSpec.hs | mit | 451 | 0 | 10 | 91 | 101 | 55 | 46 | 13 | 1 |
{-# LANGUAGE RankNTypes, GADTs #-}
-- | Types for the Haste.App protocol.
module Haste.App.Protocol.Types where
import Haste.Events (Recipient (..))
import Data.Int
import Haste.Concurrent (CIO)
type Nonce = Int32
data SomeRecipient where
SomeRecipient :: Recipient a => a -> SomeRecipient
instance Recipient SomeRe... | valderman/haste-app | src/Haste/App/Protocol/Types.hs | mit | 862 | 0 | 9 | 178 | 156 | 92 | 64 | 24 | 0 |
module Colors.GruvboxDark where
colorScheme = "gruvbox-dark"
colorBack = "#282828"
colorFore = "#ebdbb2"
-- Black
color00 = "#282828"
color08 = "#928374"
-- Red
color01 = "#cc241d"
color09 = "#fb4934"
-- Green
color02 = "#98971a"
color10 = "#b8bb26"
-- Yellow
color03 = "#d79921"
color11 = "#fabd2f"
-- Blue
color04 =... | phdenzel/dotfiles | .config/xmonad/lib/Colors/GruvboxDark.hs | mit | 554 | 0 | 4 | 87 | 119 | 75 | 44 | 22 | 1 |
module VarietyPack where
k :: (t, t1) -> t
k (x, y) = x
k1 :: (Integer, Integer)
k1 = k ((4, 1), 10)
k2 :: String
k2 = k ("three", (1 + 2))
k3 :: Integer
k3 = k (3, True)
-- k3 will return 3
f :: (a, b, c) -> (d, e, f) -> ((a, d), (c, f))
f (a, b, c) (d, e, f) = ((a,d), (c,f))
| mikegehard/haskellBookExercises | chapter7/VarietyPack.hs | mit | 285 | 0 | 8 | 78 | 205 | 126 | 79 | 11 | 1 |
{-----------------------------------------------------------------------------
reactive-banana
Example: Actuate and pause an event network
------------------------------------------------------------------------------}
import Control.Monad (when)
import Data.Maybe (isJust, fromJust)
import Data.List (nub)
import System... | sukhmel/experiments.haskell | banana-pause.hs | mit | 2,445 | 0 | 14 | 476 | 530 | 267 | 263 | 50 | 5 |
-- Matrix Module
--
-- This stores all the basics for the implementation
--
-- Jacob Buete 2014
{-# LANGUAGE FlexibleInstances, OverlappingInstances, IncoherentInstances #-}
module Matrices (
Matrix,
Row,
Column,
Vector,
singleton_matrix, -- :: Float -> Matrix
is_singleton, -- :: Matrix ... | JBuete/Haskell-Matrices | Matrices.hs | mit | 2,753 | 0 | 14 | 1,034 | 774 | 402 | 372 | 64 | 3 |
{-# LANGUAGE OverloadedStrings #-}
----------------------------------
-- | There are two ways in which to use this module.
--
-- The first is to use the renderer directly with the pandoc API.
-- A very simple
-- program to render the API documentation as a mediawiki document might look as
-- follows.
--
-- > import Tex... | rimmington/servant-pandoc | src/Servant/Docs/Pandoc.hs | mit | 6,341 | 0 | 26 | 2,071 | 1,594 | 856 | 738 | 111 | 10 |
module Stomp (
connect ,
disconnect,
send,
subscribe,
withSubscriptionDo,
subscription,
Listener (..)
)
where
import Network
import System.IO
import Control.Monad.State
import Control.Monad
import Control.Concurrent
data Command = CONNECT | DISCONNECT | SEND |
SUBSCRIBE | ... | akisystems/stomp-hs | src/Stomp.hs | mit | 2,795 | 0 | 13 | 752 | 1,043 | 539 | 504 | 77 | 2 |
module Unused.Cache.FindArgsFromIgnoredPaths
( findArgs
) where
import qualified Data.Char as C
import qualified Data.List as L
import qualified System.FilePath as FP
findArgs :: [String] -> [String]
findArgs = concatMap ignoreToFindArgs . validIgnoreOptions
wildcardPrefix :: String -> String
wildcardPrefix ... | joshuaclayton/unused | src/Unused/Cache/FindArgsFromIgnoredPaths.hs | mit | 1,326 | 0 | 9 | 257 | 462 | 256 | 206 | 35 | 4 |
{-# LANGUAGE ForeignFunctionInterface, UnliftedFFITypes, JavaScriptFFI,
UnboxedTuples, DeriveDataTypeable, GHCForeignImportPrim,
MagicHash, FlexibleInstances, BangPatterns, Rank2Types, CPP #-}
{- | Basic interop between Haskell and JavaScript.
The principal type here is 'JSVal', which is a lifted type th... | ghcjs/ghcjs-base | GHCJS/Foreign/Internal.hs | mit | 15,287 | 37 | 8 | 4,416 | 1,037 | 598 | 439 | 126 | 1 |
module Graphics.Math.GLVector
( GLVector (..)
, magnitude
, normalize
, cross
, sub
) where
import Text.Printf
-- | A three dimensional vector.
data GLVector a = GLVector !a !a !a
deriving Eq
instance PrintfArg a => Show (GLVector a) where
show (GLVector x y z) = printf ... | kosmoskatten/glmat | src/Graphics/Math/GLVector.hs | mit | 965 | 0 | 9 | 255 | 455 | 232 | 223 | 29 | 1 |
{-# LANGUAGE ApplicativeDo #-}
module Test.Smoke.App.Options
( parseOptions,
)
where
import Data.List (intercalate)
import Data.Vector (Vector)
import qualified Data.Vector as Vector
import Options.Applicative
import Test.Smoke
( Args (..),
Command (..),
CommandLine (..),
Mode (..),
Options (..)... | SamirTalwar/Smoke | src/app/Test/Smoke/App/Options.hs | mit | 2,910 | 0 | 16 | 634 | 757 | 399 | 358 | 80 | 2 |
module Main where
import Test.Hspec
import Lexer
import Parser
import Weeder
import Language.GoLite
import Language.GoLite.Pretty
import Language.GoLite.Syntax.SrcAnn
import Language.GoLite.Syntax.Typecheck
import Language.GoLite.Typecheck.Types
import Language.Vigil
import Control.Monad ( forM_ )
import System.D... | djeik/goto | test/Spec.hs | mit | 5,600 | 0 | 22 | 1,649 | 1,529 | 760 | 769 | 139 | 6 |
module Qy.Chat.Simple where
import Data.Monoid (mappend)
import Data.Text (Text)
import qualified Data.Text as T
import Control.Monad (forever)
import Data.Foldable (forM_)
import Control.Monad.Trans.Maybe
import Control.Monad.Reader hiding (forM_)
import Control.Exception (finally)
import Control.Concurrent.STM
impo... | realli/chatqy | src/Qy/Chat/Simple.hs | mit | 3,842 | 0 | 22 | 997 | 1,207 | 594 | 613 | -1 | -1 |
module Language.Parser.Expression where
import qualified Text.ParserCombinators.Parsec as P hiding (spaces)
import Control.Monad as M
import Text.Read (readMaybe)
import Language.Definition
import Language.Parser.Number as Number
symbol :: P.Parser Char
symbol = P.oneOf "!#$%&|*+-/:<=>?@^_~"
-- @todo: here now.. n... | ahmadnazir/scheme | 2_Parsing/Language/Parser/Expression.hs | mit | 3,034 | 0 | 14 | 1,057 | 845 | 417 | 428 | 75 | 3 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module User
(
-- * Types
User
, UserI... | robertjlooby/scotty-story-board | app/models/User.hs | mit | 3,467 | 1 | 15 | 890 | 998 | 544 | 454 | -1 | -1 |
#!/usr/bin/env runhaskell
module Main where
import Control.Monad
import Document.Document
import System.Directory
import System.Environment
--import System.Posix
import Text.Printf
import UnitB.PO
import UnitB.Syntax
import Utilities.Syntactic
check_one :: Machine -> IO [Char]
check_one m = do
(s,_,_) ... | literate-unitb/literate-unitb | Verify.hs | mit | 1,519 | 0 | 18 | 631 | 381 | 194 | 187 | 35 | 3 |
{-|
Module: Flaw.Graphics.Font.Harfbuzz
Description: Harfbuzz text shaping.
License: MIT
-}
module Flaw.Graphics.Font.Harfbuzz
( createHarfbuzzShaper
) where
import Control.Concurrent.STM
import Control.Exception
import Control.Monad.State.Strict
import Data.Int
import qualified Data.Text as T
import qualified Da... | quyse/flaw | flaw-font-fhi/Flaw/Graphics/Font/Harfbuzz.hs | mit | 5,561 | 0 | 29 | 989 | 1,491 | 758 | 733 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Handler.Arrange where
import Control.Monad (zipWithM)
import Data.Aeson (decode)
import qualified Data.Conduit.List as CL
import Import
getArrangeR :: TutorialNames -> Handler Html
getArrangeR tns = do
uid <- requireAuthId
Entity _ prof... | fpco/schoolofhaskell.com | src/Handler/Arrange.hs | mit | 6,299 | 0 | 26 | 2,994 | 1,401 | 668 | 733 | -1 | -1 |
{-
1. These lines of code are from a REPL session. Is y in scope for z?
Prelude> let x = 5
Prelude> let y = 7
Prelude> let z = x * y
-> Yes
2. These lines of code are from a REPL session. Is h in scope for function g?
Prelude> let f = 3
Prelude> let g = 6 * f + h
-> No
3. This code sample is from a source file. Is ... | fboyer/haskell-book | chapter3/chapter3.hs | mit | 6,347 | 0 | 11 | 1,360 | 289 | 144 | 145 | -1 | -1 |
{-# OPTIONS_GHC -Wall #-}
module LogAnalysis where
import Log
-- Exercise 1
parseMessage :: String -> LogMessage
parseMessage n = res $ words n
where res s =
case s of
("I":ts:m) -> LogMessage Info (read ts) (unwords m)
("W":ts:m) -> LogMessage Warning (read ts) (unwords m)
(... | harrisi/on-being-better | list-expansion/Haskell/cis194/spring13/02/LogAnalysis.hs | cc0-1.0 | 1,822 | 0 | 14 | 381 | 749 | 383 | 366 | 42 | 4 |
{-# OPTIONS_GHC -O3 -optc-O3 #-}
wheelList = [1, 7, 11, 13, 17, 19, 23, 29]
wheel n=map (m+) wheelList
where m=30*n
candidates =concatMap wheel [1..]
isPrime n=not.(any isDivicible)$ rootCandidates
where
rootCandidates =takeWhile (<=(ceiling.sqrt.fromIntegral$ n)) primes
isDivicible x= n`mod`x==0
prim... | kumar0ed/euler | 7.hs | gpl-2.0 | 415 | 1 | 10 | 69 | 197 | 109 | 88 | 10 | 1 |
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, DeriveDataTypeable
, FlexibleInstances, UndecidableInstances, ExistentialQuantification #-}
{- |
Module : ./Logic/Comorphism.hs
Description : interface and class for logic translations
Copyright : (c) Till Mossakowski, Uni Bremen 2002-2006
License ... | spechub/Hets | Logic/Comorphism.hs | gpl-2.0 | 21,374 | 0 | 25 | 5,994 | 4,468 | 2,292 | 2,176 | 397 | 5 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the Lice... | karamellpelle/grid | source/File/Binary.hs | gpl-3.0 | 2,319 | 0 | 5 | 472 | 92 | 72 | 20 | 12 | 0 |
module Kopia.Model.Order where
import System.Console.CmdArgs (Data, Typeable)
data Order
= Oldest | Newest
deriving (Data, Typeable, Show, Eq)
| Jefffrey/Kopia | src/Kopia/Model/Order.hs | gpl-3.0 | 153 | 0 | 6 | 28 | 50 | 30 | 20 | 5 | 0 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the Lice... | karamellpelle/grid | source/Game/Grid.hs | gpl-3.0 | 1,024 | 0 | 5 | 181 | 81 | 62 | 19 | 10 | 0 |
module Lamdu.Sugar.Convert.Expression
( convert
) where
import Control.Monad.Once (Typeable)
import Data.Property (Property(..))
import qualified Lamdu.Builtins.PrimVal as PrimVal
import qualified Lamdu.Calc.Term as V
import qualified Lamdu.Expr.IRef as ExprIRef
import qualified Lamdu.Sugar... | lamdu/lamdu | src/Lamdu/Sugar/Convert/Expression.hs | gpl-3.0 | 3,351 | 0 | 17 | 627 | 1,042 | 562 | 480 | -1 | -1 |
{-
Copyright 2012 liquid_amber
This file is part of PicasaDB.
PicasaDB 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 later version.
PicasaDB is distrib... | liquidamber/PicasaDB | thumbIndex.hs | gpl-3.0 | 1,395 | 0 | 12 | 237 | 180 | 113 | 67 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Data.DataSets.Cluster where
import Data.DataSets.Internal
$(readData "data/cluster/xclara.csv" ["Double", "Double"])
| kaizhang/dataset | src/Data/DataSets/Cluster.hs | gpl-3.0 | 160 | 0 | 8 | 16 | 32 | 19 | 13 | 4 | 0 |
{-# LANGUAGE FlexibleContexts, TypeFamilies, ScopedTypeVariables, ViewPatterns, FlexibleInstances, TypeSynonymInstances, MultiParamTypeClasses, TemplateHaskell #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# OPTIONS -Wall -fno-warn-orphans #-}
module Tetrahedron.INormalDisc where
import Tetrahedron.NormalDisc
impor... | DanielSchuessler/hstri | Tetrahedron/INormalDisc.hs | gpl-3.0 | 9,047 | 0 | 9 | 1,280 | 1,947 | 1,032 | 915 | 173 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-autoscaler/gen/Network/Google/Resource/Autoscaler/Autoscalers/Insert.hs | mpl-2.0 | 3,478 | 0 | 16 | 833 | 465 | 277 | 188 | 72 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreateJob.hs | mpl-2.0 | 6,859 | 0 | 10 | 1,557 | 888 | 538 | 350 | 93 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-storage-transfer/gen/Network/Google/Resource/StorageTransfer/TransferJobs/Get.hs | mpl-2.0 | 4,853 | 0 | 16 | 1,135 | 776 | 452 | 324 | 112 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-iam/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Delete.hs | mpl-2.0 | 6,376 | 0 | 15 | 1,316 | 719 | 430 | 289 | 98 | 1 |
{- |
Module: Main
Copyright: (C) 2004-2019 Peter Simons
License: GNU AFFERO GPL v3 or later
Maintainer: simons@cryp.to
Stability: experimental
Portability: non-portable
-}
{-# LANGUAGE ApplicativeDo #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUA... | peti/postmaster | src/Main.hs | agpl-3.0 | 4,966 | 0 | 17 | 1,082 | 1,144 | 610 | 534 | 87 | 3 |
-- Test suite ninja'd from Dave Herman's test suite for his Javascript parser.
module Test.JavascriptParser where
import Data.Generics
import Test.HUnit
import Text.ParserCombinators.Parsec(SourcePos,parse)
import Javascript.Syntax
import Javascript.Parser
import Javascript.PrettyPrint
import Javascript.Builder
import... | brownplt/ovid | src/Test/JavascriptParser.hs | bsd-2-clause | 7,430 | 0 | 21 | 2,394 | 2,340 | 1,185 | 1,155 | 168 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GADTs,ExistentialQuantification #-}
{-# LANGUAGE DeriveFunctor, DeriveGeneric, FlexibleInstances #-}
-- jup Persist needs quite some things
{-# LANGUAGE TemplateHaskell, QuasiQuotes, TypeFamilies, MultiParamTypeClasses, GeneralizedNewtypeDeriving #-}
module Database.Mode... | CarstenKoenig/YouVote | src/server/Database/Model.hs | bsd-3-clause | 987 | 0 | 7 | 216 | 70 | 45 | 25 | 9 | 0 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ScopedTypeVariables, RankNTypes #-}
{-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses, ConstraintKinds #-}
-- | This module declares the representation and basic classes of references.
-- Supplies primitive functions to create references.
--
--... | nboldi/references | Control/Reference/Representation.hs | bsd-3-clause | 5,937 | 0 | 16 | 1,932 | 1,194 | 666 | 528 | 59 | 1 |
--
-- A simplified MID file player, as an example application using System.MIDI.
-- You will need a GM (General MIDI) capable synth, or something like that (Windows has one built-in).
--
module Main where
import Data.Ord
import Data.List
import Control.Concurrent
import Control.Monad
import System.IO
import System.E... | hanshoglund/hamid | examples/playmidi.hs | bsd-3-clause | 3,213 | 0 | 22 | 895 | 1,227 | 602 | 625 | -1 | -1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.TextureStorage
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/TextureStorage.hs | bsd-3-clause | 782 | 0 | 4 | 94 | 55 | 44 | 11 | 7 | 0 |
-- -----------------------------------------------------------------------
-- ViewMat - A simple matrix visualizer
-- -----------------------------------------------------------------------
module Graphics.ViewMat where
import Data.Matrix as M
import Data.Map
import Codec.Picture
-- | Define the options used to disp... | hansroland/ViewMat | src/Graphics/ViewMat.hs | bsd-3-clause | 1,100 | 0 | 10 | 224 | 262 | 149 | 113 | 20 | 1 |
import Data.Complex --Operating on complex numbers
import Data.List --Operating on lists
import Graphics.Gloss --A graphics package
import System.Environment
import Graphics.Gloss.Data.Color (Color) --More graphics
import Graphics.Gloss.Data.Display (Display(InWindow))
import Graphics.Gloss.Interface.Pure.Animate (ani... | juliajansson/NonlinearDynamicsAndChaos | Plot.hs | bsd-3-clause | 8,370 | 18 | 13 | 1,516 | 3,065 | 1,586 | 1,479 | 173 | 2 |
-----------------------------------------------------------------------
-- Copyright: 2014, Jan Stolarek, Politechnika Łódzka --
-- --
-- License: See LICENSE file in root of the repo --
-- Repo address: https://github.... | jstolarek/dep-typed-wbl-heaps-hs | src/Basics/Sing.hs | bsd-3-clause | 1,051 | 0 | 5 | 349 | 32 | 27 | 5 | 4 | 0 |
module Language.Slambda.Types where
import Data.Map (Map)
import qualified Data.Map as Map
newtype Var = Var { varName :: String }
deriving (Eq, Ord, Show, Read)
type Arity = Int
data Prim = IOReturnP
| IOBindP
| IOReadP
| IOWriteP
| UnitPP
| IntegerPP... | pgavin/secdh | lib/Language/Slambda/Types.hs | bsd-3-clause | 1,342 | 0 | 9 | 567 | 359 | 222 | 137 | 52 | 0 |
{-# LANGUAGE
DataKinds
, DeriveGeneric
, OverloadedStrings
, TypeFamilies
, TypeOperators #-}
module Main where
import Control.Monad.Logger (runNoLoggingT, runStdoutLoggingT)
import Control.Monad.Reader
import Control.Monad.Trans.Either
import Data.Aeson
import qualified Data.ByteString.Char8 as B... | dataember/docker-control | src/Main.hs | bsd-3-clause | 1,729 | 0 | 17 | 402 | 433 | 247 | 186 | 54 | 1 |
{-# LANGUAGE
FlexibleInstances, FlexibleContexts,
GeneralizedNewtypeDeriving
#-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Text.SExpr.Convert.Instances where
import Text.SExpr.Type
import Text.SExpr.Convert.Classes
import Text.SExpr.Parse
import Text.SExpr.Print
import Control.Applicative ((<$>)... | mokus0/s-expression | src/Text/SExpr/Convert/Instances.hs | bsd-3-clause | 3,526 | 0 | 9 | 716 | 816 | 458 | 358 | 68 | 0 |
{-# LANGUAGE CPP #-}
module Data.CSV.Conduit.Monoid
( (<>)
) where
import Data.Monoid
#if !MIN_VERSION_base(4,5,0)
infixr 6 <>
-- | An infix synonym for 'mappend'.
(<>) :: Monoid m => m -> m -> m
(<>) = mappend
{-# INLINE (<>) #-}
#endif
| mohsen3/csv-conduit | src/Data/CSV/Conduit/Monoid.hs | bsd-3-clause | 259 | 0 | 7 | 63 | 59 | 39 | 20 | 8 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Hooks.WorkspaceHistory
-- Description : Keep track of workspace viewing order.
-- Copyright : (c) 2013 Dmitri Iouchtchenko
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Dmitri Iouchtchenko <... | xmonad/xmonad-contrib | XMonad/Hooks/WorkspaceHistory.hs | bsd-3-clause | 5,412 | 0 | 13 | 971 | 965 | 545 | 420 | 62 | 3 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleInstances #-}
module Database.Algebra.Dag.Common where
import qualified Data.IntMap as IM
import qualified Data.Map as M
import GHC.Generics (Generic)
import Data.Aeson (FromJSON, ToJSON)
-- | Identifiers for D... | ulricha/algebra-dag | src/Database/Algebra/Dag/Common.hs | bsd-3-clause | 1,916 | 0 | 13 | 557 | 770 | 411 | 359 | 35 | 2 |
{-# LANGUAGE CPP #-}
{- Copyright (c) 2008-2009 David Roundy
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of co... | droundy/franchise | Distribution/Franchise/Haskell.hs | bsd-3-clause | 13,485 | 0 | 16 | 3,645 | 2,668 | 1,417 | 1,251 | 198 | 4 |
{-# LANGUAGE TemplateHaskell #-}
module RBPCP.Internal.Init
( appConf
, module RBPCP.Handler.Internal.Types
)
where
import RBPCP.Handler.Internal.Types
import MyPrelude
import PaymentChannel.Types
import Servant
import qualified Servant.Client as SC
import qualified RBPCP.Internal.Manager as Man
im... | runeksvendsen/rbpcp-handler | src/RBPCP/Internal/Init.hs | bsd-3-clause | 2,415 | 0 | 13 | 554 | 317 | 181 | 136 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Dependency solver
--
-- This is a relatively simple problem due to the choice of the
-- Minimum Package Version algorithm. In fact, the only failure mode
-- is referencing an unknown package or revision.
module Futhark.Pkg.Solve
( solveDeps,
... | diku-dk/futhark | src/Futhark/Pkg/Solve.hs | isc | 4,173 | 0 | 18 | 1,022 | 1,076 | 547 | 529 | 84 | 2 |
test [] = 0
test (x:xs) = "hello"
| roberth/uu-helium | test/typeerrors/Heuristics/UnifierFunctionBinding2.hs | gpl-3.0 | 39 | 0 | 7 | 13 | 26 | 13 | 13 | 2 | 1 |
-- | the public API for Instagram access
module Instagram
(
-- generic types and functions
InstagramT
,runInstagramT
,runResourceInIs
,IGException
-- authentication
,RedirectUri
,getUserAccessTokenURL1
,getUserAccessTokenURL2
,Credentials(..)
,OAuthToken(..)
,AccessToken(..) -- we open this t... | potomak/ig | src/Instagram.hs | bsd-3-clause | 2,513 | 0 | 5 | 463 | 493 | 345 | 148 | 100 | 0 |
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Compiler
-- Copyright : Isaac Jones 2003-2004
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- This should be a ... | x-y-z/cabal | Cabal/Distribution/Simple/Compiler.hs | bsd-3-clause | 12,682 | 0 | 15 | 2,857 | 2,024 | 1,143 | 881 | 182 | 4 |
-- (c) 2007 Andy Gill
module HpcFlags where
import System.Console.GetOpt
import qualified Data.Set as Set
import Data.Char
import Trace.Hpc.Tix
import Trace.Hpc.Mix
import System.Exit
import System.FilePath
data Flags = Flags
{ outputFile :: String
, includeMods :: Set.Set String
, excludeMods... | ezyang/ghc | utils/hpc/HpcFlags.hs | bsd-3-clause | 9,606 | 0 | 13 | 3,325 | 2,427 | 1,350 | 1,077 | 182 | 4 |
{-# LANGUAGE ExtendedDefaultRules #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
module T12924 where
import GHC.TypeLits
data A (b :: [Symbol]) = A deriving Show
-- Test that ExtendedDefaultRules defaults multiparameter typecl... | ezyang/ghc | testsuite/tests/typecheck/should_compile/T12924.hs | bsd-3-clause | 623 | 0 | 9 | 122 | 162 | 90 | 72 | 16 | 1 |
{-# LANGUAGE DeriveGeneric #-}
module T7878A where
import T7878B
import GHC.Generics
data Test deriving Generic
| urbanslug/ghc | testsuite/tests/generics/T7878A.hs | bsd-3-clause | 114 | 0 | 4 | 17 | 19 | 13 | 6 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
module Language.PP.Eval where
import Control.Monad
import Control.Monad.Free
import Language.PP.Types
withP :: Monad m => P m a -> PP m (Probability, a)
withP (P m) = liftF $ P (f <$!> m)
where f !x = (fst x, x)
-- | Declare an observation with weight 'p'
observe :: Monad m => Double... | statusfailed/pp | Language/PP/Eval.hs | mit | 779 | 0 | 12 | 188 | 350 | 181 | 169 | 17 | 2 |
module Parser (
parseExpression
) where
import qualified Data.Set as Set
import Data.Set (Set)
import qualified RAExpr.RASet as RASet
import RAExpr.RASet (RASet)
import qualified RAExpr.Row as Row
import RAExpr.Row (Row)
import qualified RAExpr.Expression as Expression
import RAExpr.Expression (Expression)
import ... | cameronbwhite/RelationalAlgebra | src/Parser.hs | mit | 3,255 | 0 | 16 | 612 | 978 | 503 | 475 | 85 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.