code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module YX.Type.ConfigFile
(
-- * Executable
ExecutableName
, Executable(..)
-- * Environment
, EnvironmentName
, Environment(..)
-- * ProjectConfig
... | trskop/yx | src/YX/Type/ConfigFile.hs | bsd-3-clause | 5,033 | 0 | 17 | 1,134 | 1,254 | 720 | 534 | 114 | 3 |
module Syntax where
import Data.Char(chr, ord)
import Data.List(find, nub, union, intersect, (\\))
import SCC
type Id = String
type Alt = ([Pat], Rhs)
type Expl = (Id, Scheme, [Alt])
type Impl = (Id, [Alt])
type BindGroup = ([Expl], [[Impl]])
type Program = [BindGroup]
data Kind = Star | Kfun Kind Kind
... | irori/hs2lazy | Syntax.hs | bsd-3-clause | 11,654 | 31 | 17 | 3,759 | 5,055 | 2,671 | 2,384 | 308 | 2 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUA... | reflex-frp/reflex-dom | reflex-dom-core/src/Reflex/Dom/Builder/Static.hs | bsd-3-clause | 19,245 | 0 | 22 | 3,720 | 5,391 | 2,775 | 2,616 | -1 | -1 |
-- |
-- Module : Control.Monad.Trans.Loop
-- Copyright : (c) Joseph Adams 2012
-- License : BSD3
-- Maintainer : joeyadams3.14159@gmail.com
--
{-# LANGUAGE Rank2Types #-}
-- Needed for the MonadBase instance
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Undecid... | joeyadams/haskell-control-monad-loop | Control/Monad/Trans/Loop.hs | bsd-3-clause | 6,317 | 0 | 13 | 1,684 | 1,442 | 787 | 655 | 87 | 2 |
{-# LANGUAGE TypeOperators #-}
module TypeOperatorOperator where
data (:><:) a b = (:><:) a b
f :: a :><: b -> b :><: a
f (a :><: b) = b :><: a
| phischu/fragnix | tests/quick/TypeOperatorOperator/TypeOperatorOperator.hs | bsd-3-clause | 146 | 10 | 7 | 34 | 59 | 35 | 24 | 5 | 1 |
-- |
-- Module : Core.Primitive
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : portable
--
-- Different collections (list, vector, string, ..) unified under 1 API.
-- an API to rules them all, and in the darkness bind them.
--
{-# LANG... | vincenthz/hs-xyz-test | Core/Primitive.hs | bsd-3-clause | 512 | 0 | 5 | 95 | 46 | 35 | 11 | 7 | 0 |
module PixeloSolver.Game.Nonogram(
PixeloTile (..)
, PixeloTileFill(..)
, PixeloGame(..)
, emptyGameBoard
, solvePixeloGame
, generateSolutions
) where
import Control.Arrow
import Control.Monad
import Data.Array
import PixeloSolver.Data.Array.Extra
-- Data and Show instance definitions
-- | Single til... | gregorias/pixelosolver | src/PixeloSolver/Game/Nonogram.hs | bsd-3-clause | 9,090 | 0 | 19 | 1,932 | 2,798 | 1,495 | 1,303 | 215 | 5 |
{- |
Module : SAWScript.Crucible.LLVM.X86
Description : Implements a SAWScript primitive for verifying x86_64 functions
against LLVM specifications.
Maintainer : sbreese
Stability : provisional
-}
{-# Language OverloadedStrings #-}
{-# Language FlexibleContexts #-}
{-# Language ScopedTypeVariable... | GaloisInc/saw-script | src/SAWScript/Crucible/LLVM/X86.hs | bsd-3-clause | 45,464 | 0 | 36 | 10,129 | 12,220 | 6,151 | 6,069 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Kmip.ServerSpec where
import Test.Hspec
import Test.Hspec.Wai
import Kmip10Data
import qualified Kmip.Server
import qualified Web.Scotty as S
import Data.ByteString.Lazy (fromStrict)
spec :: Spec
spec = with (S.scottyApp K... | nymacro/hs-kmip | tests/Kmip/ServerSpec.hs | bsd-3-clause | 697 | 0 | 18 | 197 | 176 | 95 | 81 | 17 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Desugaring exporessions.
-}
{-# LANGUAGE CPP #-}
module DsExpr ( dsExpr, dsLExpr, dsLocalBinds, dsValBinds, dsLit ) where
#include "HsVersions.h"
import Match
import MatchLit
import DsBinds
import DsGRHSs
import DsList... | siddhanathan/ghc | compiler/deSugar/DsExpr.hs | bsd-3-clause | 39,165 | 43 | 25 | 11,931 | 8,302 | 4,222 | 4,080 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Script1 (
script
) where
import qualified Data.Text.Lazy as L
import qualified Data.Version as V
import Marvin.Handler
import Marvin.Prelude
import qualified Paths_marvin_integration as P
script :: (IsAdapter a, SupportsFiles ... | JustusAdam/marvin | test/integration/old-api/Script1.hs | bsd-3-clause | 1,476 | 0 | 14 | 463 | 400 | 180 | 220 | 42 | 1 |
{-
Suggest removal of unnecessary extensions
i.e. They have {-# LANGUAGE RecursiveDo #-} but no mdo keywords
<TEST>
{-# LANGUAGE Arrows #-} \
f = id --
{-# LANGUAGE TotallyUnknown #-} \
f = id
{-# LANGUAGE Foo, ParallelListComp, ImplicitParams #-} \
f = [(a,c) | a <- b | c <- d] -- {-# LANGUAGE Foo, ParallelLis... | bergmark/hlint | src/Hint/Extensions.hs | bsd-3-clause | 7,115 | 0 | 13 | 1,520 | 1,706 | 868 | 838 | 97 | 13 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Numeral.AF.Tests
( tests
) where
import Data.String
import Prelude
import Test.Tasty
import ... | facebookincubator/duckling | tests/Duckling/Numeral/AF/Tests.hs | bsd-3-clause | 505 | 0 | 9 | 79 | 79 | 50 | 29 | 11 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Configure
-- Copyright : Isaac Jones 2003-2005
-- License : BSD3
--
-- Maintainer : ... | plumlife/cabal | Cabal/Distribution/Simple/Configure.hs | bsd-3-clause | 82,365 | 1 | 26 | 26,288 | 14,167 | 7,473 | 6,694 | 1,204 | 15 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
module Category.TypedGraph.FinalPullbackComplementSpec where
import Test.Hspec
import Abstract.Category
import Abstract.Category.Adhesive
import Abstract.Rewriting.DPO
import Category.TypedGraph ... | rodrigo-machado/verigraph | tests/Category/TypedGraph/FinalPullbackComplementSpec.hs | gpl-3.0 | 2,559 | 0 | 14 | 633 | 835 | 442 | 393 | 69 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-cloudsearch-domains/gen/Network/AWS/CloudSearchDomains/Suggest.hs | mpl-2.0 | 5,316 | 0 | 11 | 1,169 | 679 | 413 | 266 | 75 | 1 |
{-# LANGUAGE ScopedTypeVariables #-} -- We will explain why we need this later
module GettingStarted where
runTests = do
putStrLn "something along the lines of: quickCheck prop_SquareRootOfNSquaredEqualsN goes here"
| qwaneu/property-based-tutorial | exercises/hs/src/GettingStarted.hs | bsd-3-clause | 220 | 0 | 7 | 33 | 17 | 10 | 7 | 4 | 1 |
module DeleteWebhook where
import Github.Repos.Webhooks
import qualified Github.Auth as Auth
main :: IO ()
main = do
let auth = Auth.OAuth "oauthtoken"
resp <- deleteRepoWebhook' auth "repoOwner" "repoName" 123
case resp of
(Left err) -> putStrLn $ "Error: " ++ (show err)
(Right stat) -> putStrLn $ "Res... | jwiegley/github | samples/Repos/Webhooks/DeleteWebhook.hs | bsd-3-clause | 340 | 0 | 12 | 68 | 122 | 63 | 59 | 10 | 2 |
module Test.SwiftNav.SBP.Piksi
( tests
) where
import BasicPrelude
import SwiftNav.SBP.Piksi
import Test.SwiftNav.SBP.Utils
import Test.Tasty
import Test.Tasty.HUnit
testParse :: TestTree
testParse =
testGroup "Package tests"
[ testCase "Parsing tests" $ do
let filepath = "../spec/tests/yaml/swiftna... | mookerji/libsbp | haskell/test/Test/SwiftNav/SBP/Piksi.hs | lgpl-3.0 | 540 | 0 | 12 | 120 | 117 | 65 | 52 | 19 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
-- | A wrapper around hoogle.
module Stack.Hoogle
( hoogleCmd
) where
import Stack.Prelude
import qualified Data.ByteString.Lazy.Char8 as BL8
import D... | anton-dessiatov/stack | src/Stack/Hoogle.hs | bsd-3-clause | 8,868 | 0 | 28 | 4,060 | 1,567 | 785 | 782 | 183 | 12 |
module Foo where
{-@ LIQUID "--totality" @-}
data F a b = F {fx :: a, fy :: b} | G {fx :: a}
{-@ data F a b = F {fx :: a, fy :: b} | G {fx :: a} @-}
{-@ measure isF :: F a b -> Prop
isF (F x y) = true
isF (G x) = false
@-}
-- Record's selector type is defaulted to true as imported
{-@ fy :: {v:F a b |... | mightymoose/liquidhaskell | tests/pos/RecordSelectorError.hs | bsd-3-clause | 407 | 0 | 8 | 127 | 63 | 41 | 22 | 4 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Lamdu.GUI.ExpressionEdit.HoleEdit.Open.EventMap
( make, blockDownEvents, disallowChars
) where
import Control.Applicative (Applicative(..), (<$), liftA2)
import Control.Lens.Operators
import Control.MonadA (MonadA)
import Data.List.Utils (nonEmptyAll)
import Data.Monoid (M... | clawplach/lamdu | Lamdu/GUI/ExpressionEdit/HoleEdit/Open/EventMap.hs | gpl-3.0 | 7,660 | 0 | 17 | 1,337 | 2,081 | 1,117 | 964 | -1 | -1 |
-----------------------------------------------------------------------------
--
-- Module : Connections.Tree
-- Copyright :
-- License : AllRightsReserved
--
-- Maintainer :
-- Stability :
-- Portability :
--
-- |
--
-----------------------------------------------------------------------------
module ... | uvNikita/TopologyCalc | src/Connections/Tree.hs | mit | 1,605 | 0 | 10 | 408 | 519 | 292 | 227 | 34 | 1 |
-- |
-- Module: Math.NumberTheory.Moduli.Singleton
-- Copyright: (c) 2019 Andrew Lelechenko
-- Licence: MIT
-- Maintainer: Andrew Lelechenko <andrew.lelechenko@gmail.com>
--
-- Singleton data types.
--
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric ... | Bodigrim/arithmoi | Math/NumberTheory/Moduli/Singleton.hs | mit | 10,232 | 0 | 14 | 2,136 | 2,610 | 1,411 | 1,199 | 188 | 7 |
module Graphics.Rendering.WebGL.Raw (
module Graphics.Rendering.WebGL.Types,
module Graphics.Rendering.WebGL.Raw
) where
import GHCJS.Types
import Data.Word
import Data.Int
import GHCJS.TypedArray (TypedArray, ArrayBufferView)
import Graphics.Rendering.WebGL.Types
-- | [WebGLHandlesContextLoss] WebGLCon... | isomorphism/webgl | src/Graphics/Rendering/WebGL/Raw.hs | mit | 36,382 | 611 | 10 | 4,817 | 5,207 | 2,698 | 2,509 | 315 | 0 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.EventSource
(newEventSource, close, pattern CONNECTING, pattern OPEN,
pattern CLOSED, getUrl, getWithCred... | ghcjs/jsaddle-dom | src/JSDOM/Generated/EventSource.hs | mit | 3,253 | 0 | 12 | 419 | 726 | 424 | 302 | 47 | 1 |
#!/usr/bin/env stack
{- stack
--resolver lts-9.14
--install-ghc runghc
--package base
--package protolude
--package text
--package aeson
--package yaml
--package unordered-containers
--package case-insensitive
--package regex-compat
--
-hide-all-packages
-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE N... | futtetennista/scripts | src/ServerlessValidator.hs | mit | 19,164 | 0 | 25 | 5,569 | 4,531 | 2,398 | 2,133 | 509 | 6 |
f x = g
where g :: Int
g = 0 | Pnom/haskell-ast-pretty | Test/examples/IndentedWhere.hs | mit | 39 | 0 | 6 | 21 | 21 | 11 | 10 | 3 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Neuro.Show.Tikz
-- Copyright :
-- License : MIT
--
-- Maintainer : -
-- Stability :
-- Portability :
--
-- |
--
{-# LANGUAGE TypeOperators #-}
module Neuro.Show.Tikz (
NShow(..)
, Tikz(..)
, RenderConfig... | fehu/hneuro | src/Neuro/Show/Tikz.hs | mit | 5,057 | 0 | 12 | 2,072 | 1,117 | 583 | 534 | -1 | -1 |
data Term a where
Lit :: Int -> Term Int
Pair :: Term a -> Term b -> Term (a,b)
{- Phantom Types -}
data Expr a = Concat (Expr String) (Expr String) | Add (Expr Int) (Expr Int) | Val a deriving (Show)
eval :: Expr Int -> Int
eval (Val i) = i
eval (Add e1 e2) = (eval e1) + (eval e2)
evalS :: Expr String -> Strin... | nlim/haskell-playground | src/Gadts.hs | mit | 635 | 0 | 9 | 211 | 352 | 181 | 171 | -1 | -1 |
{-# LANGUAGE LambdaCase #-}
module Oden.Imports
( UnsupportedMessage
, UnsupportedTypesWarning(..)
, PackageImportError(..)
, ForeignImporter
, ImportResolutionEnvironment
, resolveImports
) where
import Oden.Core.Package
import Oden.Core.Untyped
import Oden.Core.Typed
impor... | oden-lang/oden | src/Oden/Imports.hs | mit | 3,193 | 0 | 16 | 831 | 692 | 374 | 318 | 72 | 2 |
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
module Language.Clafer.Front.PrintClafer where
-- pretty-printer generated by the BNF converter
import Language.Clafer.Front.AbsClafer
import Data.Char
import Prelude hiding (exp, init)
-- the top-level printing method
printTree :: Print a => a -> String
printTree = ... | juodaspaulius/clafer | src/Language/Clafer/Front/PrintClafer.hs | mit | 13,127 | 0 | 16 | 3,048 | 6,824 | 3,329 | 3,495 | 231 | 12 |
{-
DO NOT EDIT: this file is generated/edited by `pet sync`.
-}
module ProjectEuler.AllProblems
( allProblems
) where
import qualified Data.IntMap.Strict as IM
import ProjectEuler.Types
import ProjectEuler.Problem1
import ProjectEuler.Problem2
import ProjectEuler.Problem3
import ProjectEuler.Problem4
import P... | Javran/Project-Euler | src/ProjectEuler/AllProblems.hs | mit | 11,492 | 0 | 8 | 1,418 | 2,630 | 1,700 | 930 | 311 | 1 |
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module ScriptQueries where
import Prelude hiding (Word)
import Control.Lens (over, _1, _2, _Left, toListOf, view, _Just)
import Data.Map (Map)
import qualified Data.Map as Map
import qualified Data.List as List
import Grammar.IO.QueryStage
import Grammar.Common.List
i... | ancientlanguage/haskell-analysis | greek-script/app/ScriptQueries.hs | mit | 10,267 | 0 | 19 | 1,693 | 3,495 | 1,900 | 1,595 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module FacebookRSS.Facebook (fetchFeed) where
import Data.Maybe
import Data.Aeson
import Data.Facebook.Feed
import Network.HTTP.Client
import Network.HTTP.Client.TLS (tlsManagerSettings)
fetchFeed :: String -> String -> IO (Maybe Feed)
fetchFeed token id =
newManager tlsManage... | poying/facebook-rss | FacebookRSS/Facebook.hs | mit | 671 | 0 | 9 | 105 | 159 | 86 | 73 | 19 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Web.FreeAgent.Util where
import Control.Applicative
import Control.Error.Util
import Control.Monad ... | perurbis/hfreeagent | src/Web/FreeAgent/Util.hs | mit | 3,360 | 0 | 13 | 751 | 918 | 484 | 434 | 69 | 1 |
module Euler.Problem7Spec ( spec ) where
import Helper
import Euler.Problem7
spec :: Spec
spec = do
describe "primeNumber" $ do
it "2nd" $ do
(primeNumber 2 :: Int) `shouldBe` (3 :: Int)
it "3rd" $ do
(primeNumber 3 :: Int) `shouldBe` (5 :: Int)
it "6th" $ do
(primeNumber 6 :: Int) `... | slogsdon/haskell-exercises | pe/testsuite/specs/Euler/Problem7Spec.hs | mit | 341 | 0 | 15 | 91 | 141 | 76 | 65 | 12 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-|
Module : PostgREST.Auth
Description : PostgREST authorization functions.
This module provides functions to deal with the JWT authorization (http://jwt.io).
It also can be used to define other authorization functions,
in the future Oauth, LDAP and similar integrations can be c... | Skyfold/postgrest | src/PostgREST/Auth.hs | mit | 2,691 | 0 | 14 | 685 | 525 | 283 | 242 | -1 | -1 |
module SudokuHelper where
prettyPrint l a [] = ""
prettyPrint l a (x:xs)
| a == l = "\n"++(show x)++" " ++ (prettyPrint l 1 xs)
| otherwise = (show x)++" "++(prettyPrint l (a+1) xs)
pretty xs = prettyPrint 9 0 xs
sEasy = [3,0,6,5,0,8,4,0,0
,5,2,0,0,0,0,0,0,0
,0,8,7,0,0,0,0,3,1
,0,0... | ztuowen/sudoku | SudokuHelper.hs | mit | 729 | 0 | 10 | 206 | 638 | 403 | 235 | 24 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html
module Stratosphere.ResourceProperties.ApiGatewayDeploymentCanarySet... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/ApiGatewayDeploymentCanarySetting.hs | mit | 2,968 | 0 | 12 | 251 | 343 | 196 | 147 | 32 | 1 |
module Main (main) where
import Nauva.Client
import Nauva.Product.Template.App
main :: IO ()
main = runClient app
| wereHamster/nauva | product/template/app/native/Main.hs | mit | 117 | 0 | 6 | 19 | 39 | 23 | 16 | 5 | 1 |
--
-- riot/Riot/UI.hs
--
-- Copyright (c) Tuomo Valkonen 2004-2005.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later versi... | opqdonut/riot | Riot/UI.hs | gpl-2.0 | 21,294 | 0 | 13 | 5,900 | 7,290 | 3,688 | 3,602 | 552 | 6 |
{-# LANGUAGE OverloadedStrings #-}
module RainbowMode
( rainbowParenMode
) where
import Data.Foldable (asum)
import Data.Maybe
import Yi hiding (super)
import Yi.Mode.Common (fundamentalMode)
import Yi.Modes
import Yi.Lexer.Alex
import Yi.Syntax
import Text.Regex.Applicative
data Paren
= Open !Point
... | ethercrow/yi-config | modules/RainbowMode.hs | gpl-2.0 | 2,438 | 0 | 14 | 705 | 850 | 473 | 377 | 76 | 4 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module MirakelBot.Handlers where
import Control.Applicative
import Control.Concurrent
import Control.Concurrent.MVar
import Control.Lens
import ... | azapps/mirakelbot | src/MirakelBot/Handlers.hs | gpl-3.0 | 2,962 | 0 | 12 | 687 | 939 | 462 | 477 | 72 | 2 |
{- $Id$
Rational zeros of a function of three variables.
Solution to http://projecteuler.net/index.php?section=problems&id=180
Copyright 2007 Victor Engmark
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 Foun... | l0b0/Project-Euler | 180 - Golden triple.hs | gpl-3.0 | 1,867 | 0 | 15 | 487 | 587 | 304 | 283 | 29 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module JSBoiler.Eval.Property
( getPropertyValue
, setPropertyValue
, makeObject
) where
import Control.Monad (void)
import Control.Monad.IO.Class (liftIO)
import Data.IORef
import Data.Text (Text, append)
import qualified Data.HashMap.Strict as M
import JSBoiler.Typ... | cuklev/JSBoiler | src/JSBoiler/Eval/Property.hs | gpl-3.0 | 2,748 | 0 | 21 | 898 | 736 | 383 | 353 | 59 | 4 |
module FQuoter.Templating.Display
( readTree )
where
import Data.Maybe
import Control.Applicative
import Data.Monoid hiding (All)
import Data.Char
import FQuoter.Quote
import FQuoter.Templating.TemplateTypes
type Template = [TokenNode]
-- Given a tree template to display a quote and its context,
-- evaluate this tr... | Raveline/FQuoter | lib/FQuoter/Templating/Display.hs | gpl-3.0 | 3,692 | 0 | 11 | 694 | 1,148 | 580 | 568 | 67 | 1 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the Lice... | karamellpelle/grid | source/Game/Values/Fancy.hs | gpl-3.0 | 6,144 | 0 | 5 | 879 | 668 | 407 | 261 | 136 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-storage/gen/Network/Google/Resource/Storage/BucketAccessControls/Get.hs | mpl-2.0 | 3,551 | 0 | 14 | 785 | 386 | 233 | 153 | 64 | 1 |
module System.IO.Extra where
import Control.Exception.Base
import Data.Functor
import System.IO
import System.IO.Error
tryReadFile :: FilePath -> IO (Either IOError String)
tryReadFile filename = tryIOError $ readFile filename
maybeReadFile :: FilePath -> IO (Maybe String)
maybeReadFile filename = do
r <- tryIO... | gelisam/submake | src/System/IO/Extra.hs | unlicense | 442 | 0 | 11 | 84 | 141 | 71 | 70 | 13 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
module Spark.IO.JsonSpec where
import Test.Hspec
import Data.Aeson(encode)
import qualified Data.ByteString.Lazy
-- import System.IO
import Spark.Core.Context
import Spark.Core.Types
import Spark.Core.Row
import Spark.Core.Functions
import Spa... | krapsh/kraps-haskell | test-integration/Spark/IO/JsonSpec.hs | apache-2.0 | 1,257 | 0 | 18 | 268 | 398 | 201 | 197 | 36 | 1 |
{- Copyright 2014 David Farrell <shokku.ra@gmail.com>
- 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... | shockkolate/lambdircd | plugins.old/Ping.hs | apache-2.0 | 1,386 | 0 | 20 | 264 | 275 | 149 | 126 | 18 | 1 |
-- Copyright 2018-2021 Google LLC
--
-- 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 t... | google/hs-ten | ten/src/Data/Ten/Functor.hs | apache-2.0 | 3,204 | 0 | 11 | 664 | 846 | 473 | 373 | -1 | -1 |
{-# LANGUAGE TypeFamilies #-}
{-|
Module : Marvin.API.EvaluationMetric
Description : Metrics used for evaluation.
-}
module Marvin.API.EvaluationMetrics (
Accuracy (..)
, MeanSquaredError (..)
, RootMeanSquaredError (..)
, Precision (..)
, Recall (..)
) where
import Marvin.API.Meta.Evaluator
import Marv... | gaborhermann/marvin | src/Marvin/API/EvaluationMetrics.hs | apache-2.0 | 3,327 | 0 | 11 | 596 | 857 | 474 | 383 | 78 | 2 |
-- | Provides the basic `SGD` pipe type.
module Numeric.SGD.Type
( SGD
) where
import Pipes as P
-- | SGD is a pipe which, given the initial parameter values, consumes training
-- elements of type @e@ and outputs the subsequently calculated parameter sets
-- of type @p@.
type SGD m e p = p -> P.Pipe e p m ()
| kawu/sgd | src/Numeric/SGD/Type.hs | bsd-2-clause | 320 | 0 | 7 | 71 | 47 | 31 | 16 | 4 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
module Guide.Api.Methods
( getCategories
, getCategory
)
where
import Imports
import Servant
import Data.Acid as Acid
import Guide.Types
import Guide.State
import Guide.Utils (Uid)
import Guide.Api.Types (ApiError(... | aelve/hslibs | src/Guide/Api/Methods.hs | bsd-3-clause | 798 | 0 | 11 | 130 | 224 | 122 | 102 | -1 | -1 |
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.InstancedArrays
-- Copyright : (c) Sven Panne 2013
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- S... | mfpi/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/InstancedArrays.hs | bsd-3-clause | 1,206 | 0 | 11 | 131 | 114 | 77 | 37 | -1 | -1 |
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TemplateHaskell #-}
module Toy.Exp.Data where
import Control.Lens (makeLenses, makePrisms)
import Data.String (IsString (..))
import qualified Data.Vector as V
import Formatting (formatToString, shown, (%))
import qualified Prelud... | Martoon-00/toy-compiler | src/Toy/Exp/Data.hs | bsd-3-clause | 1,810 | 0 | 12 | 513 | 467 | 266 | 201 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies, FlexibleContexts, Rank2Types, CPP #-}
#if __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE ConstraintKinds #-}
#else
{-# LANGUAGE FlexibleInstances, UndecidableInstances #-}
#endif
{-# OPTIONS_HADDOCK hide #-}
module Data.PhaseChange.Internal where
import Control.Monad
impor... | glaebhoerl/phasechange | Data/PhaseChange/Internal.hs | bsd-3-clause | 10,970 | 0 | 11 | 2,363 | 2,407 | 1,273 | 1,134 | -1 | -1 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.Spiral
-- Copyright : (c) Joe Thornber <joe.thornber@gmail.com>
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Joe Thornber <j... | jthornber/XMonadContrib | XMonad/Layout/Spiral.hs | bsd-3-clause | 4,953 | 0 | 14 | 1,348 | 1,399 | 759 | 640 | 63 | 4 |
{-# LANGUAGE FlexibleContexts #-}
module SandBox.Text.CSS.Parsec.Combinator
( allInAnyOrder
, oneOrMoreInAnyOrder
, countRange
, countMax
, countMin
, manyUpTo
) where
import Text.Parsec ((<|>), Stream, ParsecT, many, try)
allInAnyOrder :: Stream s m t =>
[ParsecT s... | hnakamur/haskell-sandbox | sandbox-css/SandBox/Text/CSS/Parsec/Combinator.hs | bsd-3-clause | 2,494 | 0 | 17 | 1,038 | 1,205 | 615 | 590 | 58 | 3 |
-----------------------------------------------------------------------------
-- |
-- Module : Main
-- Copyright : (C) 2013-2014 Edward Kmett
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : provisional
-- Portability : portable
--
-- This ... | chaosmasttter/hexploration | tests/CodeTest.hs | bsd-3-clause | 688 | 0 | 10 | 114 | 93 | 55 | 38 | 10 | 1 |
module Numeric.Optimisation.Bracket
( isBracket
, findBracket
) where
import Control.Arrow
import Control.Monad
isBracket :: (Num a, Ord a, Ord b) => ((a, b), (a, b), (a, b)) -> Bool
isBracket ((x1, f1), (x2, f2), (x3, f3)) =
((x2 - x1) * (x3 - x2) > 0 && f2 <= f1 && f2 <= f3)
{-# SPECIALIZE isBracket... | alang9/unsmooth-opt | src/Numeric/Optimisation/Bracket.hs | bsd-3-clause | 2,043 | 0 | 17 | 658 | 1,141 | 643 | 498 | 38 | 1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Freeze
-- Copyright : (c) David Himmelstrup 2005
-- Duncan Coutts 2011
-- License : BSD-like
--
-- Maintainer : cabal-devel@gmail.com
-- Stability ... | gbaz/cabal | cabal-install/Distribution/Client/Freeze.hs | bsd-3-clause | 9,667 | 0 | 20 | 2,490 | 1,716 | 921 | 795 | 181 | 3 |
module UI where
import UI.PlaybackStatus
import Graphics.Vty
import Graphics.Vty.Widgets.All
import Data.Monoid (mempty)
type Choose = IO ()
context :: RenderContext
context = defaultContext
{ focusAttr = white `on` blue
}
-- | The status box consists of a single progress bar widget, whose text
-- contents ar... | elliottt/din | src/UI.hs | bsd-3-clause | 1,265 | 0 | 13 | 275 | 386 | 192 | 194 | 32 | 5 |
module Sexy.Instances.Applicative.Function () where
import Sexy.Classes (Applicative(..))
import Sexy.Instances.Functor.Function ()
import Sexy.Instances.Pure.Function ()
instance Applicative ((->) a) where
-- (<*>) :: (a -> b -> c) -> (a -> b) -> (a -> c)
f <*> g = \x -> f x (g x)
| DanBurton/sexy | src/Sexy/Instances/Applicative/Function.hs | bsd-3-clause | 290 | 0 | 9 | 51 | 90 | 54 | 36 | 6 | 0 |
module Parser where
import Text.Parsec as P
import Data.List
import Language
parseModuleDecl :: Parsec String () ModuleDecl
parseModuleDecl
= do
string "module"
spaces
name <- many1 letter
spaces
char ';'
return $ Module name
parseImportDirective :: Parsec String... | mbelicki/pure-sea | src/Parser.hs | bsd-3-clause | 1,640 | 0 | 12 | 557 | 407 | 189 | 218 | 54 | 1 |
{-# LANGUAGE
DeriveDataTypeable
, DeriveGeneric
, TemplateHaskell
#-}
module Observations where
import Evidence
import Data.Set (Set)
import qualified Data.Set as Set
type Observations name p = Set (Evidence name p)
conclude :: (Ord p, Ord name) => [Evidence name p] -> Observations name p
conclude... | jcberentsen/causality | src/Observations.hs | bsd-3-clause | 686 | 0 | 8 | 130 | 235 | 123 | 112 | 17 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANG... | nmattia/halytics | src/Halytics/Metric.hs | bsd-3-clause | 5,702 | 0 | 13 | 1,317 | 1,333 | 709 | 624 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE RecordWildCards #-}
module CANOpen.Tower.PDO where
import Ivory.Language
import Ivory.Stdlib
import Ivory.Tower
import Ivory.Tower.HAL.Bus.CAN
import Ivory.Tower.HAL.Bus.Interface
import Ivory.Tower.HAL.Bus.CAN.Fragment
import CANOpen.Ivory.Types
import CANOpen.Tower.Utils
imp... | distrap/ivory-tower-canopen | src/CANOpen/Tower/PDO.hs | bsd-3-clause | 1,632 | 0 | 24 | 349 | 443 | 242 | 201 | 40 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
module ... | haskell-streaming/streaming | src/Streaming/Internal.hs | bsd-3-clause | 42,987 | 0 | 24 | 11,370 | 9,388 | 4,834 | 4,554 | -1 | -1 |
-- Copyright (c) 1998-1999 Chris Okasaki.
-- See COPYRIGHT file for terms and conditions.
module RevSeq (
-- generic adaptor for sequences to keep them in the opposite order
Rev, -- Rev s instance of Sequence, Functor, Monad, MonadPlus
-- sequence operations
empty,single,cons,snoc,append,lview,lhead... | OS2World/DEV-UTIL-HUGS | oldlib/RevSeq.hs | bsd-3-clause | 11,860 | 0 | 13 | 3,275 | 6,178 | 3,186 | 2,992 | 220 | 4 |
module C where
import Haskore.Melody
import Haskore.Basic.Duration
import Snippet
main = render_to "c.midi" $ c 1 wn () | nfjinjing/haskore-guide | src/c.hs | bsd-3-clause | 121 | 0 | 7 | 19 | 39 | 22 | 17 | 5 | 1 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns #-}
module OpenBLAS1 where
import qualified Language.C.Inline as C
import qualified Data.Vector.Storable as VS
import Foreign.C.Types
import Data.Monoid ((<>))
C.context (C.baseCtx <> C.vecCtx)
C.include "<ma... | wyn/blash | tests/OpenBLAS1.hs | bsd-3-clause | 3,195 | 0 | 12 | 1,019 | 657 | 344 | 313 | 45 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE TemplateHaskell #-}
module Config where
import Fluid.Type
import Data.Label
import Control.Monad
import Prelude as P
import Data.Array.Accelerate as A
import Data.Arra... | cpdurham/accelerate-camera-sandbox | app/camera-sandbox/Config.hs | bsd-3-clause | 8,586 | 1 | 18 | 2,955 | 2,379 | 1,251 | 1,128 | 204 | 1 |
{-- snippet assign --}
x = 10
x = 11
{-- /snippet assign --}
| binesiyu/ifl | examples/ch02/Assign.hs | mit | 61 | 0 | 4 | 14 | 13 | 8 | 5 | 2 | 1 |
module Golden.WalletError
( tests
) where
import Universum
import Hedgehog (Property)
import Cardano.Wallet.API.Response (JSONValidationError (..),
UnsupportedMimeTypeError (..))
import Cardano.Wallet.API.V1.Swagger.Example (genExample)
import ... | input-output-hk/pos-haskell-prototype | wallet/test/unit/Golden/WalletError.hs | mit | 6,209 | 0 | 10 | 916 | 591 | 337 | 254 | 120 | 1 |
-- |
-- Module: BDCS.RPM.Utils
-- Copyright: (c) 2016-2017 Red Hat, Inc.
-- License: LGPL
--
-- Maintainer: https://github.com/weldr
-- Stability: alpha
-- Portability: portable
--
-- Utility functions for "BDCS.RPM"
module BDCS.RPM.Utils(splitFilename)
where
import Data.Bifunctor(first)
import qualified D... | atodorov/bdcs | src/BDCS/RPM/Utils.hs | lgpl-2.1 | 1,008 | 0 | 14 | 198 | 305 | 175 | 130 | 11 | 3 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ExistentialQuant... | iamkingmaker/HLearn | src/HLearn/Models/Classifiers/BayesNotWorking.hs | bsd-3-clause | 4,952 | 0 | 12 | 1,074 | 781 | 437 | 344 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-cloudwatch/gen/Network/AWS/CloudWatch/PutMetricData.hs | mpl-2.0 | 4,007 | 0 | 10 | 839 | 407 | 253 | 154 | 51 | 1 |
module ClassIn1 where
--Any class/instance name declared in this module can be renamed
--Rename class name "Reversable" to "MyReversable"
class MyReversable a where
myreverse :: a -> a
myreverse _ = undefined
instance MyReversable [a] where
myreverse = reverse
data Foo = Boo | Moo
instance Eq Foo where
... | kmate/HaRe | old/testing/renaming/ClassIn1_TokOut.hs | bsd-3-clause | 411 | 0 | 7 | 99 | 116 | 62 | 54 | 12 | 1 |
module Test.Haddock.Utils where
import Control.Monad
import Data.Maybe
import System.Directory
import System.FilePath
mlast :: [a] -> Maybe a
mlast = listToMaybe . reverse
partitionM :: Monad m => (a -> m Bool) -> [a] -> m ([a], [a])
partitionM _ [] = pure ([], [])
partitionM p (x:xs) = do
(ss, fs) <- parti... | Helkafen/haddock | haddock-test/src/Test/Haddock/Utils.hs | bsd-2-clause | 1,328 | 0 | 13 | 292 | 516 | 260 | 256 | 32 | 2 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.HintedTile
-- Copyright : (c) Peter De Wachter <pdewacht@gmail.com>
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Peter De ... | markus1189/xmonad-contrib-710 | XMonad/Layout/HintedTile.hs | bsd-3-clause | 5,118 | 0 | 14 | 1,249 | 1,405 | 760 | 645 | 70 | 1 |
{-# LANGUAGE DataKinds, TypeFamilies #-}
newtype X = RollX (() -> X)
type family F t :: X where
F t = RollX (t -> ())
| ezyang/ghc | testsuite/tests/typecheck/should_fail/T14055.hs | bsd-3-clause | 124 | 1 | 8 | 32 | 50 | 28 | 22 | 4 | 0 |
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE OverloadedStrings #-}
module IRTS.JavaScript.AST where
import Data.Word
import Data.Char (isDigit)
import qualified Data.Text as T
data JSType = JSIntTy
| JSStringTy
| JSIntegerTy
| JSFloatTy
| JSCharTy
| JSPtrTy
... | mrmonday/Idris-dev | src/IRTS/JavaScript/AST.hs | bsd-3-clause | 11,430 | 0 | 15 | 3,124 | 4,398 | 2,320 | 2,078 | 318 | 10 |
{-# LANGUAGE RankNTypes #-}
{-# OPTIONS_GHC -O #-} -- -O casused a Lint error in the simplifier, so I'm putting that in
-- all the time, so we don't miss it in a fast validate
-- !!! Rank 2 polymorphism
-- Both f and g are rejected by Hugs [April 2001]
module Foo where
data T = T { t1 :... | forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/typecheck/should_compile/tc124.hs | bsd-3-clause | 592 | 0 | 11 | 174 | 144 | 84 | 60 | 9 | 1 |
{-# LANGUAGE TypeFamilies #-}
module T9840 where
import T9840a
type family X :: * -> * where
type family F (a :: * -> *) where
foo :: G (F X) -> G (F X)
foo x = x
| urbanslug/ghc | testsuite/tests/indexed-types/should_compile/T9840.hs | bsd-3-clause | 168 | 0 | 8 | 44 | 73 | 42 | 31 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Routing (handleRequest) where
import Web.Scotty (ScottyM, get,
html, redirect, notFound, text, file, setHeader)
import Views.Home (homeView)
import Views.Contacts (contactsView)
handleRequest :: ScottyM ()
handleRequest = do
get "/" homeView
get "/conta... | av-ast/hello-scotty | src/Routing.hs | mit | 582 | 0 | 10 | 113 | 153 | 76 | 77 | 18 | 1 |
module Handler.AdminVerificationUrl where
import Import
import Yesod.Auth.Email (randomKey)
import Model -- UniqueUser
getAdminVerificationUrlR :: Handler Html
getAdminVerificationUrlR = do
app <- getYesod
memail <- runInputGet $ iopt emailField "email"
mpair <-
case memail of
Nothing ... | fpco/schoolofhaskell.com | src/Handler/AdminVerificationUrl.hs | mit | 1,901 | 0 | 28 | 851 | 316 | 148 | 168 | -1 | -1 |
-- | Centrinel C language traversal monad
--
-- The @HGTrav@ monad stack has:
-- 1. a collection of analysis hooks that are triggered by traversals of C ASTs,
-- 2. and a unification state of region unification constraints and a map from C types to region unification variables.
--
--
{-# language GeneralizedNewtypeDeri... | lambdageek/use-c | src/Centrinel/Trav.hs | mit | 6,356 | 0 | 15 | 1,149 | 1,842 | 974 | 868 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Unison.Test.TermParser where
import Control.Applicative
import Control.Monad (join)
import EasyTest
import qualified Text.Megaparsec as P
import Text.RawString.QQ
import Unison.Parser
import ... | unisonweb/platform | parser-typechecker/tests/Unison/Test/TermParser.hs | mit | 4,539 | 0 | 16 | 1,643 | 1,088 | 604 | 484 | -1 | -1 |
module ProjectEuler.Problem99
( problem
) where
import Data.List
import Data.Ord
import qualified Data.Text as T
import ProjectEuler.GetData
problem :: Problem
problem = pureProblemWithData "p099_base_exp.txt" 99 Solved compute
compute :: T.Text -> Int
compute = fst . maximumBy (comparing snd) . getNums
getNu... | Javran/Project-Euler | src/ProjectEuler/Problem99.hs | mit | 539 | 0 | 11 | 120 | 194 | 109 | 85 | 15 | 1 |
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable, FlexibleContexts, FlexibleInstances, GeneralizedNewtypeDeriving, ImplicitParams, OverloadedStrings, TemplateHaskell, TypeSynonymInstances #-}
module Formura.MPICxx.Language where
import Control.Lens
import Data.Foldable(toList)
import ... | nushio3/formura | src/Formura/MPICxx/Language.hs | mit | 4,439 | 0 | 15 | 1,198 | 1,509 | 790 | 719 | -1 | -1 |
module GHCJS.DOM.MallocStatistics (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/MallocStatistics.hs | mit | 46 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
{-# LANGUAGE TupleSections, OverloadedStrings #-}
module Barch.Adaptors where
import Prelude
import Yesod
import Control.Applicative
import Data.Time
import Data.Time.Calendar (fromGregorian)
import qualified Text.BibTeX.Entry as Bib
import qualified Data.Map.Lazy as M
import Data.Text as T
import Text.Parsec
import Y... | klarh/barch | Barch/Adaptors.hs | mit | 2,237 | 0 | 13 | 372 | 770 | 411 | 359 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
module Y2017.M11.D29.Exercise where
{--
So, now that we've added and deleted recommended articles to our recommended
articles list, we need to have our grande poobah user select the ones to be
published, save those off somewhere, and then, well, publish them. That is to... | geophf/1HaskellADay | exercises/HAD/Y2017/M11/D29/Exercise.hs | mit | 2,133 | 0 | 9 | 338 | 225 | 144 | 81 | 26 | 1 |
-- | Handler for the 'add' command.
module Commands.Add.Handler
( TodoTask
, AddItems
, DayOfWeek
, handleAddCommand
) where
import Types
import Util
import Parsing
import Printing
import TodoLenses
import Commands.Common
import Options.Applicative
import Data.Time hiding (parseTime)
import Data.Ti... | DimaSamoz/thodo | src/Commands/Add/Handler.hs | mit | 3,500 | 0 | 18 | 882 | 964 | 493 | 471 | 68 | 4 |
{-# OPTIONS_HADDOCK hide, prune #-}
module Handler.Mooc.Scenario
( getScenarioR
, getScenarioProblemR
, getScenarioId
, getScenarioLink
) where
import Import
import Control.Monad.Trans.Maybe
getScenarioId :: ScenarioProblemId -> Handler (Maybe ScenarioId)
getScenarioId scpId = runMaybeT $ do
userId <- M... | mb21/qua-kit | apps/hs/qua-server/src/Handler/Mooc/Scenario.hs | mit | 2,209 | 0 | 22 | 753 | 575 | 278 | 297 | 49 | 4 |
module Test.ReservedWords
( reservedWordsTests,
)
where
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Pool as Pool
import qualified Data.String as String
import qualified Hedgehog as HH
import qualified Orville.PostgreSQL as Orville
import qualified Orville.PostgreSQL.Connection as Conn
im... | flipstone/orville | orville-postgresql-libpq/test/Test/ReservedWords.hs | mit | 1,169 | 0 | 19 | 271 | 242 | 138 | 104 | 26 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Text.Greek.Mounce.NounFirstDeclension where
import Text.Greek.Grammar
import Text.Greek.Mounce.Morphology
import Text.Greek.Mounce.Quote
firstDeclensionNouns :: [Cited NounCategory]
firstDeclensionNouns =
[ mounce §§ ["n-1a"] $
[nounCatego... | scott-fleischman/greek-grammar | haskell/greek-grammar/src/Text/Greek/Mounce/NounFirstDeclension.hs | mit | 19,093 | 0 | 8 | 3,445 | 228 | 153 | 75 | 28 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.