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 PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.Counter
(getIdentifier, getListStyle, getSeparator, Counter(..),
gTypeCounter)
where
import Prelud... | ghcjs/jsaddle-dom | src/JSDOM/Generated/Counter.hs | mit | 1,896 | 0 | 10 | 259 | 469 | 289 | 180 | 31 | 1 |
{-# LANGUAGE BangPatterns #-}
module Main where
import qualified Data.Conduit.List as CL
import qualified Data.Conduit.Binary as CB -- bytes
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as BC
import Data.NGH.FastQ
import Data.NGH.Formats.FastQ
import Data.Conduit -- the core library
i... | luispedro/NGH | examples/Count.hs | mit | 805 | 0 | 18 | 226 | 200 | 117 | 83 | 24 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
import qualified Data.ByteString as B
import Numeric
import Data.Char
import Data.Word
import Data.Maybe
import Control.Concurrent
import Network.Socket hiding (recv)
import System.IO
import qualified System.IO.UTF8 as U
import IrcServer as S
import Text.ParserCombinators.Parsec
im... | dbanerjee1979/dirc | NetTest.hs | mit | 3,518 | 0 | 16 | 1,166 | 1,056 | 513 | 543 | 81 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeSynonymInstances #-}
module IHaskell.Display.Widgets.Float.FloatText (
-- * The FloatText Widget
FloatText,
-- * Constructor
mkFloatText) where
-- To keep `cabal repl` happy when ru... | beni55/IHaskell | ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Float/FloatText.hs | mit | 1,885 | 0 | 13 | 437 | 386 | 213 | 173 | 42 | 1 |
module Y2017.M02.D24.Exercise where
-- below imports from cabal package 'statistics'
import Statistics.Distribution
import Statistics.Distribution.Binomial
{--
AHA!
Whenever you think you have to invent something, stop, pause, and think, ...
SOMEBODY ELSE HAS ALREADY DONE IT! USE THE DARK SIDE OF THE FORCE AND TOG... | geophf/1HaskellADay | exercises/HAD/Y2017/M02/D24/Exercise.hs | mit | 1,658 | 0 | 6 | 300 | 71 | 44 | 27 | 8 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGMarkerElement
(js_setOrientToAuto, setOrientToAuto, js_setOrientToAngle,
setOrientToAngle, pattern SVG_MARKERUNITS_UNKNOWN,
pattern SVG_MARKERUNITS_USERSPACEONUSE,
pattern SVG_MAR... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/SVGMarkerElement.hs | mit | 5,944 | 56 | 11 | 892 | 1,203 | 669 | 534 | 98 | 1 |
{-# LANGUAGE PackageImports #-}
import "reedink" Application (develMain)
import Prelude (IO)
main :: IO ()
main = develMain
| darthdeus/reedink | app/devel.hs | mit | 125 | 0 | 6 | 19 | 34 | 20 | 14 | 5 | 1 |
{-# OPTIONS_GHC -F -pgmF htfpp -fno-warn-missing-signatures #-}
{-# LANGUAGE QuasiQuotes #-}
module Text.Noise.Compiler.Builtin.Test where
import Test.Framework
import Data.Maybe (fromJust)
import Data.String.QQ (s)
import Assertion
import qualified Text.Noise.Compiler.Document as D
import qualified Text.Noise.Compil... | brow/noise | tests/Text/Noise/Compiler/Builtin/Test.hs | mit | 2,998 | 0 | 12 | 768 | 703 | 409 | 294 | 67 | 1 |
module Unison.Settings where
debugNoteLoc,debugNoteSummary,debugRevealForalls :: Bool
debugNoteLoc = False
debugNoteSummary = False
debugRevealForalls = False
renderTermMaxLength :: Int
renderTermMaxLength = 20
demoHideVarNumber :: Bool
demoHideVarNumber = False
removePureEffects :: Bool
removePureEffects = True
c... | unisonweb/platform | unison-core/src/Unison/Settings.hs | mit | 360 | 0 | 4 | 44 | 70 | 44 | 26 | 13 | 1 |
{-# LANGUAGE Rank2Types #-}
-- Zipper-based File/Operating system
-- with threading and exceptions all realized via delimited continuations.
-- There are no unsafe operations, no GHC (let alone) Unix threads,
-- no concurrency problems. Our threads can't even do IO and can't
-- mutate any global state -- and the type ... | Kinokkory/Kinokkory.github.io | okmij/zipper/ZFS.hs | gpl-2.0 | 17,950 | 112 | 22 | 4,209 | 5,248 | 2,738 | 2,510 | 292 | 11 |
module Reliquary.Core.DeBruijn where
import Reliquary.Core.AST
shift :: Int -> CoreTerm -> CoreTerm
shift n = shiftInt 0 where
shiftInt _ CStar = CStar
shiftInt _ CUnitType = CUnitType
shiftInt _ CUnit = CUnit
shiftInt _ CRelTermType = CRelTermType
shiftInt _ r@(CRelTerm _) = r
shiftInt l (CVa... | chameco/reliquary | src/Reliquary/Core/DeBruijn.hs | gpl-3.0 | 1,533 | 0 | 11 | 373 | 855 | 430 | 425 | 31 | 14 |
{-
This file is part of ChaosFlight.
ChaosFlight 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.
ChaosFlight is di... | Marthog/ld34 | src/View.hs | gpl-3.0 | 2,117 | 1 | 12 | 539 | 644 | 349 | 295 | 39 | 1 |
{-# language
StandaloneDeriving
, UndecidableInstances
, Rank2Types #-}
{-|
Copyright : (c) Quivade, 2017
License : GPL-3
Maintainer : Jakub Kopański <jakub@quivade.com>
Stability : experimental
Portability : POSIX
This module provides basic recursion schemes.
Written for exercise, could possibl... | quivade/screwdriver | src/Language/FIRRTL/Syntax/Recursion.hs | gpl-3.0 | 1,690 | 0 | 12 | 421 | 655 | 341 | 314 | -1 | -1 |
import Data.Binary
import qualified Data.ByteString.Lazy as BS
makeN :: Integer -> IO ()
makeN n = do
let x = encode n
BS.writeFile (show n ++ ".raw") x
| GDCN/GDCN | GDCN_proj/dGDCN/jobs/TrivialJob/resources/GenerateNumbers.hs | gpl-3.0 | 163 | 0 | 10 | 38 | 69 | 35 | 34 | 6 | 1 |
fact n = product [1..n] | hmemcpy/milewski-ctfp-pdf | src/content/1.2/code/haskell/snippet05.hs | gpl-3.0 | 23 | 0 | 6 | 4 | 17 | 8 | 9 | 1 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
module Api
( app
) where
import Control.Monad.Reader (runReaderT)
import Servant
import Auth
import Config
import Routes
import Server
-- | Turn a `Config` into a WAI `Application` representing our API.
app :: Conf... | Southern-Exposure-Seed-Exchange/southernexposure.com | server/src/Api.hs | gpl-3.0 | 1,756 | 0 | 22 | 510 | 336 | 178 | 158 | 56 | 2 |
import RegistrationParser
import CmdLineInterpreter
import Data.Yaml
import qualified Data.Text as T
import Data.Text.Encoding (encodeUtf8, decodeUtf8, decodeLatin1)
import qualified Data.ByteString as BS
import Numeric (showHex)
import System.IO
import System.Environment (getArgs)
import Data.List
import Data.Maybe... | FiskerLars/ConfOrg | LBASregister.hs | gpl-3.0 | 5,945 | 6 | 18 | 1,932 | 1,737 | 900 | 837 | 113 | 2 |
-- Copyright (c) 2012, Diego Souza
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list of condit... | dgvncsz0f/sssfs | src/SSSFS/Filesystem/Core.hs | gpl-3.0 | 6,623 | 0 | 14 | 1,948 | 1,594 | 827 | 767 | 87 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Robotics.Thingomatic.Commands where
import Robotics.Thingomatic.Monad
import Robotics.Thingomatic.Points
import qualified Data.ByteString.Char8 as B
ap = B.append
con = B.concat
bshow::Show a=>a->ByteString
bshow = B.pack . show
setMilimeters = emit "G21"
setInches ... | matthewSorensen/weft | Robotics/Thingomatic/Commands.hs | gpl-3.0 | 1,813 | 0 | 10 | 320 | 842 | 437 | 405 | 48 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.AbusiveExpe... | brendanhay/gogol | gogol-abusiveexperiencereport/gen/Network/Google/AbusiveExperienceReport/Types/Product.hs | mpl-2.0 | 6,168 | 0 | 17 | 1,333 | 984 | 577 | 407 | 120 | 1 |
{-# 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.MachineLearning.Types.Pro... | fmapfmapfmap/amazonka | amazonka-ml/gen/Network/AWS/MachineLearning/Types/Product.hs | mpl-2.0 | 58,163 | 0 | 26 | 12,708 | 9,655 | 5,663 | 3,992 | 915 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-shopping-content/gen/Network/Google/Resource/Content/Repricingrules/List.hs | mpl-2.0 | 6,832 | 0 | 21 | 1,652 | 1,070 | 617 | 453 | 148 | 1 |
module Database.Migratory.Migrate where
import Data.Kind
import Database.Migratory.Schema
import Database.Migratory.Schema.ToValue
| SASinestro/migratory | src/Database/Migratory/Migrate.hs | mpl-2.0 | 166 | 0 | 4 | 44 | 25 | 17 | 8 | 4 | 0 |
binSearch
| seckcoder/lang-learn | haskell/samples/src/Qiita/Algo.hs | unlicense | 14 | 0 | 4 | 5 | 4 | 1 | 3 | -1 | -1 |
module Model where
import ClassyPrelude.Yesod
import Database.Persist.Quasi
import qualified Haverer.Game as H
import Haverer.Player (toPlayers, toPlayerSet)
-- You can define all of your database entities in the entities file.
-- You can find more information on persistent and how to declare entities
-- at:
-- http... | jml/haverer-api | Model.hs | apache-2.0 | 3,477 | 0 | 12 | 1,120 | 846 | 466 | 380 | -1 | -1 |
-- | Maintainer: Sean Whitton <spwhitton@spwhitton.name>
module Propellor.Property.Locale where
import Propellor.Base
import Propellor.Property.File
import Data.List (isPrefixOf)
type Locale = String
type LocaleVariable = String
-- | Select a locale for a list of global locale variables.
--
-- A locale variable is... | ArchiveTeam/glowing-computing-machine | src/Propellor/Property/Locale.hs | bsd-2-clause | 2,924 | 38 | 17 | 520 | 711 | 396 | 315 | 50 | 4 |
{-# LANGUAGE CPP, DeriveDataTypeable, MagicHash, UnboxedTuples #-}
{- |
Copyright : (c) Andy Sonnenburg 2013
License : BSD3
Maintainer : andy22286@gmail.com
-}
module Data.Prim.ByteArray
( MutableByteArray
, newByteArray
, readCharArray
, readWideCharArray
, readIntArray
... | sonyandy/var | src/Data/Prim/ByteArray.hs | bsd-3-clause | 9,504 | 0 | 11 | 2,110 | 3,302 | 1,692 | 1,610 | 222 | 1 |
module Exercises1114 where
-- Exponentiation in what order?
data Quantum =
Yes
| No
| Both
deriving (Eq, Show)
convert1 :: Quantum -> Bool
convert1 Yes = True
convert1 No = True
convert1 Both = True
convert2 :: Quantum -> Bool
convert2 Yes = True
convert2 No = True
convert2 Both = False
convert... | pdmurray/haskell-book-ex | src/ch11/Exercises11.14.hs | bsd-3-clause | 983 | 0 | 6 | 242 | 295 | 156 | 139 | 38 | 1 |
{-# LANGUAGE RecordWildCards #-}
module UnitTests.Distribution.Solver.Modular.Solver (tests)
where
-- base
import Control.Monad
import Data.List (isInfixOf)
import qualified Data.Version as V
import qualified Distribution.Version as V
-- test-framework
import Test.Tasty as TF
import Test.Tasty.HUnit (... | thomie/cabal | cabal-install/tests/UnitTests/Distribution/Solver/Modular/Solver.hs | bsd-3-clause | 43,780 | 0 | 17 | 11,863 | 12,178 | 6,711 | 5,467 | 635 | 4 |
{-# LANGUAGE QuasiQuotes, ScopedTypeVariables #-}
module Atomo.Kernel.Method where
import Atomo
load :: VM ()
load = do
[$p|(m: Method) value|] =: do
(m :: Method) <- here "m" >>= getV
return (mValue m)
[$p|(m: Method) pattern|] =: do
(m :: Method) <- here "m" >>= getV
return... | Mathnerd314/atomo | src/Atomo/Kernel/Method.hs | bsd-3-clause | 584 | 4 | 16 | 170 | 284 | 137 | 147 | 17 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
-- | This module contains the GET and POST handler for the main page.
module Handler.Home where
import Control.Monad.Trans.Resource
import qualified Data.ByteString as S
import qualified Data.ByteString.Lazy as L
import ... | mikesteele81/soh-file-server-tutorial-project | src/Handler/Home.hs | bsd-3-clause | 2,512 | 0 | 17 | 561 | 309 | 174 | 135 | 33 | 2 |
{-# LANGUAGE ExistentialQuantification, Rank2Types #-}
module Data.Karakuri (
Karakuri(..)
, transKarakuri
, extract
, surface
, iterateM
) where
import Control.Monad
import Control.Comonad
import Data.Profunctor
import Control.Applicative
import Data.Distributive
-- | 'Karakuri' means automa... | fumieval/karakuri | Data/Karakuri.hs | bsd-3-clause | 2,458 | 0 | 12 | 592 | 956 | 494 | 462 | 48 | 1 |
-- (c) The University of Glasgow 2006
--
-- FamInstEnv: Type checked family instance declarations
{-# LANGUAGE CPP, GADTs, ScopedTypeVariables #-}
module FamInstEnv (
FamInst(..), FamFlavor(..), famInstAxiom, famInstTyCon, famInstRHS,
famInstsRepTyCons, famInstRepTyCon_maybe, dataFamInstRepTyCon,
... | urbanslug/ghc | compiler/types/FamInstEnv.hs | bsd-3-clause | 42,589 | 0 | 19 | 11,977 | 6,338 | 3,420 | 2,918 | -1 | -1 |
-- |
-- Module: Data.Chimera.Compat
-- Copyright: (c) 2017 Andrew Lelechenko
-- Licence: MIT
-- Maintainer: Andrew Lelechenko <andrew.lelechenko@gmail.com>
{-# LANGUAGE CPP #-}
{-# LANGUAGE MagicHash #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_HADDOCK hide #-}
module Data.Chimera.C... | Bodigrim/bit-stream | Data/Chimera/Compat.hs | bsd-3-clause | 953 | 0 | 7 | 224 | 93 | 60 | 33 | 22 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module SpecHelper where
import Control.Monad (filterM)
import Data.Text (Text)
import Data.Text.IO as T (readFile)
import Data.Foldable (toList)
import System.Directory
import System.Directory.Tree
import System.FilePath
import Test.Hspec
import Test.Hspec.Megaparsec
import Text.Me... | xldenis/hliquid | test/SpecHelper.hs | bsd-3-clause | 2,492 | 1 | 22 | 488 | 807 | 407 | 400 | 50 | 2 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes ... | mikusp/accelerate-cuda | Data/Array/Accelerate/CUDA/Foreign/Export.hs | bsd-3-clause | 10,151 | 0 | 18 | 2,509 | 2,703 | 1,415 | 1,288 | 178 | 5 |
-- | Serializable closures for distributed programming. This package builds
-- a "remotable closure" abstraction on top of
-- <https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#static-pointers static pointers>.
-- See
-- <https://ocharles.org.uk/blog/guest-posts/2014-12-23-static-pointer... | tweag/distributed-closure | src/Control/Distributed/Closure.hs | bsd-3-clause | 4,565 | 79 | 15 | 858 | 1,161 | 651 | 510 | -1 | -1 |
{-|
Module : Idris.Reflection
Description : Code related to Idris's reflection system. This module contains quoters and unquoters along with some supporting datatypes.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE PatternGuards, CPP #-}
{-# OPTIONS_GHC -fwarn-incomplete-patte... | enolan/Idris-dev | src/Idris/Reflection.hs | bsd-3-clause | 55,367 | 0 | 18 | 17,214 | 20,700 | 10,068 | 10,632 | 1,052 | 11 |
--
-- Module : Sort
-- Copyright : (c) Conrad Parker 2008
-- License : BSD-style
-- Maintainer : conradp@cse.unsw.edu.au
-- Stability : experimental
-- Portability : portable
module Codec.Container.Ogg.Sort (
merge,
sort,
--, sortHeaders
) where
import Codec.Container.Ogg.ContentType
import Codec.... | kfish/hogg | Codec/Container/Ogg/Sort.hs | bsd-3-clause | 2,905 | 0 | 12 | 680 | 876 | 487 | 389 | 51 | 5 |
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Language.Haskell.Refact.Utils.LocUtils(
unmodified,modified
, nullSrcSpan
, getSrcSpan
, prettyprintPatList
, getGhcLoc
, getGhcLocEnd
, getLocatedStart
, getLocatedEnd
, ghcSpanStartEnd
, getStartEndLoc
, startEndL... | mpickering/HaRe | src/Language/Haskell/Refact/Utils/LocUtils.hs | bsd-3-clause | 5,538 | 0 | 15 | 1,093 | 1,470 | 800 | 670 | 100 | 4 |
module PivotalTrackerApi.Epic
( Epic
, PivotalTrackerApi.Epic.id
, project_id
, name
, label
, description
, created_at
, updated_at
, url
, kind
) where
import PivotalTrackerApi.Base
import PivotalTrackerApi.Label (Label)
data Epic = Epic
... | diogob/pivotal-tracker-api | src/PivotalTrackerApi/Epic.hs | bsd-3-clause | 768 | 0 | 9 | 299 | 165 | 100 | 65 | -1 | -1 |
{-# LANGUAGE TypeOperators #-}
module Data.Product where
infixl 7 :*:
data (f :*: g) a = (:*:) { hfst :: f a, hsnd :: g a }
swap :: (f :*: g) ix -> (g :*: f) ix
swap (f :*: g) = g :*: f
| sebastiaanvisser/fixpoints | src/Data/Product.hs | bsd-3-clause | 190 | 4 | 9 | 50 | 91 | 52 | 39 | 6 | 1 |
module TypeSystem.TypeSystemData (module TypeSystem) where
{-
This module reexports all things you need
-}
import TypeSystem.Types as TypeSystem
import TypeSystem.BNF as TypeSystem
import TypeSystem.Syntax as TypeSystem
import TypeSystem.SyntaxStyle as TypeSystem
import TypeSystem.ParseTree as TypeSystem
import Ty... | pietervdvn/ALGT | src/TypeSystem/TypeSystemData.hs | bsd-3-clause | 603 | 0 | 4 | 70 | 97 | 69 | 28 | 13 | 0 |
module Card (
Card(..),
mkCard,
Rank(..),
Suit(..),
getRank, --
getSuit
)where
import Data.Word
import Data.Bits
data Rank = Two | Three | Four | Five | Six | Seven
| Eight | Nine | Ten | Jack | Queen
| King | Ace deriving (Enum,Ord,Eq,Show)
data Suit = Heart |... | fffej/HS-Poker | Card.hs | bsd-3-clause | 2,104 | 0 | 11 | 610 | 680 | 358 | 322 | 59 | 1 |
{-# LANGUAGE PackageImports #-}
module Foreign.Ptr (module M) where
import "base" Foreign.Ptr as M
| silkapp/base-noprelude | src/Foreign/Ptr.hs | bsd-3-clause | 104 | 0 | 4 | 18 | 21 | 15 | 6 | 3 | 0 |
module Fragnix.SliceInstanceOptimization
( sliceInstancesOptimized
) where
import Fragnix.Slice (
Slice(Slice), SliceID, InstanceID, Instance(Instance),
InstancePart(OfThisClass,OfThisClassForUnknownType,ForThisType,ForThisTypeOfUnknownClass),
usedSliceIDs)
import Data.Map (Map)
import qualified Data.... | phischu/fragnix | src/Fragnix/SliceInstanceOptimization.hs | bsd-3-clause | 5,955 | 0 | 22 | 1,111 | 1,129 | 600 | 529 | 66 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
module Watch.Investigate where
import Control.Arrow
import Control.Lens
import Control.Monad
import Control.Monad.Reader
import Control.Monad.State
import Data.List
import qualified Data.List.NonEmpty as N
import qualified Data.Map as M
impo... | pikajude/src-watch | src/Watch/Investigate.hs | bsd-3-clause | 4,893 | 0 | 18 | 1,397 | 1,529 | 795 | 734 | 112 | 2 |
{- Problem 97: Large non-Mersenne prime
The first known prime found to exceed one million digits was discovered in
1999, and is a Mersenne prime of the form 2^6972593−1; it contains exactly
2,098,960 digits. Subsequently other Mersenne primes, of the form 2p−1, have
been found which contain more digits.
However, in 2... | ajsmith/project-euler-solutions | src/Problem97.hs | gpl-2.0 | 547 | 0 | 10 | 92 | 35 | 21 | 14 | 2 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- di... | dcelasun/thrift | lib/hs/src/Thrift/Transport/Handle.hs | apache-2.0 | 2,830 | 0 | 13 | 568 | 526 | 292 | 234 | 50 | 2 |
module Main where
myGreeting :: String
myGreeting = (++) "hello" " world"
hello :: String
hello = "hello"
world :: String
world = "world!"
main :: IO ()
main = do
putStrLn myGreeting
putStrLn secondGreeting
where secondGreeting = (++) hello ((++) " " world)
| OCExercise/haskellbook-solutions | chapters/chapter03/scratch/print3flipped.hs | bsd-2-clause | 274 | 0 | 9 | 60 | 92 | 51 | 41 | 12 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
module Hans.Socket.Udp where
import Hans.Addr (toAddr,fromAddr,isBroadcastAddr)
import qualified Hans.Buffer.Datagram as DGram
import Hans.Device.Types (Device)
import Hans.Lens (view,to)
import Hans.Network (Networ... | GaloisInc/HaNS | src/Hans/Socket/Udp.hs | bsd-3-clause | 6,530 | 0 | 23 | 2,271 | 1,656 | 829 | 827 | 152 | 4 |
{-# LANGUAGE GeneralizedNewtypeDeriving, ConstraintKinds, PatternGuards #-}
module Idris.ParseOps where
import Prelude hiding (pi)
import Text.Trifecta.Delta
import Text.Trifecta hiding (span, stringLiteral, charLiteral, natural, symbol, char, string, whiteSpace)
import Text.Parser.LookAhead
import Text.Parser.Expres... | BartAdv/Idris-dev | src/Idris/ParseOps.hs | bsd-3-clause | 6,121 | 0 | 18 | 2,012 | 1,818 | 943 | 875 | 108 | 4 |
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Trustworthy #-}
#endif
-----------------------------------------------------------------------------
-- |
-- Module : Graphics.Win32.GDI.Region
-- Copyright : (c) Alastair Reid, 1997-2003
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintai... | jwiegley/ghc-release | libraries/Win32/Graphics/Win32/GDI/Region.hs | gpl-3.0 | 5,622 | 187 | 12 | 936 | 1,408 | 731 | 677 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable,GeneralizedNewtypeDeriving #-}
-- | "Text.ProtocolBuffers.Basic" defines or re-exports most of the
-- basic field types; 'Maybe','Bool', 'Double', and 'Float' come from
-- the Prelude instead. This module also defined the 'Mergeable' and
-- 'Default' classes. The 'Wire' class is not defi... | flowbox-public/protocol-buffers | Text/ProtocolBuffers/Basic.hs | apache-2.0 | 10,381 | 0 | 14 | 2,409 | 1,882 | 1,041 | 841 | 119 | 5 |
{-|
Module : Idris.Docs
Description : Data structures and utilities to work with Idris Documentation.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE DeriveFunctor, MultiWayIf, PatternGuards #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Idris.Docs (
pprintDocs
... | markuspf/Idris-dev | src/Idris/Docs.hs | bsd-3-clause | 18,592 | 0 | 26 | 6,464 | 5,683 | 2,900 | 2,783 | 334 | 25 |
-------------------------------------------------------------------------------
-- |
-- Module : System.Hardware.Haskino.Protocol
-- Based on System.Hardware.Arduino.Protocol
-- Copyright : (c) University of Kansas
-- System.Hardware.Arduino (c) Levent Erkok
-- License : BSD3... | ku-fpg/kansas-amber | System/Hardware/Haskino/Protocol.hs | bsd-3-clause | 172,648 | 0 | 23 | 35,571 | 58,024 | 28,015 | 30,009 | 2,336 | 333 |
module Bottom where
liveFun1 deadVar1 liveVar2
= [liveVar2]
| forste/haReFork | StrategyLib-4.0-beta/examples/haskell/testsuite/Bottom.hs | bsd-3-clause | 63 | 0 | 5 | 11 | 17 | 10 | 7 | 3 | 1 |
import Renaming.ExportedType
-- renaming must distinguish between type name and constructor name
foo :: NewType -> Bool
foo (MyType 0) = True
foo (MyType _) = False
main = putStrLn "hello"
| RefactoringTools/HaRe | test/testdata/Renaming/ExportedTypeClient.expected.hs | bsd-3-clause | 192 | 0 | 7 | 34 | 52 | 27 | 25 | 5 | 1 |
module Info.Property where
import Data.Dynamic
import Data.Monoid
import Info.Properties
import Util.BitSet
import Util.HasSize
import Util.SetLike
instance Show Properties where
showsPrec _ props = shows (toList props)
-- | list of properties of a function, such as specified by use pragmas or options
newtype Pr... | hvr/jhc | src/Info/Property.hs | mit | 1,201 | 0 | 9 | 229 | 338 | 180 | 158 | -1 | -1 |
-- Copyright (c) Microsoft. All rights reserved.
-- Licensed under the MIT license. See LICENSE file in the project root for full license information.
{-# LANGUAGE QuasiQuotes, OverloadedStrings, RecordWildCards #-}
module Language.Bond.Codegen.Cpp.Grpc_cpp (grpc_cpp) where
import Data.Monoid
import Prelude
import D... | jdubrule/bond | compiler/src/Language/Bond/Codegen/Cpp/Grpc_cpp.hs | mit | 1,175 | 0 | 10 | 163 | 179 | 113 | 66 | 15 | 3 |
{-# Language CPP #-}
{-# Language QuantifiedConstraints #-}
{-# Language TypeApplications #-}
{-# Language PolyKinds #-}
{-# Language TypeOperators #-}
{-# Language DataKinds #-}
{-# Language TypeFamilies #-}
{-# Language TypeSynonymInstances #-}
{-# Lang... | sdiehl/ghc | testsuite/tests/typecheck/should_fail/T15801.hs | bsd-3-clause | 1,318 | 11 | 10 | 347 | 434 | 245 | 189 | -1 | -1 |
{-# LANGUAGE TemplateHaskell, TypeOperators, PolyKinds, DataKinds,
TypeFamilies, TypeInType #-}
module A where
import Data.Kind
data family Sing (k :: *) :: k -> *
type Sing' (x :: k) = Sing k x
data TyFun' (a :: *) (b :: *) :: *
type TyFun (a :: *) (b :: *) = TyFun' a b -> *
type family (a :: TyFun k1 ... | ezyang/ghc | testsuite/tests/dependent/should_compile/Rae31.hs | bsd-3-clause | 832 | 0 | 9 | 226 | 423 | 255 | 168 | -1 | -1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.DeviceOrientationEvent
(js_initDeviceOrientationEvent, initDeviceOrientationEvent,
js_getAlpha, getAlpha, js_getBeta, getBeta, js_getGamma, getGamma,
js_getAbsolute, getAbsolute, DeviceOrien... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/DeviceOrientationEvent.hs | mit | 3,548 | 44 | 9 | 581 | 732 | 424 | 308 | 54 | 1 |
module Application where
import Import
import qualified System.Random.MWC as MWC
import Handler.Home
import Handler.AES
mkYesodDispatch "App" resourcesApp
main :: IO ()
main = MWC.withSystemRandom $ \gen -> do
warpEnv App
{ appGen = gen
} | snoyberg/crypto-demo-site | src/Application.hs | mit | 262 | 0 | 11 | 58 | 74 | 42 | 32 | -1 | -1 |
module Interpret where
import Types
import Control.Lens
-- | calculates the total duration of a `Beat`
totalDur :: Beat -> Rational
totalDur (Single hit) = hit ^. dur
totalDur (Series c1 c2) = totalDur c1 + totalDur c2
totalDur (Parallel c1 c2) = max (totalDur c1) (totalDur c2)
totalDur None = 0
--... | reedrosenbluth/Djembe | src/Interpret.hs | mit | 1,154 | 0 | 11 | 290 | 485 | 248 | 237 | 24 | 4 |
{-# LANGUAGE NoImplicitPrelude #-}
module Numeric where
import NumericPrelude
import qualified Algebra.Ring as Ring
instance (Ring.C a) => Ring.C (b -> a) where
(f1 * f2) b = (f1 b) * (f2 b)
one = const one
fromInteger = const . fromInteger
(f ^ n) b = (f b) ^ n
| vladfi1/hs-misc | Numeric.hs | mit | 275 | 6 | 8 | 63 | 121 | 65 | 56 | 9 | 0 |
{-
HAAP: Haskell Automated Assessment Platform
This module provides a generic interface for HAAP sources, that are typically version-control repositories.
-}
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables, FlexibleContexts, TypeFamilies, TypeFamilyDependencies, RankNTypes, DoAndIfThenElse #-}
module HAAP.Source... | hpacheco/HAAP | src/HAAP/Sources.hs | mit | 4,499 | 8 | 27 | 1,139 | 1,040 | 546 | 494 | -1 | -1 |
-- Fusion (Short cut fusion)
-- ref: https://wiki.haskell.org/Fusion
-- ref: https://wiki.haskell.org/Correctness_of_short_cut_fusion | Airtnp/Freshman_Simple_Haskell_Lib | Incomplete/Fusion.hs | mit | 133 | 0 | 2 | 10 | 5 | 4 | 1 | 1 | 0 |
{-|
Module : Driver.Driver
Description : A driver for the front-end.
Copyright : (c) Michael Lopez, 2017
License : MIT
Maintainer : m-lopez (github)
Stability : unstable
Portability : non-portable
-}
module Driver.Driver ( exec ) where
import Repl ( repl )
import Driver.Options ( Options(..), processOpti... | m-lopez/jack | src/Driver/Driver.hs | mit | 529 | 0 | 10 | 112 | 103 | 57 | 46 | 10 | 2 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE GADTs #-}
module Contract.Type
( Contract(..) -- constructors exported
, MContract -- managed contract, including a start date
, Party
-- smart constructors and convenience functions
, zero, transfOne, transl, iff, checkWithin, both, allCs, sc... | HIPERFIT/contracts | Haskell/Contract/Type.hs | mit | 4,981 | 0 | 20 | 1,400 | 1,494 | 762 | 732 | 85 | 7 |
module Notation
( Notation (..)
, calculate
, compute
) where
class Notation a where
notationKey :: a -> String
calculator :: a -> (String -> Double)
calculate :: (Notation a) => a -> [String] -> [Double]
calculate ntn = map (compute ntn)
compute :: (Notation a) => a -> String -> Double
comp... | DominikJaniec/LearnHaskell | problems/calculator/src/Notation.hs | mit | 337 | 0 | 9 | 84 | 125 | 70 | 55 | 11 | 1 |
module Main where
import Config (uploader, downloader, remover)
import Data.Maybe
import Control.Monad
import Haste
import Haste.DOM
import Haste.Ajax
import Haste.Events
-- id of DOM elements
id_elements = ["url_txt", "info_txt", "submit_btn", "list"]
main = withElems id_elements $ \[url, info, submit, links] -> d... | codeonwort/scrapbook | src/Main.hs | mit | 2,101 | 6 | 16 | 362 | 677 | 349 | 328 | 44 | 1 |
{-# LANGUAGE NamedFieldPuns, ScopedTypeVariables, FlexibleContexts, FlexibleInstances, UndecidableInstances, GeneralizedNewtypeDeriving #-}
{-
Copyright (C) 2012 Jimmy Liang, Kacper Bak <http://gsd.uwaterloo.ca>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and assoc... | juodaspaulius/bclafer_old | src/Language/Clafer/Intermediate/ResolverType.hs | mit | 15,259 | 0 | 28 | 3,745 | 4,891 | 2,452 | 2,439 | 286 | 15 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE UnicodeSyntax #-}
{-# LANGUAGE ViewPatterns #-}
module Main where
import Control.Applicative (pure)
import Control.Monad (replicateM, (=<<))
import Data.Bool (Bool (..), not, otherw... | loskutov/logic-hw | HW3/Main.hs | mit | 6,307 | 86 | 18 | 1,957 | 2,947 | 1,542 | 1,405 | 127 | 2 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE OverloadedStrings #-}
{-|
This module exports a type corresponding to user\'s in Hails
and some helper functions.
-}
module Hails.Web.User (
UserName
, getHailsUser
, withUserOrDoAuth
) where
import qualified Data.ByteString.Char8 as S8
import qualified Data.Text ... | scslab/hails | Hails/Web/User.hs | mit | 978 | 0 | 13 | 200 | 193 | 112 | 81 | 20 | 1 |
{- |
Module : $Header$
Description : Symbol definition for first-order logic with
dependent types
Copyright : (c) Kristina Sojakova, DFKI Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : k.sojakova@jacobs-university.de
Stability : experimental
Portability : portab... | nevrenato/Hets_Fork | DFOL/Symbol.hs | gpl-2.0 | 1,271 | 0 | 11 | 285 | 349 | 186 | 163 | 23 | 1 |
module PhrasesToShapes where
import Shapes
import ShapeToBmp
import Control.Monad.Random
import Control.Monad
import Codec.Picture
{-
This part is going to be somewhat arbitrary but I'll base these off of rough shapes of letters and we can go from there.
-}
charToShape :: RandomGen g => Char -> Rand g Shape
c... | clarissalittler/randomimages | PhrasesToShapes.hs | gpl-2.0 | 3,638 | 0 | 13 | 872 | 1,593 | 750 | 843 | 134 | 2 |
module Sivi.BacklashSpec (
spec
) where
import Test.Hspec
import Linear
import Sivi.Backlash
import Sivi.IR
pos :: [V3 Double]
pos = [ V3 2 2 0
, V3 3 3 0
, V3 5 4 0
, V3 7 3 0
, V3 8 2 0
, V3 12 3 0
, V3 11 0 0
, V3 10 (-1) 0
, V3 7 (-1)... | iemxblog/sivi-haskell | tests/Sivi/BacklashSpec.hs | gpl-2.0 | 3,236 | 0 | 17 | 1,469 | 1,255 | 637 | 618 | 95 | 1 |
module Language.SimplyTyped.Semantics (unname, name, alphaEquiv, typeof) where
import Language.SimplyTyped.Syntax
import Data.List (elemIndex, genericIndex)
data SemanticError = SemanticError String
instance Show SemanticError where
show (SemanticError x) = x
scoped :: (v -> [s] -> Either SemanticError a) -... | robertclancy/tapl | simply-typed/lib/Language/SimplyTyped/Semantics.hs | gpl-2.0 | 3,150 | 0 | 13 | 979 | 1,158 | 552 | 606 | 69 | 9 |
{-# LANGUAGE DeriveDataTypeable, TemplateHaskell, MultiParamTypeClasses #-}
module Auth.Session ( SessionServerPart
, SessionData(..)
, getToken
, putToken
, getUltDest
, putUltDest
) where
import C... | MortimerMcMire315/sparkive | src/Auth/Session.hs | gpl-3.0 | 2,634 | 0 | 12 | 946 | 557 | 313 | 244 | 47 | 1 |
newtype FreeF f a = FreeF (forall i. (a -> i) -> f i) | hmemcpy/milewski-ctfp-pdf | src/content/3.11/code/haskell/snippet11.hs | gpl-3.0 | 53 | 0 | 10 | 13 | 33 | 19 | 14 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/MetricDescriptors/Delete.hs | mpl-2.0 | 5,373 | 0 | 15 | 1,118 | 703 | 413 | 290 | 104 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-drive/gen/Network/Google/Resource/Drive/Permissions/Create.hs | mpl-2.0 | 7,934 | 0 | 22 | 1,850 | 1,010 | 593 | 417 | 153 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-kinesis/gen/Network/AWS/Kinesis/GetRecords.hs | mpl-2.0 | 8,055 | 0 | 14 | 1,616 | 733 | 454 | 279 | 77 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-servicemanagement/gen/Network/Google/Resource/ServiceManagement/Services/Create.hs | mpl-2.0 | 5,182 | 0 | 16 | 1,171 | 716 | 422 | 294 | 102 | 1 |
import Data.Char
import System.IO
import System.Environment
import Data.Maybe
import Text.Read
import Data.List.Split
import Data.List
data Room = Room [String] Int String deriving (Eq, Show)
parseRoom :: String -> Maybe Room
parseRoom s =
let (end : roomStrs) = reverse $ wordsBy (== '-') s
results = parseRoo... | rebeccaskinner/advent_of_code_2016 | day4/solution.hs | apache-2.0 | 1,899 | 1 | 16 | 432 | 797 | 407 | 390 | 60 | 2 |
num = [5,7,5,7,7]
acm _ [] = []
acm s (n:ns) = (s+n):acm (s+n) ns
a2 [] _ = True
a2 (n:ns) s =
let a = zip [1..] $ acm 0 s
a' = dropWhile (\ (a,v) -> v < n) a
(i,v) = a'!!0
in
if a' == []
then False
else if n == v
then a2 ns $ drop i s
else False
a1 idx s =
if res
t... | a143753/AOJ | 1601.hs | apache-2.0 | 598 | 0 | 12 | 237 | 391 | 200 | 191 | 29 | 3 |
{- Copyright 2021 The Project Oak Authors
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 ... | project-oak/silveroak | cava/Cava2HDL/Cava2SystemVerilog.hs | apache-2.0 | 19,207 | 0 | 18 | 5,328 | 5,598 | 2,765 | 2,833 | 349 | 18 |
--------------------------------------------------------------------
-- |
-- Copyright : (c) Dan Doel 2013
-- License : BSD3
-- Maintainer: Dan Doel <dan.doel@gmail.com>
-- Stability : experimental
-- Portability: non-portable
--
--------------------------------------------------------------------
module Ermine.P... | ekmett/ermine | src/Ermine/Pretty/Global.hs | bsd-2-clause | 783 | 0 | 12 | 126 | 178 | 97 | 81 | 14 | 4 |
{-# LANGUAGE BangPatterns, CPP, MagicHash, NondecreasingIndentation #-}
-------------------------------------------------------------------------------
--
-- | Main API for compiling plain Haskell source code.
--
-- This module implements compilation of a Haskell source. It is
-- /not/ concerned with preprocessing of ... | bitemyapp/ghc | compiler/main/HscMain.hs | bsd-3-clause | 69,611 | 0 | 27 | 20,851 | 11,650 | 5,952 | 5,698 | 834 | 9 |
module ShareTree
( State
, ShareTree
, emptyState
, emptyStateWithTime
, emptyShareReq
, createSpeaker
, giveReference
, giveDefaultReference
, newShare
, request
, isAdmControl
, reqDepth
, stateNow
, shareTree
, listShareRefsByFlowGroup
, listShareRefsByUser
, Share (..)
, getSched... | brownsys/pane | src/ShareTree.hs | bsd-3-clause | 12,778 | 0 | 20 | 3,635 | 3,469 | 1,844 | 1,625 | 288 | 9 |
{-# LANGUAGE CPP, JavaScriptFFI #-}
module Skywalker.UUID
(UUID, nil, toString, fromString, generateUUID
) where
import Skywalker.JSON
import Data.Maybe (fromJust)
#if defined(ghcjs_HOST_OS)
import Data.JSString
import Data.Maybe (fromJust)
import Data.UUID.Types
foreign import javascript unsafe "window['gen... | manyoo/skywalker | src/Skywalker/UUID.hs | bsd-3-clause | 787 | 3 | 9 | 122 | 169 | 98 | 71 | 9 | 1 |
-- | In the documentation I often say every hour, but of course that
-- time is configureable.
module Control.Concurrent.TimedRepeating (
timedRepeating
, defaultTrSettings
, trSettingsPeriodicity
, TrSettings()
) where
import Data.IORef (IORef, newIORef, writeIORef)
import Control.Monad (forev... | Tarrasch/timed-repeating | Control/Concurrent/TimedRepeating.hs | bsd-3-clause | 1,560 | 0 | 15 | 388 | 216 | 122 | 94 | 23 | 1 |
-- |
-- Module : SMSAero.Client
-- Copyright : (c) 2015, GetShopTV
-- License : BSD3
-- Maintainer : nickolay@getshoptv.com
-- Stability : experimental
--
-- SMSAero HTTP servant client and individual client functions.
module SMSAero.Client (
-- * Client
smsAeroClient,
defaultBaseUrl,
SmsAero,
-... | GetShopTV/smsaero | src/SMSAero/Client.hs | bsd-3-clause | 7,487 | 0 | 21 | 2,155 | 1,515 | 792 | 723 | 97 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP #-}
module GHC.Environment (getFullArgs) where
import Foreign
import Foreign.C
import GHC.Base
import GHC.Real ( fromIntegral )
#ifdef mingw32_HOST_OS
import GHC.IO (finally)
import GHC.Windows
# if defined(i386_HOST_ARCH)
# define WI... | jstolarek/ghc | libraries/base/GHC/Environment.hs | bsd-3-clause | 1,760 | 7 | 19 | 333 | 270 | 143 | 127 | 22 | 1 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.APPLE.VertexProgramEvaluators
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-... | haskell-opengl/OpenGLRaw | src/Graphics/GL/APPLE/VertexProgramEvaluators.hs | bsd-3-clause | 1,355 | 0 | 5 | 155 | 120 | 82 | 38 | 24 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Area.Views where
import Text.Blaze.Html5 as H hiding (area, link)
import Text.Blaze.Html5.Attributes as Ha hiding (target)
import Database.Persist.Postgresql
import Control.Monad
import Data.Maybe
import Common.Views
import Area.Links
import Blc.Links
import Apc.Links
import ... | hectorhon/autotrace2 | app/Area/Views.hs | bsd-3-clause | 3,473 | 0 | 20 | 823 | 1,291 | 610 | 681 | 85 | 2 |
{-# LANGUAGE RankNTypes #-}
{- |
Module : GHC.Vis.Types
Copyright : (c) Dennis Felsing
License : 3-Clause BSD-style
Maintainer : dennis@felsin9.de
-}
module GHC.Vis.Types (
Point,
DrawFunction,
Signal(..),
View(..),
ViewType(..),
State(..),
Identifier,
NamedBox,
PState(..),
... | FranklinChen/ghc-vis | src/GHC/Vis/Types.hs | bsd-3-clause | 3,189 | 0 | 13 | 921 | 652 | 395 | 257 | 66 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Setup
-- Copyright : Isaac Jones 2003-2004
-- Duncan Coutts 2007
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell... | trskop/cabal | Cabal/Distribution/Simple/Setup.hs | bsd-3-clause | 88,889 | 0 | 26 | 23,974 | 17,903 | 10,136 | 7,767 | 1,714 | 10 |
-- Copyright (C) 2015 Moritz Schulte <mtesseract@silverratio.net>
module Utilities where
import Data.List
-- import qualified Data.Text as T
----------------------------------------------------------------------
-- Utility Functions --
----------------------------------------------------------------------
nubSort :... | mtesseract/wosa | src/Utilities.hs | bsd-3-clause | 1,357 | 0 | 14 | 285 | 359 | 195 | 164 | 21 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.