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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-2015
-}
-- | Functions to computing the statistics reflective of the "size"
-- of a Core expression
module CoreStats (
-- * Expression and bindings size
coreBindsSize, exprSize,
CoreStats(..), coreBindsSt... | sdiehl/ghc | compiler/coreSyn/CoreStats.hs | bsd-3-clause | 4,766 | 0 | 13 | 1,245 | 1,684 | 899 | 785 | 105 | 1 |
-- quick and dirty size extraction from PNG files
-- see also http://www.w3.org/TR/PNG/
module Util.Png (pngSize) where
import Data.Binary.Get
import qualified Data.ByteString.Lazy as L
import qualified Data.ByteString as S
pngSize :: S.ByteString -> (Int, Int)
pngSize = runGet pngSize' . L.fromChunks . (:[])
pngSi... | Erdwolf/autotool-bonn | server/src/Util/Png.hs | gpl-2.0 | 679 | 0 | 9 | 139 | 204 | 110 | 94 | 22 | 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="ur-PK">
<title>SOAP Support Add-on</title>
<maps>
<homeID>soap</homeID>
<mapref locatio... | thc202/zap-extensions | addOns/soap/src/main/javahelp/org/zaproxy/zap/extension/soap/resources/help_ur_PK/helpset_ur_PK.hs | apache-2.0 | 965 | 82 | 53 | 157 | 396 | 209 | 187 | -1 | -1 |
module WhereIn1 where
data Tree a = Leaf a | Branch (Tree a) (Tree a)
fringe_global x
= fringe x
where
fringe :: (Tree a) -> [a]
fringe (Leaf x) = [x]
fringe (Branch left right)
= case left of
left@(Leaf b_1) -> (fringe left) ++ (fringe right)
le... | kmate/HaRe | old/testing/introCase/WhereIn1AST.hs | bsd-3-clause | 475 | 0 | 12 | 180 | 197 | 103 | 94 | 13 | 4 |
{-# LANGUAGE BangPatterns #-}
import System.Environment
import Control.Applicative
import Data.List
import Data.Ord
import qualified Data.Map as M
import qualified Data.ByteString.Char8 as S
import Data.ByteString.Internal
import Data.ByteString.Unsafe
import Foreign
main = do
f <- head <$> getArgs
x <- S.re... | meiersi/bytestring-builder | tests/Words.hs | bsd-3-clause | 2,140 | 2 | 15 | 698 | 646 | 330 | 316 | 42 | 4 |
{-# OPTIONS_GHC -Wall #-}
module AST.Declaration where
import Data.Binary
import qualified AST.Expression.General as General
import qualified AST.Expression.Source as Source
import qualified AST.Expression.Valid as Valid
import qualified AST.Expression.Canonical as Canonical
import qualified AST.Type as Type
import q... | pairyo/elm-compiler | src/AST/Declaration.hs | bsd-3-clause | 1,887 | 0 | 12 | 485 | 499 | 282 | 217 | 59 | 3 |
module T5665a where
import Language.Haskell.TH
doSomeTH s tp = return [NewtypeD [] n [] (NormalC n [(NotStrict, ConT tp)]) []]
where n = mkName s
| urbanslug/ghc | testsuite/tests/th/T5665a.hs | bsd-3-clause | 157 | 0 | 12 | 36 | 73 | 39 | 34 | 4 | 1 |
module Tut01 where
import Graphics.Rendering.OpenGL
import qualified Graphics.UI.GLUT as UT
import System.IO
import Data.IORef (newIORef, readIORef, writeIORef)
import Foreign.Ptr
import Foreign.C.Types
foreign import ccall unsafe float_mono_time :: IO Double
-- foreign import ccall unsafe glXGetCurrentDisplay :: I... | RichardBarrell/snippets | gltut/Tut01.hs | isc | 2,864 | 0 | 14 | 944 | 739 | 369 | 370 | 66 | 1 |
module Y2021.M03.D30.Exercise where
import Data.List (isSuffixOf)
import System.Directory (listDirectory)
{--
Okay, today, we're going to list (presumably to operate on) certain kinds of
files in a directory. To do that we need to build a filter-function.
--}
filterer :: [String] -> FilePath -> Bool
filterer suffix... | geophf/1HaskellADay | exercises/HAD/Y2021/M03/D30/Exercise.hs | mit | 613 | 0 | 7 | 103 | 81 | 48 | 33 | 7 | 1 |
module Zwerg.UI.GlyphMap where
import Zwerg.Prelude
import Zwerg.Data.Glyph
import Zwerg.Data.GridMap
import Zwerg.Util
type GlyphMap = GridMap GlyphMapCell
blankGlyphMap :: GlyphMap
blankGlyphMap = zBuild (const emptyCellData)
where emptyGlyph = Glyph ' ' (CellColor black $ Just black)
emptyCellData ... | zmeadows/zwerg | lib/Zwerg/UI/GlyphMap.hs | mit | 459 | 0 | 10 | 72 | 121 | 67 | 54 | 12 | 1 |
module Rebase.GHC.TypeNats
(
module GHC.TypeNats
)
where
import GHC.TypeNats
| nikita-volkov/rebase | library/Rebase/GHC/TypeNats.hs | mit | 80 | 0 | 5 | 12 | 20 | 13 | 7 | 4 | 0 |
data Weapon = PEASHOOTER
| HITCHSLAP
| OKAYCANNON
| DIRTYHARRY
| KILLMACHINE
deriving (Enum,Show)
data Engine = HAMSTERPOWER
| HERBIEPOWER
| PINTOPOWER
| BIGHONKINGENGINE
| ARNOLDPOWER
deriving... | mlitchard/IX | spike/weapon_engine_cargo.hs | mit | 889 | 0 | 6 | 453 | 152 | 91 | 61 | 30 | 0 |
{-# LANGUAGE TemplateHaskell, Rank2Types, FlexibleContexts #-}
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances, ConstraintKinds, MultiWayIf #-}
module Chimera.Engine.Core.Field where
import FreeGame
import FreeGame.Class (ButtonState(..))
import Control.Lens
import qualified ... | myuon/Chimera | Chimera/Engine/Core/Field.hs | mit | 12,399 | 0 | 20 | 3,353 | 5,233 | 2,674 | 2,559 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
module Stastics where
import Data.Heap
import Data.Maybe (fromJust)
import qualified Data.Vector.Unboxed as U
import Graphics.EasyPlot
import Statistics.LinearRegression
-- Moving/Running Mean
-- convert raw data... | alokpndy/haskell-learn | src/dataScience/stastics.hs | mit | 3,084 | 0 | 14 | 907 | 963 | 503 | 460 | 49 | 3 |
{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
module Main where
import Data.ByteString (ByteString)
import Data.Conduit
import Data.Conduit.Binary (sourceHandle, sinkHandle)
import Data.Conduit.List as CL
import Data.CSV.Conduit
import Data.Text (Text)
import System.Environment
import System.IO (stdout, stdin, ... | danchoi/csv2dsv | Main.hs | mit | 1,775 | 0 | 15 | 459 | 392 | 206 | 186 | 44 | 2 |
{- |
- Module : CYK
- Description : CYK algorithm
- Copyright : (c) Maciej Bendkowski
-
- Maintainer : maciej.bendkowski@gmail.com
- Stability : experimental
-}
module CYK where
import Data.Array
import Data.List
import Data.Set (Set)
import qualified Data.Set as Set
type... | maciej-bendkowski/blaz | src/CYK.hs | mit | 4,488 | 0 | 19 | 1,415 | 1,136 | 628 | 508 | 67 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.DOMSettableTokenList
(js__get, _get, js_setValue, setValue, js_getValue, getValue,
DOMSettableTokenList, castToDOMSettableTokenList,
gTypeDOMSettableTokenList)
where
import Prelude ((... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/DOMSettableTokenList.hs | mit | 2,306 | 22 | 10 | 317 | 570 | 340 | 230 | 37 | 1 |
module Google.Cloud
( Handle
, createHandle, mkHandle
, Cloud
, evalCloud
) where
import Control.Concurrent.STM
import Network.HTTP.Client (Manager, newManager)
import Network.HTTP.Client.TLS (tlsManagerSettings)
import Google.Cloud.Internal.Types
import Google.Cloud.Internal.Token
-- | ... | wereHamster/google-cloud | src/Google/Cloud.hs | mit | 858 | 0 | 8 | 163 | 157 | 88 | 69 | 18 | 1 |
module Web.Slack.Types
( module Web.Slack.Types.Base
, module Web.Slack.Types.Bot
, module Web.Slack.Types.Channel
, module Web.Slack.Types.ChannelOpt
, module Web.Slack.Types.Comment
, module Web.Slack.Types.Error
, module Web.Slack.Types.Event
, module Web.Slack.Types.Event.Subtype
... | mpickering/slack-api | src/Web/Slack/Types.hs | mit | 1,494 | 0 | 5 | 207 | 341 | 250 | 91 | 45 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.BitSet.Dynamic
-- Copyright : (c) Sergei Lebedev, Aleksey Kladov, Fedor Gogolev 2013
-- Based on Data.BitSet (c) Denis Bueno 2008-2009
-- License : MIT
-- Maintainer : superbobry@gmail.com
... | lambda-llama/bitset | src/Data/BitSet.hs | mit | 549 | 0 | 5 | 102 | 33 | 26 | 7 | 2 | 0 |
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Control.Monad.Except
import Data.Either.Combinators
import System.IO
import Types
import Parse
import Eval
flushStr :: String -> IO ()
flushStr s = putStr s >> hFlush stdout
readPrompt :: String -> IO String
readPrompt prompt = flushStr prompt >> getLine
... | ublubu/wyascheme | src/Main.hs | mit | 920 | 0 | 11 | 186 | 344 | 172 | 172 | 28 | 2 |
module Core (module MusicTheory, blackNotes, chordsWithNotes,
chordsWithExactNotes, toPitch, fromPitch, noteToCOFAngle,
scalesWithNotes, guessScales, majorChordTypes, minorChordTypes,
isMajorChord) where
import Data.Maybe
import qualified Data.List as L
import qualified Data.Map as M
import qualified Sound... | lordi/jazzmate | src/Core.hs | gpl-2.0 | 4,595 | 0 | 12 | 1,082 | 795 | 445 | 350 | 49 | 2 |
-- -*-haskell-*-
-- ** @configure_input@ **
-- ===========================================================================
-- C -> Haskell Compiler: configuration
--
-- Author : Manuel M T Chakravarty
-- Created: 27 September 99
--
-- Copyright (c) [1... | jrockway/c2hs | src/C2HS/Config.hs | gpl-2.0 | 5,563 | 0 | 15 | 1,402 | 682 | 439 | 243 | 70 | 4 |
module Shapes where
import System.IO.Unsafe
import Data.Array.ST
import Data.Array.MArray
import Data.Array
-- oh my goodness, I can't remember the last time I used mutable arrays but here we go
-- I think that using mutable arrays will probably be better than
import Control.Monad.ST
import Control.Monad.Random
imp... | clarissalittler/randomimages | Shapes.hs | gpl-2.0 | 12,932 | 0 | 19 | 4,134 | 4,667 | 2,487 | 2,180 | 227 | 3 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module SnakeRender where
import Control.Applicative
import Linear.V2
import Game.Graphics hiding (loadFont, sprite)
import Game.Folivora.Utils
import Game.Folivora.TileGrid
import Game.Folivora.Render
imp... | caryoscelus/folivora-ge | demos/snake/SnakeRender.hs | gpl-3.0 | 2,211 | 0 | 14 | 860 | 499 | 258 | 241 | 50 | 0 |
{-# LANGUAGE NoImplicitPrelude #-}
module Lamdu.Infer.Internal.Scheme
( makeScheme
, instantiateWithRenames
, instantiate
, generalize
, applyRenames
) where
import Prelude.Compat
import Control.Lens.Operators
import Control.Monad (liftM)
import Data.Map... | da-x/Algorithm-W-Step-By-Step | Lamdu/Infer/Internal/Scheme.hs | gpl-3.0 | 3,160 | 0 | 14 | 672 | 778 | 428 | 350 | -1 | -1 |
module EZID.ANVL
( ANVL
, encode
, parse
) where
import Control.Applicative ((<|>))
import qualified Data.Attoparsec.ByteString.Char8 as P
import Data.Bits (shiftL, (.|.))
import qualified Data.ByteString.Builder as B
import qualified Data.ByteString.Builder.Prim as BP
import Data.ByteString.Internal (c2w)
imp... | databrary/databrary | src/EZID/ANVL.hs | agpl-3.0 | 1,468 | 0 | 14 | 271 | 601 | 330 | 271 | 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 | src/IRCD/Helper.hs | apache-2.0 | 2,048 | 0 | 15 | 371 | 544 | 277 | 267 | 33 | 2 |
module Palindromes.A249641 (a249641) where
import Helpers.PalindromeCounter (countPalindromes)
a249641 :: Int -> Integer
a249641 n = a249641_list !! n
a249641_list :: [Integer]
a249641_list = countPalindromes 8
| peterokagey/haskellOEIS | src/Palindromes/A249641.hs | apache-2.0 | 213 | 0 | 5 | 27 | 58 | 33 | 25 | 6 | 1 |
module CCO.TypeCheck (
typeCheck,
typeCheckATerm
) where
import CCO.Component (component, printer, Component)
import CCO.Tree (parser, ATerm, Tree (fromTree, toTree))
import CCO.TypeCheck.AG
import qualified CCO.TypeCheck.Util as T
import CCO.Feedback (errorMessage, Feedback)
import CCO.Printing (text)
import ... | aochagavia/CompilerConstruction | tdiagrams/lib/CCO/TypeCheck.hs | apache-2.0 | 722 | 0 | 9 | 143 | 218 | 124 | 94 | 18 | 2 |
{-# LANGUAGE BangPatterns #-}
module Data.HaskID
( encode
, decode
, init_haskid
, opts
, haskid
, HaskID
, HashOptions (opt_salt, opt_alphabet, opt_min_length)
) where
import qualified Data.Vector.Unboxed as Vec
import Data.Vector.Unboxed (Vector)
import Data.Vector.Unboxed.Mutable (... | bryant/haskid | src/Data/HaskID.hs | apache-2.0 | 6,595 | 0 | 13 | 1,715 | 2,669 | 1,387 | 1,282 | 149 | 4 |
import Data.List
kai 0 = 1
kai 1 = 1
kai n = n * kai (n-1)
dist m s d =
let d1 = abs $ s - d
d2 = m - d1
mn = minimum [d1,d2]
c = if d1 == d2 then 2 else 1
in
(mn,c)
ans [mx,my,sx,sy,dx,dy] =
let (x,cx) = dist mx sx dx
(y,cy) = dist my sy dy
a = kai (x+y)
b = kai x
... | a143753/AOJ | 1501.hs | apache-2.0 | 484 | 0 | 12 | 191 | 302 | 160 | 142 | 22 | 2 |
module BinaryField
(
Poly(..),
toInt,
fromBits,
fromInt,
zeroPoly,
onePoly,
allPolys,
expand,
embedPoly,
polySum,
polyProduct,
timesX,
polyGCD,
powerOfX,
powerOfY
)
where
import Bit(bitsToInt, intToBits, intWToBits, xor, showTrues)
da... | cullina/Extractor | src/BinaryField.hs | bsd-3-clause | 3,074 | 0 | 12 | 972 | 1,238 | 633 | 605 | 96 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
module Category.Semigroupal
( Semigroupal(Semigroupal)
, tensor_product
, associator
) where
import Functor.Bifunctor (Bifunctor)
import Isomorphism (Isomorphism)
-- associator . associa... | Hexirp/untypeclass | src/Category/Semigroupal.hs | bsd-3-clause | 624 | 0 | 14 | 135 | 164 | 96 | 68 | 18 | 0 |
module Control.Monad.Par.Async where
import Control.Applicative
import Control.Exception
import Control.Monad.Base
import Control.Monad.Catch hiding (try)
import Control.Monad.IO.Class
import Control.Monad.Par.Class
import Control.Monad.Par.IO
import Data.Functor
import Data.Semigroup
newtype Async a = Async { unAsyn... | TerrorJack/monad-par-async | src/Control/Monad/Par/Async.hs | bsd-3-clause | 3,076 | 0 | 18 | 957 | 1,169 | 572 | 597 | -1 | -1 |
{-# LANGUAGE CPP, TypeFamilies #-}
-----------------------------------------------------------------------------
--
-- Machine-dependent assembly language
--
-- (c) The University of Glasgow 1993-2004
--
-----------------------------------------------------------------------------
module X86.Instr (Instr(..), Operand... | frantisekfarka/ghc-dsi | compiler/nativeGen/X86/Instr.hs | bsd-3-clause | 38,581 | 0 | 17 | 12,308 | 9,059 | 4,597 | 4,462 | 592 | 92 |
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, TypeFamilies, DataKinds #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -pgmP cpphs -optP-traditional -optP--cpp #-}
-----------------------------------------------------------------------------
-- |
-- Modu... | achirkin/fastvec | src/Data/Geometry/Instances/Num.hs | bsd-3-clause | 9,470 | 0 | 14 | 4,232 | 510 | 285 | 225 | -1 | -1 |
module Turbinado.Environment.Header (
module Turbinado.Environment.Header,
module Network.HTTP.Headers
) where
import Data.Maybe
import Network.HTTP
import Network.HTTP.Headers
import Turbinado.Controller.Monad
import Turbinado.Environment.Types
import Turbinado.Environment.Request
import Turbinado.Utility.Data... | abuiles/turbinado-blog | Turbinado/Environment/Header.hs | bsd-3-clause | 874 | 0 | 12 | 205 | 202 | 110 | 92 | 18 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
module Hadron.Join
(
DataDefs
, DataSet (..)
, JoinType (..)
, JoinKey
... | Soostone/hadron | src/Hadron/Join.hs | bsd-3-clause | 7,386 | 2 | 15 | 1,876 | 1,468 | 807 | 661 | 127 | 3 |
{-# LANGUAGE EmptyDataDecls, TypeSynonymInstances #-}
{-# OPTIONS_GHC -fcontext-stack42 #-}
module Games.Chaos2010.Database.Section_orderv where
import Games.Chaos2010.Database.Fields
import Database.HaskellDB.DBLayout
type Section_orderv =
Record
(HCons (LVPair Section_order (Expr (Maybe Int)))
... | JakeWheat/Chaos-2010 | Games/Chaos2010/Database/Section_orderv.hs | bsd-3-clause | 466 | 0 | 15 | 67 | 104 | 58 | 46 | 11 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Data.List.Zalgo
-- Copyright : (C) 2015 mniip
-- License : BSD3
-- Maintainer : mniip <mniip@mniip.com>
-- Stability : experimental
-- Portability : portable
--
-- A few efficient list-processing functi... | bitemyapp/zalgo | src/Data/List/Zalgo.hs | bsd-3-clause | 4,480 | 0 | 11 | 1,280 | 1,225 | 659 | 566 | 61 | 3 |
{-# OPTIONS_HADDOCK prune #-}
----------------------------------------------------------------------
-- |
-- Module : ForSyDe.Atom.ExB.Absent
-- Copyright : (c) George Ungureanu, 2015-2016
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : ugeorge@kth.se
-- Stability : experimental
-- ... | forsyde/forsyde-atom | src/ForSyDe/Atom/ExB/Absent.hs | bsd-3-clause | 3,386 | 0 | 12 | 746 | 500 | 296 | 204 | -1 | -1 |
module Hack.Frontend.Happstack where
import Data.Foldable (toList)
import Data.Maybe
import Hack (http, pathInfo, scriptName, queryString, hackInput, serverName, serverPort, Application)
import Happstack.Server
import Happstack.Server.HTTP.Types (Request (..), Version (Version))
import Happstack.Server.SURI (parse)
im... | nfjinjing/hack-frontend-happstack | src/Hack/Frontend/Happstack.hs | bsd-3-clause | 3,519 | 2 | 14 | 918 | 1,044 | 557 | 487 | 72 | 9 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}
-- | This module implements SSA value numbering over the low-level Dalvik IR
--
-- The algorithm used is from Braun et al
-- (<http://www.cdl.uni-saarland.de/papers/bbhlmz13cc.pdf>). The
-- labeling maps each operand of a l... | travitch/dalvik | src/Dalvik/SSA/Internal/Labeling.hs | bsd-3-clause | 50,216 | 0 | 25 | 12,693 | 11,179 | 5,675 | 5,504 | 599 | 46 |
{-
Copyright James d'Arcy 2010
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 conditions and the followi... | jamesdarcy/DicomH | src/Data/Dicom/Accessor.hs | bsd-3-clause | 3,852 | 0 | 7 | 656 | 444 | 243 | 201 | 58 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_G... | conal/reification-rules | src/ReificationRules/HOS.hs | bsd-3-clause | 9,463 | 0 | 15 | 2,040 | 2,408 | 1,305 | 1,103 | 131 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
-- | Cr... | etcinit/craze | src/Network/Craze.hs | bsd-3-clause | 6,505 | 0 | 14 | 1,516 | 901 | 538 | 363 | 86 | 2 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# OPTIONS_HADDOCK prune #-}
{-|
Module : Silver.Compiler.Ast
Description : The ast types for silver.
Copyright : (c) Nicholas Dujay, 2016
License : MIT
Maintainer : nickdujay@gmail.com
Stability : experimental
Portability : POSIX
-}
mo... | silver-lang/silver | src/Silver/Compiler/Ast.hs | bsd-3-clause | 4,920 | 0 | 10 | 891 | 968 | 567 | 401 | 79 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Control.Concurrent
import Control.Monad.Except
import Data.Version (showVersion)
import Paths_tansit (version)
import System.Console.GetOpt
import System.Environment
import System.IO
import System.IO.Temp
import System.ZMQ4.Monadic hiding (version)
i... | madebymany/tansit | src/Main.hs | bsd-3-clause | 2,279 | 0 | 13 | 661 | 667 | 350 | 317 | 52 | 4 |
module Platform where
import Rumpus
-- Platform extent in x & z
w = 4
-- Platform depth in y
d = 0.5
start :: Start
start = do
spawnChild_ $ do
myPose ==> position (V3 0 (-d/2) 0)
myShape ==> Cube
myBody ==> Animated
myBodyFlags ==> [Ungrabbable, T... | lukexi/rumpus | pristine/Intro/Platform.hs | bsd-3-clause | 471 | 0 | 16 | 183 | 137 | 69 | 68 | 14 | 1 |
--------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
import Data.Monoid (mappend)
import Hakyll
--------------------------------------------------------------------------------
main :: IO ()
main = hakyll $ do
match "images/*" $ do... | montagy/montagy.github.io | site.hs | bsd-3-clause | 2,826 | 2 | 21 | 846 | 600 | 269 | 331 | 67 | 1 |
{-|
Module : Idris.Core.Unify
Description : Idris' unification code.
Copyright :
License : BSD3
Maintainer : The Idris Community.
Unification is applied inside the theorem prover. We're looking for holes
which can be filled in, by matching one term's normal form against another.
Returns a list of hole name... | jmitchell/Idris-dev | src/Idris/Core/Unify.hs | bsd-3-clause | 35,188 | 0 | 22 | 14,885 | 14,177 | 7,068 | 7,109 | 620 | 87 |
module Main ( main ) where
import qualified Types.BotTypes as BT
import Control.Monad (forever)
import System.Environment (getArgs)
import System.Exit (ExitCode(ExitSuccess, ExitFailure))
import System.IO (stdout, stdin, hSetBuffering, BufferMode(..))
import System.Process (readProcessWithExitCode)
import Text.Regex.P... | bus000/Dikunt | plugins/AsciiText/Main.hs | bsd-3-clause | 1,645 | 0 | 14 | 350 | 578 | 319 | 259 | 42 | 2 |
{-# LANGUAGE BangPatterns, ScopedTypeVariables, TupleSections #-}
module Language.Haskell.GhcMod.GhcPkg (
ghcPkgList
, ghcPkgListEx
, ghcPkgDbOpt
, ghcPkgDbStackOpts
, ghcDbStackOpts
, ghcDbOpt
, getSandboxDb
, getPackageDbStack
) where
import Config (cProjectVersionInt) -- ghc version
import Contr... | carlohamalainen/ghc-mod | Language/Haskell/GhcMod/GhcPkg.hs | bsd-3-clause | 5,425 | 0 | 16 | 1,177 | 1,537 | 828 | 709 | 118 | 3 |
{-# LANGUAGE FlexibleContexts, TypeFamilies, ViewPatterns, TupleSections #-}
module TypeDiagrams
( drawCode
, typeDiagram
, lined, arrow ) where
import Annotations
import State
import Utils
import Control.Arrow ((***), (&&&), first, second)
import Control.Monad
import Control.Newtype
import Data.Data hiding (t... | mgsloan/panopti | src/TypeDiagrams.hs | bsd-3-clause | 16,562 | 0 | 18 | 5,012 | 5,655 | 2,959 | 2,696 | 317 | 25 |
{-# LANGUAGE BangPatterns #-}
module Data.Tree23.SortedMap (
Map,
empty, singleton,
null, size,
insert, insertAll,
insertWith, insertAllWith,
delete, deleteAll,
member, notMember,
lookup,
fromList, toList,
keys, values,
map, mapKeys, mapKeysMonotonic,
filter, partition,
unionW... | griba2001/tree23-map-set | src/Data/Tree23/SortedMap.hs | bsd-3-clause | 4,100 | 0 | 11 | 831 | 1,698 | 906 | 792 | 90 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module DbTests.TransactionAtmOperatorFee (transactionAtmOperatorFeeTests) where
import Test.Tasty
import Test.Tasty.HUnit
import Db
import DbTests.Internal
transactionAtmOperatorFeeTests :: TestTree
transactionAtmOperatorFeeTests = testGroup "TransactionAtmOperatorFee"
[ testCase... | benkolera/talk-stacking-your-monads | code/tests/DbTests/TransactionAtmOperatorFee.hs | mit | 563 | 0 | 7 | 59 | 93 | 53 | 40 | 15 | 1 |
-- | a module for caching a monadic action based on its return type
--
-- The cache is a HashMap where the key uses the TypeReP from Typeable.
-- The value stored is toDyn from Dynamic to support arbitrary value types in the same Map.
--
-- un-exported newtype wrappers should be used to maintain unique keys in the cach... | geraldus/yesod | yesod-core/src/Yesod/Core/TypeCache.hs | mit | 4,160 | 0 | 13 | 1,009 | 669 | 370 | 299 | 44 | 2 |
{-|
Module : Lib
Description : VECA library
Copyright : (c) 2017 Pascal Poizat
License : Apache-2.0 (see the file LICENSE)
Maintainer : pascal.poizat@lip6.fr
Stability : experimental
Portability : unknown
-}
module Lib
where
import Data.Monoid ((<>))
import Examples.Rover.Mod... | pascalpoizat/veca-haskell | src/Lib.hs | apache-2.0 | 1,712 | 0 | 14 | 474 | 357 | 175 | 182 | 36 | 2 |
-----------------------------------------------------------------------------
--
-- | Parsing the top of a Haskell source file to get its module name,
-- imports and options.
--
-- (c) Simon Marlow 2005
-- (c) Lemmih 2006
--
-----------------------------------------------------------------------------
module Eta.Main.... | rahulmutt/ghcvm | compiler/Eta/Main/HeaderInfo.hs | bsd-3-clause | 13,931 | 0 | 26 | 4,204 | 2,842 | 1,476 | 1,366 | 219 | 11 |
module Handler.Unsubscribe where
import Import
import Model.Subscription
getUnsubscribeR :: Token -> Handler Html
getUnsubscribeR token = do
runDB $ do
subscription <- getBy404 $ UniqueSubscription token
unsubscribe $ entityKey subscription
defaultLayout $ do
setTitle "Unsubscribe"
... | thoughtbot/carnival | Handler/Unsubscribe.hs | mit | 356 | 0 | 12 | 82 | 88 | 41 | 47 | 11 | 1 |
module BuckConverter where
import Tuura.Concept.STG
--ZC absent scenario definition using concepts
circuit uv oc zc gp gp_ack gn gn_ack =
chargeFunc <> uvFunc <> uvReact -- <> zcAbsent
where
interface = inputs [uv, oc, zc, gp_ack, gn_ack] <> outputs [gp, gn]
uvFunc = rise uv ~> rise gp <> rise uv ~> fa... | tuura/concepts | examples/zcAbsent_scenario.hs | bsd-3-clause | 979 | 0 | 13 | 245 | 332 | 168 | 164 | 16 | 1 |
test = foo . not . not | mpickering/hlint-refactor | tests/examples/Default88.hs | bsd-3-clause | 22 | 1 | 6 | 6 | 18 | 7 | 11 | 1 | 1 |
module Text.Parsec.String.Char where
{-
Wrappers for the Text.Parsec.Char module with the types fixed to
'Text.Parsec.String.Parser a', i.e. the stream is String, no user
state, Identity monad.
-}
import qualified Text.Parsec.Char as C
import Text.Parsec.String (Parser)
spaces :: Parser ()
spaces = C.spaces
space... | EliuX/AdHocParser | src/Text/Parsec/String/Char.hs | bsd-3-clause | 1,025 | 0 | 7 | 187 | 319 | 176 | 143 | 37 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
module Data.Word(Word,Word8,Word16,Word32,Word64,WordMax,WordPtr) where
import Jhc.Type.Word
| m-alvarez/jhc | lib/haskell-extras/Data/Word.hs | mit | 129 | 0 | 4 | 10 | 36 | 24 | 12 | 3 | 0 |
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE helpset
PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN"
"http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="en-GB">
<title>ToDo-List</title>
<maps>
<homeID>todo</homeID>
<mapref locat... | veggiespam/zap-extensions | addOns/todo/src/main/javahelp/help/helpset.hs | apache-2.0 | 968 | 92 | 29 | 168 | 401 | 217 | 184 | -1 | -1 |
{-# OPTIONS_GHC -fplugin Simple.RemovePlugin #-}
{-# OPTIONS_GHC -fplugin-opt Simple.RemovePlugin:map #-}
{-# OPTIONS_GHC -fplugin-opt Simple.RemovePlugin:interface #-}
module A where
-- test if a definition can be removed from loaded interface
map :: ()
map = ()
x :: ()
x = map
| sdiehl/ghc | testsuite/tests/plugins/plugins14.hs | bsd-3-clause | 282 | 0 | 5 | 43 | 34 | 22 | 12 | 8 | 1 |
module Yesod.Form.Generic.Bootstrap.Internal where
import Yesod.Core
data MarkdownRender = MarkdownRender
mkYesodSubData "MarkdownRender" [parseRoutes|
/markdown/render MarkdownRenderR POST
|]
| andrewthad/yesod-bootstrap | src/Yesod/Form/Generic/Bootstrap/Internal.hs | mit | 196 | 0 | 5 | 19 | 33 | 21 | 12 | -1 | -1 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Show (
Print(..),
putText,
putLText,
) where
import Prelude ((.), Char, IO)
import qualified Prelude
import Control.Monad.IO.Class (MonadIO,... | ardfard/protolude | src/Show.hs | mit | 1,398 | 0 | 10 | 252 | 386 | 227 | 159 | 42 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- WARNING!!!
-- To work with this example download some .mrc sample
-- It's easy to find one in the internet. I'll attach a link here.
import qualified Data.ByteString as B
import qualified Data.Text as T
import qualified Data.Text.IO as TIO
import qualified Data.Text.Encoding as E... | raventid/coursera_learning | haskell/will_kurt/capstone_mark_to_html.hs | mit | 3,167 | 0 | 11 | 835 | 738 | 418 | 320 | 77 | 2 |
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE RecordWildCards #-}
module Control.Concurrent.TaskMan
( Action
, Task
, TaskManState(_active, _finished)
, TaskMan
, TaskMap
, askId
, setPhase
, setTotalWork
, setD... | vadimvinnik/taskman-hs | src/Control/Concurrent/TaskMan.hs | mit | 4,813 | 0 | 14 | 1,115 | 1,545 | 805 | 740 | 138 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SQLTransactionErrorCallback
(newSQLTransactionErrorCallback,
newSQLTransactionErrorCallbackSync,
newSQLTransactionErrorCallbackAsync, SQLTransactionErrorCallback)
where
import Prelude... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SQLTransactionErrorCallback.hs | mit | 2,671 | 0 | 13 | 565 | 532 | 316 | 216 | 46 | 1 |
module B9.Shake.SharedImageRulesSpec
( spec,
)
where
import B9.Artifact.Readable
import B9.Artifact.Readable.Interpreter (assemble)
import B9.B9Config
import B9.B9Monad
import B9.DiskImages
import B9.Repository
import B9.RepositoryIO
import B9.Shake.SharedImageRules
import B9.Vm
import Control.Exception
import Con... | sheyll/b9-vm-image-builder | src/tests/B9/Shake/SharedImageRulesSpec.hs | mit | 3,380 | 0 | 25 | 1,062 | 760 | 384 | 376 | -1 | -1 |
-- Problems/Problem032.hs
module Problems.Problem032 (p32) where
import Data.List
import Data.Maybe
main = print p32
p32 :: Int
p32 = sum . nub $ [x*y | x <- [1..99], y <- [1..9999], isPandigit x y]
isPandigit :: Int -> Int -> Bool
isPandigit m n = (=="123456789") $ sort $ show m ++ show n ++ show (m*n)
| Sgoettschkes/learning | haskell/ProjectEuler/src/Problems/Problem032.hs | mit | 309 | 0 | 9 | 61 | 149 | 80 | 69 | 8 | 1 |
module Game.Disc where
import Data.Map
import qualified Data.Map as Map
import Data.Text
import Game.Util
import Graphics.Blank
data Disc = White | Black deriving (Show, Eq, Ord)
-- | Swaps the turn
swap :: Disc -> Disc
swap White = Black
swap Black = White
isBlack = (==... | apoorvingle/h-reversi | src/Game/Disc.hs | mit | 1,338 | 0 | 16 | 568 | 432 | 223 | 209 | 37 | 2 |
{-# LANGUAGE QuasiQuotes, TypeFamilies #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE Rank2Types #-}
-- | A Yesod plugin for Authentication via e-mail
--
-- This plugin works out of the box by only setting a few methods on the type class
-- that tell... | ygale/yesod | yesod-auth/Yesod/Auth/Email.hs | mit | 21,068 | 0 | 24 | 6,385 | 3,972 | 2,043 | 1,929 | 340 | 10 |
module Language.Lips.REPL where
--------------------
-- Global Imports --
import qualified Data.Map.Strict as Map
import Control.Monad.State
import System.IO
-------------------
-- Local Imports --
import Language.Lips.Evaluator
import Language.Lips.Parser
import Language.Lips.State
import Language.Lips.Base
-----... | crockeo/lips | src/lib/Language/Lips/REPL.hs | mit | 1,003 | 0 | 13 | 252 | 247 | 128 | 119 | 31 | 2 |
{-# LANGUAGE NoMonomorphismRestriction #-}
-- {-# LANGUAGE TypeFamilies #-}
-- an attempt to try to distill to the simplest form the diagrams
-- simply shows a single box with the doctor login web-services
-- to generate the poster:
-- ghc --make doctorlogin.hs
-- ./doctorlogin. -o doctorlogin..pdf -w 1685 or
-- ./do... | NickAger/LearningHaskell | haskellForMacMiscPlayground/poster2.hsproj/poster2.hs | mit | 4,338 | 0 | 20 | 1,127 | 1,021 | 536 | 485 | 73 | 1 |
import Prelude hiding ( readFile )
import Data.ByteString.Lazy ( readFile )
import Data.Binary.Get ( isEmpty, runGet )
import qualified Data.Binary as B
type Chars = [B.Word8]
printChars :: Chars -> IO()
printChars cs = mapM_ print cs
getChars = do
e <- isEmpty
if e then return []
else do
c <- B.get
cs... | DanielAtSamraksh/checkReceivedSnapshots | testread.hs | mit | 445 | 0 | 12 | 104 | 175 | 92 | 83 | 18 | 2 |
data Cpx = Cpx (Int,Int) deriving (Show, Eq)
instance Num Cpx where
(*) (Cpx (a, b)) (Cpx (c, d)) = Cpx (a*c-b*d, a*d+b*c)
(+) (Cpx (a, b)) (Cpx (c, d)) = Cpx (a+c, b+d)
(-) (Cpx (a, b)) (Cpx (c, d)) = Cpx (a-c, b-d)
negate (Cpx (a, b)) = Cpx (-a, -b)
abs _ = Cpx (0, 0)
signum _ = 0
fromInteger a = Cpx (... | 42f87d89/BinZ | binz.hs | mit | 1,940 | 0 | 14 | 425 | 1,482 | 782 | 700 | 40 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module PostgREST.OpenAPI (
encodeOpenAPI
, isMalformedProxyUri
, pickProxy
) where
import Control.Lens
import Data.Aeson (decode, encode)
import qualified Data.HashMap.Strict as M
import Data.HashMap.Strict.InsOrd (InsO... | Skyfold/postgrest | src/PostgREST/OpenAPI.hs | mit | 11,528 | 0 | 19 | 2,976 | 3,715 | 2,004 | 1,711 | 289 | 4 |
module Settings.Packages.GhcPrim (ghcPrimPackageArgs) where
import GHC
import Oracles.Flag
import Expression
ghcPrimPackageArgs :: Args
ghcPrimPackageArgs = package ghcPrim ? mconcat
[ builder GhcCabal ? arg "--flag=include-ghc-prim"
, builder (Cc CompileC) ?
(not <$> flag GccLt44) ?
(not ... | izgzhen/hadrian | src/Settings/Packages/GhcPrim.hs | mit | 400 | 0 | 14 | 83 | 110 | 57 | 53 | 11 | 1 |
module Y2018.M07.D31.Exercise where
{--
KAKURO-DAY!
Today we're going to be solving arithmetic problems then solving mutually-
dependent arithmetic problems. Some of these problems have more than one
solution, so we have to solve these problems knowing this constraint.
--}
import Data.Array
-- CONTEXT: For x1, x2, ... | geophf/1HaskellADay | exercises/HAD/Y2018/M07/D31/Exercise.hs | mit | 1,466 | 0 | 8 | 293 | 199 | 122 | 77 | 14 | 1 |
{-# LANGUAGE UndecidableInstances, OverlappingInstances, FunctionalDependencies, MultiParamTypeClasses, FlexibleInstances #-}
module Condition
( module Condition
, module Suggest
)
where
import Suggest
import Autolib.Reporter
import Autolib.ToDoc
import Autolib.Reader
import Data.Typeable
class ( ToDoc prop, Re... | Erdwolf/autotool-bonn | src/Condition.hs | gpl-2.0 | 798 | 2 | 10 | 173 | 229 | 120 | 109 | 23 | 1 |
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
module Graph.MST.Weight where
import Autolib.ToDoc
import Autolib.Reader
import Autolib.Graph.Type ( Kante (..) )
import Autolib.FiniteMap ( FiniteMap , lookupWithDefaultFM , listToFM )
import Data.Typeable
import Autolib.Hash ( Hash , hash )
import System.Ran... | Erdwolf/autotool-bonn | src/Graph/MST/Weight.hs | gpl-2.0 | 1,568 | 6 | 13 | 351 | 667 | 356 | 311 | 38 | 2 |
import Control.Concurrent (forkIO)
import Network (connectTo, PortID(..))
import System.Environment (getArgs)
import Control.Monad (forever)
import System.IO (hSetBuffering, BufferMode(..), hGetLine, hPutStrLn)
import GHC.IO.Handle (Handle)
ping :: String
ping = "PING"
pong :: String
pong = "PONG"
startsWith :: Stri... | nkartashov/irc-hs | main.hs | gpl-2.0 | 2,006 | 0 | 13 | 438 | 768 | 383 | 385 | 64 | 2 |
{-# language GADTs, TypeFamilies #-}
-----------------------------------------------------------------------------
-- |
-- Module : Numeric.LinearAlgebra.Sparse.Accelerate
-- Copyright : (c) Marco Zocca 2017
-- License : BSD3 (see the file LICENSE)
--
-- Maintainer : zocca marco gmail
-- Stability : ... | ocramz/sparse-linear-algebra | accelerate/src/Numeric/LinearAlgebra/Sparse/Accelerate.hs | gpl-3.0 | 3,438 | 0 | 11 | 806 | 636 | 377 | 259 | 42 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Toy.Backend.Classify where
import AI.DecisionTree
import Data.Aeson
import Data.Aeson.TH
import Data.Text (pack)
import Yesod.Core
data Classify = Classify (DecisionTree Bool Bool) deriving Show
deriveJSON defaultOptions ... | Qinka/reimagined-pancake | toy-backend/toy-backend-classify/src/dt/Toy/Backend/Classify.hs | gpl-3.0 | 582 | 0 | 11 | 139 | 197 | 104 | 93 | 13 | 1 |
-- | A collection of default remotes.
--
-- These remotes are installed on an LXD instance by default.
--
-- Run @lxc image list@ for more information.
module Network.LXD.Client.Remotes where
import Network.LXD.Client.Internal.Prelude
imagesRemote :: String
imagesRemote = "https://images.linuxcontainers.org"
ubuntuR... | hverr/haskell-lxd-client | src/Network/LXD/Client/Remotes.hs | gpl-3.0 | 483 | 0 | 4 | 55 | 51 | 35 | 16 | 8 | 1 |
-- | Many-sorted first-order logic with equality.
module Logic.FOL.Sorted where
import Data.Maybe
import Data.List
import Control.Basics
import Text.PrettyPrint.Applicative
infixl 3 .&&
infixl 2 .||
infixr 1 .==>
infixl 1 .<==
infix 1 .<=>
infix 4 .==
infix 4 ./=
-- Utilities
------------
-- | Apply a function ... | meiersi/scyther-proof | src/Logic/FOL/Sorted.hs | gpl-3.0 | 5,052 | 1 | 14 | 1,209 | 2,394 | 1,257 | 1,137 | 154 | 7 |
module VirMat.IO.Export.VTK.VTKODFRender
( renderVTK
, writeVTKfile )
where
import qualified Data.Vector as V
import Data.XML.Types
import qualified Text.XML.Enumerator.Document as X
import VirMat.Distributions.Texture.DiscreteODF ( DiscODF, step, nPHI1, nPHI, nPHI2, sPHI1, sPHI, sPHI2, o... | lostbean/VirMat | src/VirMat/IO/Export/VTK/VTKODFRender.hs | gpl-3.0 | 917 | 0 | 9 | 211 | 299 | 171 | 128 | 18 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Labels/Get.hs | mpl-2.0 | 3,133 | 0 | 14 | 756 | 388 | 235 | 153 | 62 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/DescribeSpotPriceHistory.hs | mpl-2.0 | 9,438 | 0 | 11 | 1,990 | 1,190 | 711 | 479 | 118 | 1 |
module ProjectM36.DataTypes.Primitive where
import ProjectM36.Base
primitiveTypeConstructorMapping :: TypeConstructorMapping
primitiveTypeConstructorMapping = boolMapping : map (\(name, aType) ->
(PrimitiveTypeConstructorDef name aType, [])) prims
where
prims = [("Integer", Inte... | agentm/project-m36 | src/lib/ProjectM36/DataTypes/Primitive.hs | unlicense | 2,214 | 0 | 10 | 401 | 470 | 257 | 213 | 42 | 1 |
{-# LANGUAGE GADTs, RankNTypes #-}
-----------------------------------------------------------------------------
-- Copyright 2019, Ideas project team. This file is distributed under the
-- terms of the Apache License 2.0. For more information, see the files
-- "LICENSE.txt" and "NOTICE.txt", which are included in ... | ideas-edu/ideas | src/Ideas/Encoding/Evaluator.hs | apache-2.0 | 2,665 | 0 | 17 | 704 | 822 | 423 | 399 | 46 | 5 |
{-
Copyright 2020 The CodeWorld Authors. All rights reserved.
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 applicab... | google/codeworld | codeworld-prediction/src/CodeWorld/Prediction/Paper.hs | apache-2.0 | 3,496 | 0 | 12 | 726 | 1,151 | 608 | 543 | 61 | 1 |
{-|
Module : Marvin.API.Table.DataType
Description : Basic attribute types. Both static and dynamic.
-}
module Marvin.API.Table.DataType where
-- | Dynamic attribute type.
data DataType = Binary | Nominal | Numeric | Natural deriving (Eq, Show)
-- | Typeclass for static attribute types.
class DataTypeClass a whe... | gaborhermann/marvin | src/Marvin/API/Table/DataType.hs | apache-2.0 | 1,104 | 0 | 7 | 197 | 221 | 125 | 96 | 21 | 0 |
-- | Provisional grammar selection module.
module NLP.Skladnica.Walenty.Select
( select
, select'
) where
import qualified Data.Set as S
import qualified Data.Map.Strict as M
import Data.Text (Text)
import qualified NLP.Partage.Tree.Other as O... | kawu/skladnica-with-walenty | src/NLP/Skladnica/Walenty/Select.hs | bsd-2-clause | 1,182 | 0 | 10 | 281 | 275 | 158 | 117 | 24 | 1 |
{-# LANGUAGE RecordWildCards #-}
import qualified Graphics.UI.GLFW as GLFW
import Graphics.GL
import Graphics.GL.Freetype
import Data.Bits
import Control.Monad
import Linear
import SetupGLFW
import ShaderLoader
-- import Cube
import GlyphQuad
-------------------------------------------------------------
-- A test to... | lukexi/wboit | test/TestBasic.hs | bsd-2-clause | 2,624 | 0 | 17 | 625 | 662 | 339 | 323 | 50 | 2 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QImage.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:22
Warning : this file is machine generated - do not mo... | uduki/hsQt | Qtc/Gui/QImage.hs | bsd-2-clause | 66,300 | 0 | 16 | 11,799 | 24,378 | 12,503 | 11,875 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.