code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Tarefa2_2017li1g180 where
import LI11718
import Data.List
import Data.Maybe
import Safe
import Tarefa1_2017li1g180
testesT2 :: [Tabuleiro]
testesT2 = tabs
validaPos :: Posicao -> Tabuleiro -> Bool
-- hpacheco: mudei para incluir parede
validaPos (x,y) t = x <= maybe 0 length (headMay t) && y <= length t
pon... | hpacheco/HAAP | examples/plab/svn/2017li1g180/src/Tarefa2_2017li1g180.hs | mit | 5,923 | 0 | 14 | 1,573 | 2,938 | 1,524 | 1,414 | 95 | 2 |
module Shikensu.Utilities
( (!~>)
, (~>)
, io
, lsequence
, mapIO
) where
import Data.Aeson (FromJSON, ToJSON, fromJSON)
import Data.Maybe (fromMaybe)
import Data.Monoid ((<>))
import Data.Text (Text)
import Flow
import Shikensu.Internal.Types
import qualified Data.Aeson as Json (Object, Resul... | icidasset/shikensu | src/Shikensu/Utilities.hs | mit | 2,512 | 0 | 14 | 647 | 668 | 381 | 287 | 59 | 2 |
{- Find the Kth element of a list. -}
nth :: [a] -> Int -> a
nth [] _ = error "cannot perform nth in a empty list"
nth (h:t) 0 = h
nth (h:t) p = nth t (p - 1)
| andrewaguiar/s99-haskell | p03.hs | mit | 160 | 0 | 7 | 42 | 79 | 41 | 38 | 4 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( getApplicationDev
, appMain
, develMain
, makeFoundation
, makeLogWare
-- * for DevelMain
, getApplicationRepl
, shutdownApp
-- * for GHCI
, handler
, db
) where
import Control.Monad.Logger (liftL... | rpeszek/crud-ex-backend-yesod | Application.hs | mit | 6,981 | 0 | 13 | 1,790 | 1,058 | 567 | 491 | -1 | -1 |
module Physics.Scenes.Rolling where
import Control.Monad.ST
import Physics.Constraint
import Physics.Contact.Types
import Physics.Engine
import Physics.Scenes.Scene
import Physics.World
shapeA :: PhysicalObj
shapeA = makePhysicalObj (0, 0) 0 (0, -6) 0 (0, 0)... | ublubu/shapes | shapes/src/Physics/Scenes/Rolling.hs | mit | 1,043 | 0 | 9 | 237 | 461 | 259 | 202 | 28 | 1 |
module Hoqus.MtxFun where
import Data.List (transpose)
-- | Diagonal of a matrix. This function ignores the non-sqare part of the
-- matrix.
diag :: [[a]] -> [a]
diag m = zipWith (!!) m [0..((min (length m) (length $ transpose m))-1)]
-- | Trace of a matrix. This function ignores the non-sqare part of the matrix.
tr... | jmiszczak/hoqus | alternative/MtxFunLists.hs | mit | 364 | 0 | 13 | 72 | 129 | 72 | 57 | 6 | 1 |
module App where
import Gol3d.Life hiding ( Position )
import Data.IORef
import qualified Data.Map as M
import Graphics.UI.GLUT
import Types
-- | Get the position of the cursor in the game with a given radius from
-- the camera position.
cursorLocation' :: GLfloat -> CamState -> Vector3 GLfloat
cursorLocation' r (C... | labcoders/gol3d-hs | src/App.hs | mit | 5,069 | 0 | 18 | 1,442 | 1,315 | 671 | 644 | 84 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-environment.html
module Stratosphere.ResourceProperties.BatchJobDefinitionEnvironment whe... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/BatchJobDefinitionEnvironment.hs | mit | 1,985 | 0 | 12 | 205 | 264 | 151 | 113 | 27 | 1 |
module Main (main) where
import Codec.Archive.Zip
import qualified Data.ByteString.Lazy as B
import Control.Monad
import Control.Applicative ((<$>))
import Data.List
import Data.Bits
import Data.Maybe
import Data.Char
import Data.Array.ST
import Data.Array.Unboxed
import Data.Binary
import Data.Binary... | jkff/jarfind | Main.hs | gpl-2.0 | 6,722 | 0 | 14 | 2,450 | 1,835 | 968 | 867 | 117 | 5 |
-- circulos_trasladados_ampliados.hs
-- Círculos trasladados y ampliados.
-- José A. Alonso Jiménez <jalonso@us.es>
-- Sevilla, 20 de Mayo de 2013
-- ---------------------------------------------------------------------
-- ---------------------------------------------------------------------
-- Ejercicio. ¿Qué dibujo ... | jaalonso/I1M-Cod-Temas | src/Tema_25/circulos_trasladados_ampliados.hs | gpl-2.0 | 616 | 0 | 9 | 68 | 103 | 59 | 44 | 5 | 1 |
{- | Module : $Header$
- Description : Implementation of generic data structures and functions
- Copyright : (c) Daniel Hausmann & Georgel Calin & Lutz Schroeder, DFKI Lab Bremen,
- Rob Myers & Dirk Pattinson, Department of Computing, ICL
- License : GPLv2 or higher, see LICENSE.txt
- ... | nevrenato/Hets_Fork | GMP/versioning/gmp-coloss-0.0.3/GMP/Generic.hs | gpl-2.0 | 4,476 | 10 | 15 | 1,021 | 1,017 | 545 | 472 | -1 | -1 |
import QHaskell.QDSL
import qualified QHaskell.Environment.Typed as ET
import qualified QHaskell.Environment.Scoped as ES
import qualified QHaskell.Type.GADT as TG
import qualified QHaskell.Nat.GADT as NG
import QHaskell.Expression.Utils.TemplateHaskell as TH
iff :: Bool -> a -> a -> a
iff l m n = if l then m else n
... | shayan-najd/QHaskell | Tests/PolyMorphism.hs | gpl-3.0 | 1,667 | 6 | 14 | 361 | 302 | 172 | 130 | -1 | -1 |
-- One of many possible language extensions
-- Here is the error we get from the compiler when we remove this clause:
--
-- Sound.hs:74:9:
-- Ambiguous type variable `a0' in the constraints:
-- (RealFrac a0) arising from a use of `truncate' at Sound.hs:74:9-16
-- (Num a0) arising from a use of `*' at So... | abailly/haskell-synthesizer | Sound.hs | gpl-3.0 | 6,220 | 0 | 13 | 1,477 | 529 | 319 | 210 | 27 | 1 |
{-# LANGUAGE CPP, OverloadedStrings #-}
-- |
-- Copyright : (C) 2014-2018 Jens Petersen
--
-- Maintainer : Jens Petersen <petersen@fedoraproject.org>
--
-- Explanation: Updating of Upstream Release Monitoring bugs
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of t... | fedora-haskell/fedora-haskell-tools | fhbz.hs | gpl-3.0 | 7,304 | 0 | 24 | 1,566 | 2,146 | 1,140 | 1,006 | 128 | 6 |
{- Types
Gregory W. Schwartz
Collections the types used in the program.
-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Types where
-- Standard
import GHC.Generics
import Control.DeepSeq (NFData)
-- Cabal
import qualified Data.Text as T
import Data.Aeson
import qualified Forei... | GregorySchwartz/convert-annotation | src/Types.hs | gpl-3.0 | 1,350 | 0 | 9 | 354 | 330 | 215 | 115 | 33 | 0 |
{-|
Module : Data.HdrHistogram
Copyright : (c) Josh Bohde, 2015
License : GPL-3
Maintainer : josh@joshbohde.com
Stability : experimental
Portability : POSIX
A Haskell implementation of <http://www.hdrhistogram.org/ HdrHistogram>.
It allows storing counts of observed values within a range,
while maintaini... | joshbohde/hdr-histogram | src/Data/HdrHistogram.hs | gpl-3.0 | 3,657 | 0 | 13 | 907 | 957 | 528 | 429 | -1 | -1 |
module Simplify where
import Expr
import Lit
simplify :: Expr -> Either String Lit
simplify = simp
simp :: Expr -> Either String Lit
simp e = Left "tst"
simp (Add x y) = Left "" --case simplify x of
{-
simp (Sub x y) =
simp (Mul x y) =
simp (Div x y) =
-}
{-
simp :: Expr -> Either String Lit... | MaximKN/Haskell1 | src/Simplify.hs | gpl-3.0 | 1,388 | 0 | 7 | 374 | 76 | 41 | 35 | 8 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
module Database.Design.Ampersand.Output.ToJSON.MySQLInstaller
(MySQLInstaller)
where
import Database.Design.Ampersand.Output.ToJSON.JSONutils
import Database.Design.Ampersand.Prototype.Generate
data MySQLIns... | 4ZP6Capstone2015/ampersand | src/Database/Design/Ampersand/Output/ToJSON/MySQLInstaller.hs | gpl-3.0 | 725 | 0 | 9 | 91 | 126 | 78 | 48 | 17 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-- |
-- Module : Network.Google.Internal.Logger
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla Public License, v.... | rueshyna/gogol | gogol/src/Network/Google/Internal/Logger.hs | mpl-2.0 | 7,057 | 0 | 13 | 2,155 | 1,685 | 909 | 776 | 137 | 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.YouTubeRepo... | rueshyna/gogol | gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types/Product.hs | mpl-2.0 | 15,556 | 0 | 17 | 4,069 | 3,086 | 1,777 | 1,309 | 346 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/Routes/Get.hs | mpl-2.0 | 3,148 | 0 | 15 | 782 | 393 | 237 | 156 | 63 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Drafts/Delete.hs | mpl-2.0 | 5,096 | 0 | 19 | 1,257 | 791 | 462 | 329 | 115 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Test.Framework (defaultMain, testGroup)
import Test.Framework.Providers.HUnit
import Test.HUnit
import Control.Monad (when)
import Control.Monad.State
import qualified Data.Set as Set
import Data.Monoid
import Data.List
imp... | wjt/bustle | Test/Renderer.hs | lgpl-2.1 | 4,353 | 0 | 14 | 1,067 | 1,002 | 529 | 473 | 77 | 1 |
module RomanNumerals where
import Data.List
type Numeral = String
type MixedNumber = (String, Int)
data RomanDigit = RomanDigit String Int
digits = reverse [
RomanDigit "I" 1,
RomanDigit "IV" 4,
RomanDigit "V" 5,
RomanDigit "IX" 9,
RomanDigit "X" 10,
RomanDigit "XL" 40,
... | joelea/haskell-roman-numerals | src/RomanNumerals.hs | apache-2.0 | 717 | 0 | 9 | 196 | 224 | 117 | 107 | 21 | 1 |
-- Type-Safe Observable sharing
-- shallow embedding
newtype Bit = Bit [Bool] deriving Show
xor :: Bit -> Bit -> Bit
xor (Bit xs) (Bit ys) = Bit $ zipWith (/=) xs ys
delay :: Bit -> Bit
delay (Bit xs) = Bit $ False : xs
run :: (Bit -> Bit) -> [Bool] -> [Bool]
run f bs = rs
where
(Bit rs) = f (Bit bs)
-- >... | egaburov/funstuff | Haskell/sharing/observable0.hs | apache-2.0 | 477 | 0 | 9 | 116 | 192 | 103 | 89 | 11 | 1 |
import Helpers.ListHelpers (cartesianProduct)
isVisible [(x1,y1),(x2,y2)] = 1 == gcd (x1 - x2) (y1 - y2)
-- Probably correct.
a331771 n = length $ filter isVisible $ cartesianProduct 2 points where
points = [(x, y) | x <- [1..n], y <- [1..n]]
| peterokagey/haskellOEIS | src/Sandbox/VisiblePoints.hs | apache-2.0 | 247 | 0 | 10 | 45 | 127 | 70 | 57 | 4 | 1 |
{-| Implementation of cluster-wide logic.
This module holds all pure cluster-logic; I\/O related functionality
goes into the /Main/ module for the individual binaries.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or withou... | dimara/ganeti | src/Ganeti/HTools/Cluster.hs | bsd-2-clause | 46,104 | 0 | 23 | 14,427 | 9,940 | 5,409 | 4,531 | 758 | 8 |
call :: (Delta d, AAM aam) => d -> aam
-> Time aam -> Env aam -> Store d aam -> Call
-> Set (Call, Env aam, Store d aam)
call d aam t e s (If a tc fc) =
eachInSet (atom d e s a) $ \ v ->
eachInSet (elimBool d v) $ \ b ->
setSingleton (if b then tc else fc, e, s)
call d aam t e s (App fa xas) =... | davdar/quals | writeup-old/sections/03AAMByExample/03AbstractSemantics/01Call.hs | bsd-3-clause | 505 | 0 | 14 | 157 | 303 | 154 | 149 | 12 | 2 |
{-# LANGUAGE TupleSections #-}
module PolyPaver.Simplify.Substitution
--(
-- simplifyUsingSubstitutions
--)
where
import PolyPaver.Form
import PolyPaver.Subterms
import PolyPaver.Vars (getFormFreeVars)
import qualified Data.Set as Set
simplifyUsingSubstitutions ::
Form TermHash -> [(Form TermHash, String)]... | michalkonecny/polypaver | src/PolyPaver/Simplify/Substitution.hs | bsd-3-clause | 15,476 | 0 | 16 | 5,293 | 3,365 | 1,722 | 1,643 | 254 | 42 |
module Lang.Parser where
import Control.Monad
import Lang.Types
import Text.ParserCombinators.Parsec
import Text.Parsec.Token (LanguageDef, commentStart, commentEnd, commentLine,
nestedComments, identStart, identLetter, opStart, opLetter,
reservedOpNames, reservedN... | jasonbaker/lang | Lang/Parser.hs | bsd-3-clause | 2,780 | 0 | 12 | 945 | 813 | 428 | 385 | 81 | 2 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE StandaloneDeriving #-}
module Math.Logic.Formula where
import Control.Applicative
import Control.Lens
import Data.Set (Set)
import Data.Foldable (Foldable(..))
import Da... | gwils/formulas | src/Math/Logic/Formula.hs | bsd-3-clause | 2,130 | 0 | 13 | 624 | 857 | 426 | 431 | 48 | 1 |
module Main where
import Idris.Core.TT
import Idris.AbsSyntax
import Idris.ElabDecls
import Idris.Main
import IRTS.Compiler
import IRTS.CodegenJavaScript
import System.Environment
import System.Exit
import Paths_idris
data Opts = Opts { inputs :: [FilePath]
, output :: FilePath
}
... | enolan/Idris-dev | codegen/idris-codegen-node/Main.hs | bsd-3-clause | 1,227 | 0 | 12 | 367 | 372 | 190 | 182 | 32 | 3 |
{-# LANGUAGE KindSignatures, GADTs, FlexibleInstances, ScopedTypeVariables #-}
module Network.LambdaBridge.Bus where
import Network.LambdaBridge.Bridge
import Control.Concurrent
import Control.Concurrent.MVar
import Control.Applicative
import Data.Monoid
import Data.Word
import Control.Monad.Writer
import Data.Map a... | andygill/lambda-bridge | Network/LambdaBridge/Bus.hs | bsd-3-clause | 5,454 | 4 | 17 | 1,909 | 1,645 | 828 | 817 | 110 | 4 |
module Lucid.FoundationSpec (main, spec) where
import Lucid.Foundation
import Test.Hspec
import Test.QuickCheck
import Test.QuickCheck.Instances
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "someFunction" $ do
it "should work fine" $ do
property someFunction
someFunction :: Bool -> B... | athanclark/lucid-foundation | test/Lucid/FoundationSpec.hs | bsd-3-clause | 363 | 0 | 13 | 70 | 116 | 61 | 55 | 14 | 1 |
latticePaths :: Num a => Int -> a
latticePaths size = iterate (scanl1 (+)) (repeat 1) !! size !! size
main :: IO ()
main = print $ latticePaths 20
| JacksonGariety/euler.hs | 015.hs | bsd-3-clause | 148 | 0 | 9 | 31 | 79 | 38 | 41 | 4 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module NejlaCommon.Config
( getConfGenericMaybe
, getConfGeneric
, getConf'
, getConfMaybe'
, getConf
, getConfMaybe
, getConfBool
, getConfBoolMaybe
, loadConf
, Conf.Config
, Conf.Name
) where
import Control.Monad.... | nejla/nejla-common | src/NejlaCommon/Config.hs | bsd-3-clause | 5,952 | 0 | 23 | 1,814 | 1,117 | 590 | 527 | 112 | 3 |
{-# LANGUAGE QuasiQuotes, TemplateHaskell, ViewPatterns #-}
-- modules of THIS package
import Data.Graph.EasyGrapher
import Data.Graph.PageRank
-- module of fgl
import Data.Graph.Inductive
-- Standard EGGraph Notation & buildGraph
egg1 :: EGGraph String
egg1 = [
"D1" :=> "D2", "D1" :=> "D3", "D1" :=> "D4", "D2" :=>... | konn/graph-utils | Sample.hs | bsd-3-clause | 2,844 | 57 | 10 | 585 | 765 | 419 | 346 | 47 | 1 |
module Main where
import qualified MainCabal as MC
import qualified MainHoogle as MH
import Paths_simple_hunt
import System.Directory (copyFile, createDirectoryIfMissing)
import System.IO
main = do
hSetBuffering stdout NoBuffering
-- create json/00-schema.js
schemaPath <- getDataFileName "00-schema.js"
create... | erantapaa/simple-hunt | app/Main.hs | bsd-3-clause | 527 | 0 | 8 | 73 | 100 | 52 | 48 | 14 | 1 |
module PFDS.Sec5.Ex1 where
import Prelude hiding (head, last, tail, init)
{-| Doctests for Deque
>>> foldl snoc (empty :: BatchedDeque Int) [1..10]
Q [1] [10,9,8,7,6,5,4,3,2]
>>> cons (empty :: BatchedDeque Int) 1
Q [1] []
>>> cons (cons (empty :: BatchedDeque Int) 1) 2
Q [2] [1]
>>> head $ Q [1] [... | matonix/pfds | src/PFDS/Sec5/Ex1.hs | bsd-3-clause | 1,880 | 0 | 10 | 559 | 770 | 395 | 375 | 38 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns#-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUA... | geraldus/yesod | yesod-core/test/RouteSpec.hs | mit | 13,589 | 2 | 22 | 4,321 | 3,079 | 1,575 | 1,504 | 217 | 1 |
{-# LANGUAGE DeriveFunctor, DeriveFoldable #-}
module Types
( module Types, Word8, Word16, Word32 )
where
import qualified Data.ByteString.Lazy as B
import Data.Word
import qualified Data.Map as M
import Data.Foldable (Foldable)
-- Main data types
type Offset = Word32
type Segment = (Offset, Word32, [String])
t... | christiannolte/tip-toi-reveng | src/Types.hs | mit | 2,752 | 0 | 13 | 633 | 879 | 528 | 351 | 83 | 0 |
--
--
--
-----------------
-- Exercise 7.15.
-----------------
--
--
--
module E'7'15 where
import E'7'12 ( iSort )
import Test.QuickCheck
-- If we sort the same set of 'objects in any order', the result should always be the same sorted set.
-- Especially an already sorted sets' elements should preserve their o... | pascal-knodel/haskell-craft | _/links/E'7'15.hs | mit | 607 | 0 | 7 | 107 | 74 | 47 | 27 | 8 | 1 |
-- The 'unix' module provides 'RawFilePath'-variants of all functions, but
-- higher-level wrappers of it such as 'directory' or 'process' doesn't.
-- This module provides it.
--
module RawFilePath
( RawFilePath
, callProcess
, callProcessSilent
, readProcess
, rwProcess
, eraseProcess
, get... | kinoru/prospect | src/RawFilePath.hs | agpl-3.0 | 5,532 | 0 | 20 | 1,473 | 1,594 | 791 | 803 | 146 | 4 |
-- |
-- Copyright : (c) Sam Truzjan 2013
-- License : BSD3
-- Maintainer : pxqr.sta@gmail.com
-- Stability : experimental
-- Portability : portable
--
-- Every node maintains a routing table of known good nodes. The
-- nodes in the routing table are used as starting points for
-- queries i... | DavidAlphaFox/bittorrent | src/Network/BitTorrent/DHT/Routing.hs | bsd-3-clause | 15,882 | 3 | 16 | 3,887 | 3,815 | 1,983 | 1,832 | -1 | -1 |
--------------------------------------------------------------------
-- |
-- Module : Text.RSS.Syntax
-- Copyright : (c) Galois, Inc. 2008
-- License : BSD3
--
-- Maintainer: Sigbjorn Finne <sof@galois.com>
-- Stability : provisional
-- Description: The basic syntax for putting together feeds. For instance,
-- to... | GaloisInc/feed | Text/RSS/Syntax.hs | bsd-3-clause | 8,060 | 0 | 10 | 2,621 | 1,550 | 947 | 603 | 223 | 1 |
{-# OPTIONS -fallow-undecidable-instances #-}
import Testsuite
import Data.Array.Parallel.Unlifted
class (Eq a, UA a) => U a
instance (Eq a, UA a) => U a
$(testcases [ "" <@ [t| ( (), Char, Bool, Int ) |]
, "acc" <@ [t| ( (), Int ) |]
, "num" <@ [t| ( Int ... | mainland/dph | dph-test/old/UnliftedSU.hs | bsd-3-clause | 2,034 | 0 | 9 | 632 | 127 | 79 | 48 | -1 | -1 |
module PTS.Process
( main
, processFile
) where
import PTS.Process.File
import PTS.Process.Main
| Toxaris/pts | src-lib/PTS/Process.hs | bsd-3-clause | 103 | 0 | 4 | 19 | 26 | 17 | 9 | 5 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE RecordWildCards #-}
module Tinc.Nix (
NixCache
, cabal
, nixShell
, resolverFile
, createDerivations
#ifdef TEST
, Function (..)
, defaultDerivation
, shellDerivation
, resolverDerivation
, pkgImport
, parseNixFunction
, disableTests
, extractDependencie... | sol/tinc | src/Tinc/Nix.hs | mit | 7,313 | 0 | 17 | 1,460 | 1,997 | 1,066 | 931 | 153 | 3 |
{- path manipulation
-
- Copyright 2010-2014 Joey Hess <id@joeyh.name>
-
- License: BSD-2-clause
-}
{-# LANGUAGE PackageImports, CPP #-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Utility.Path where
import Data.String.Utils
import System.FilePath
import System.Directory
import Data.List
import Data.Maybe
import ... | sjfloat/propellor | src/Utility/Path.hs | bsd-2-clause | 10,401 | 18 | 15 | 2,015 | 1,895 | 984 | 911 | 140 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Tests.Readers.Org (tests) where
import Text.Pandoc.Definition
import Test.Framework
import Tests.Helpers
import Text.Pandoc.Builder
import Text.Pandoc
import Data.List (intersperse)
import Data.Monoid (mempty, mappend, mconcat)
import Text.Pandoc.Error
org :: String -> Pandoc... | ddssff/pandoc | tests/Tests/Readers/Org.hs | gpl-2.0 | 45,121 | 0 | 22 | 21,277 | 8,271 | 4,509 | 3,762 | 996 | 1 |
{-|
Purely functional weight balanced trees, aka trees of bounded balance.
* J. Nievergelt and E.M. Reingold, \"Binary search trees of
bounded balance\", Proceedings of the fourth annual ACM symposium on
Theory of computing, pp 137-142, 1972.
* S. Adams, \"Implementing sets efficiently in a func... | mightymoose/liquidhaskell | benchmarks/llrbtree-0.1.1/Data/Set/WBTree.hs | bsd-3-clause | 11,431 | 0 | 18 | 2,946 | 3,424 | 1,687 | 1,737 | 184 | 4 |
import qualified Data.Vector as U
main = print . U.null . U.filter (>10) . U.map (subtract 6) . U.enumFromTo 1 $ (100000000 :: Int)
| dolio/vector | old-testsuite/microsuite/null.hs | bsd-3-clause | 133 | 1 | 10 | 25 | 70 | 36 | 34 | 2 | 1 |
{-# LANGUAGE RankNTypes #-}
module T12082 where
import Data.Typeable (Typeable)
import Control.Monad.ST (RealWorld)
f :: forall a. (forall b. Typeable b => b -> a) -> a
f = undefined :: (RealWorld -> a) -> a
| ezyang/ghc | testsuite/tests/typecheck/should_compile/T12082.hs | bsd-3-clause | 211 | 0 | 10 | 39 | 78 | 46 | 32 | 6 | 1 |
{-# LANGUAGE TemplateHaskell #-}
-- Two sliced declarations bind the same variable.
-- This test checks that there's a reasonable error message
module ShouldCompile where
$( [d| x = 1 |] )
$( [d| x = 2 |] )
| ryantm/ghc | testsuite/tests/th/TH_dupdecl.hs | bsd-3-clause | 211 | 0 | 6 | 43 | 29 | 20 | 9 | 4 | 0 |
{-# LANGUAGE DeriveGeneric #-}
module RunnyBabbot.TwitterData
( Tweet(..)
, User(..)
, TweetResponse(..)
) where
import Data.Aeson
import GHC.Generics
import Data.Text (Text)
-- LHS in these records is not camelcase since it's the data format
-- that Twitter gives us in JSON.
data User = User { scre... | jsl/RunnyBabbot | src/RunnyBabbot/TwitterData.hs | mit | 644 | 0 | 9 | 144 | 164 | 98 | 66 | 23 | 0 |
module Network.Stun.MappedAddress where
import Control.Applicative ((<$>))
import Control.Monad
import Data.Bits
import Data.Serialize
import Data.Word
import Network.Endian
import Network.Socket
import Network.Stun.Base
xmaAttributeType :: Word16
xmaAttributeType = 0x0020
maAttributeType :: Word16
maAttributeType =... | Philonous/hs-stun | source/Network/Stun/MappedAddress.hs | mit | 2,833 | 0 | 16 | 702 | 788 | 415 | 373 | 78 | 3 |
--------------------------------------------------------------------
{-|
Module : SDL.Cairo.Image.Loader
Copyright : Copyright (c) 2015 Yun-Yan Chi
License : MIT
Maintainer : jaiyalas@gmail.com
This module exposes wrapper functions to load image files into memory
by using JuicyPixel (See <https://hackage.... | jaiyalas/sdl2-cairo-image | src/SDL/Cairo/Image/Load.hs | mit | 4,960 | 0 | 12 | 1,471 | 2,118 | 1,223 | 895 | 142 | 4 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Hpack.UtilSpec (main, spec) where
import Data.Aeson
import Data.Aeson.QQ
import Data.Aeson.Types
import Helper
import System.Directory
import Hpack.Config
import Hpack.Util
mai... | deech/hpack | test/Hpack/UtilSpec.hs | mit | 5,702 | 0 | 21 | 1,535 | 1,660 | 829 | 831 | 121 | 1 |
{-
Copyright (C) 2012-2017 Jimmy Liang <http://gsd.uwaterloo.ca>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, mod... | gsdlab/claferIG | src/Language/Clafer/IG/Process.hs | mit | 3,050 | 0 | 12 | 580 | 516 | 270 | 246 | 38 | 1 |
module Main where
import qualified HackerRank.Tutorials.Statistics.Day5 as M
main :: IO ()
main = M.main1
| 4e6/sandbox | haskell/hackerrank/tutorials/statistics/Day5.hs | mit | 108 | 0 | 6 | 17 | 31 | 20 | 11 | 4 | 1 |
{-# LANGUAGE GADTs #-}
module Handler.Fob
( fobs
) where
import Handler.Helpers
import Model
import View.Fob
fobs :: App Response
fobs = routeResource $ defaultActions {
resActionList = fobList
, resActionNew = fobNew
, resActionEdit = fobEdit
, resActionCreate = fobCreate
, resActionUpdate = fobUpdat... | flipstone/glados | src/Handler/Fob.hs | mit | 1,253 | 0 | 12 | 263 | 445 | 226 | 219 | 41 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import qualified SearchEngine as E
import Persister as P
main = do
state <- P.readFromFile
let newState = E.addRecord "TestTitle" ("http://my.test", E.Title) state
print newState
| AlexanderTankov/Hahoo-Search-Engine | src/Main.hs | mit | 222 | 1 | 12 | 37 | 62 | 32 | 30 | 7 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Description : All message type definitions.
module IHaskell.Types (
Message(..),
MessageHeader(..),
MessageType(..),
d... | wyager/IHaskell | src/IHaskell/Types.hs | mit | 8,976 | 0 | 13 | 2,684 | 1,674 | 990 | 684 | 161 | 1 |
module Threase.BoardSpec (spec) where
import Test.Hspec
import Test.Hspec.QuickCheck
import Threase.Board
import Threase.Direction (Direction (..))
import Threase.Tile (Tile (..))
import Threase.Vector (Vector (..))
spec :: Spec
spec = do... | tfausak/threase | test-suite/Threase/BoardSpec.hs | mit | 5,975 | 0 | 23 | 2,807 | 2,135 | 1,109 | 1,026 | 145 | 1 |
-- Testing the theorem prover
module Main where
import Test.HUnit hiding (State)
import Test.QuickCheck
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Map (empty)
import qualified Data.Map as Map
--import Control.Monad.State
import Control.Monad
import TP
import System.Exit
import Parser (parseSequ... | gianlucagiorgolo/glue-tp | TestTP.hs | mit | 11,719 | 0 | 20 | 3,114 | 5,518 | 2,916 | 2,602 | 185 | 2 |
{-# OPTIONS_GHC -O2 -Wall -fwarn-tabs -Werror #-}
-------------------------------------------------------------------------------
-- |
-- Module : Lorenz.SDL
-- Copyright : Copyright (c) 2014 Michael R. Shannon
-- License : MIT
-- Maintainer : mrshannon.aerospace@gmail.com
-- Stability : unstable
--... | mrshannon/lorenz | src/Lorenz/SDL.hs | mit | 2,233 | 0 | 14 | 550 | 377 | 220 | 157 | 30 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
module Yesod.Auth.Autotool.Type
(module Yesod.Auth.Autotool.Type,
module Yesod.Auth.Autotool.Message
) where
import Yesod.Auth.Autotool.Message
import Yesod.Auth
import Ye... | marcellussiegburg/autotool | yesod/Yesod/Auth/Autotool/Type.hs | gpl-2.0 | 2,215 | 0 | 12 | 465 | 646 | 343 | 303 | 49 | 2 |
import Data.List
import Data.Ord (comparing)
import Numeric.LinearAlgebra.Algorithms
length' [] = 0
length' (xh:xt) = length' xt + 1
join' [] y = y
join' (xh:xt) y = xh:(join' xt y)
head' (xh:xt) = xh
tail' (xh:xt) = xt
last' (xh:[]) = xh
last' (xh:xt) = last' xt
map' _ [] = []
map' f (xh:xt) = ... | rhennigan/code | haskell/pcdSimplification/src/test.hs | gpl-2.0 | 1,369 | 18 | 13 | 399 | 983 | 473 | 510 | -1 | -1 |
Store f :: s -> Store f s | hmemcpy/milewski-ctfp-pdf | src/content/3.7/code/haskell/snippet35.hs | gpl-3.0 | 25 | 0 | 6 | 7 | 21 | 9 | 12 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Text as T
import Data.Text.IO as TIO
import Development.Shake
import Development.Shake.Command
import Development.Shake.FilePath
import Development.Shake.Util
modifytestContent file = do
filecontent <- TIO.readFile file
TIO.writeFile file (T.replace "- src//... | JackTheEngineer/Drone | bld/Replacer.hs | gpl-3.0 | 472 | 0 | 10 | 70 | 125 | 65 | 60 | 14 | 1 |
module Sara.Ast.Types where
import Sara.Ast.Operators
import qualified Data.Map.Strict as Map
data Type
= Unit
| Boolean
| Integer
| Double
deriving (Eq, Ord, Show, Enum, Bounded)
types :: [Type]
types = enumFrom minBound
data TypedUnOp
= TypedUnOp UnaryOperator Type
deriving (Eq, Ord, Show)
typedUnO... | Lykos/Sara | src/lib/Sara/Ast/Types.hs | gpl-3.0 | 2,182 | 0 | 16 | 459 | 653 | 394 | 259 | 36 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Handler.Rating where
import Import
import Data.Maybe (fromJust)
import Yesod.Auth (requireAuthId)
$(deriveJSON defaultOptions ''Rating)
getRatingR :: UserId -> Handler Value
getRatingR uId = do
user <- runDB $ get uId
case user of
Just _ -> do
ratings <- ru... | weshack/thelist | TheList/Handler/Rating.hs | gpl-3.0 | 1,443 | 0 | 18 | 338 | 474 | 238 | 236 | -1 | -1 |
module Estuary.Types.RenderState where
import Data.Time.Clock
import qualified Data.Map as Map
import Data.IntMap.Strict
import qualified Sound.Tidal.Context as Tidal
import qualified Sound.Punctual.PunctualW as Punctual
import qualified Sound.Punctual.WebGL as Punctual
import qualified Sound.Punctual.Resolution as Pu... | d0kt0r0/estuary | client/src/Estuary/Types/RenderState.hs | gpl-3.0 | 3,877 | 0 | 12 | 635 | 890 | 550 | 340 | 139 | 1 |
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE UndecidableInstances #-}
module HLinear.Utility.Fraction
where
import HLinear.Utility.Prelude
import HFlint.FMPZ.FFI ( fmpz_divexact, fmpz_mul )
import qualified Data.Vector as V
import HLinear.M... | martinra/hlinear | src/HLinear/Utility/Fraction.hs | gpl-3.0 | 2,621 | 0 | 20 | 659 | 802 | 418 | 384 | -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/Get.hs | mpl-2.0 | 5,346 | 0 | 15 | 1,150 | 710 | 418 | 292 | 106 | 1 |
module HEP.Jet.FastJet.Class.Error where
| wavewave/HFastJet | oldsrc/HEP/Jet/FastJet/Class/Error.hs | lgpl-2.1 | 42 | 0 | 3 | 4 | 9 | 7 | 2 | 1 | 0 |
{-
Copyright (C) 2009 Andrejs Sisojevs <andrejs.sisojevs@nextmail.ru>
All rights reserved.
For license and copyright information, see the file COPYRIGHT
-}
--------------------------------------------------------------------------
--------------------------------------------------------------------------
-- | This ... | Andrey-Sisoyev/haskell-PCLT | Text/PCLT/SH__.hs | lgpl-2.1 | 901 | 0 | 5 | 163 | 92 | 65 | 27 | 13 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MonoLocalBinds #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE... | haroldcarr/learn-haskell-coq-ml-etc | haskell/topic/lens/hc-usage/src/Z.hs | unlicense | 4,672 | 0 | 12 | 1,036 | 1,287 | 693 | 594 | -1 | -1 |
import Test.Framework
import Network.JsonRpc.Tests
main :: IO ()
main = defaultMain (tests)
| anton-dessiatov/json-rpc | test/main.hs | unlicense | 94 | 0 | 6 | 14 | 33 | 18 | 15 | 4 | 1 |
{-# LANGUAGE FlexibleContexts, NoMonomorphismRestriction #-}
module NeuralNetwork where
import Control.Arrow hiding (app)
import Control.Monad
import Control.Monad.Trans.State.Lazy
import Data.List
import Numeric.LinearAlgebra.HMatrix
import System.Random
import qualified Data.Vector.Storable as V
-- ActivationFunctio... | aweinstock314/neural-networks | NeuralNetwork.hs | apache-2.0 | 2,671 | 0 | 15 | 523 | 1,132 | 599 | 533 | 39 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Templates.Topic where
import Data.Text.Encoding (decodeUtf8)
import Network.HTTP.Types.Method (methodGet, methodPost, methodPut, methodDelete)
import CourseStitch.Templates.Topic
import CourseStitch.Templates.Utils
import CourseStitch.Templates.Concept
topicForm :: Maybe (E... | coursestitch/coursestitch-api | src/Templates/Topic.hs | apache-2.0 | 1,327 | 0 | 14 | 337 | 363 | 179 | 184 | 32 | 3 |
{-# LANGUAGE FlexibleContexts, TypeOperators #-}
module Codec.FFMpeg.Format (
openInput,
seekFrame, readFrames
) where
import Control.Eff
import Control.Eff.Coroutine
import Control.Eff.Exception
import Control.Eff.Lift
import Control.Eff.Reader.Strict
import Control.Monad ( when )
import Data.Word ( Wo... | waldheinz/ffmpeg-effects | src/Codec/FFMpeg/Format.hs | apache-2.0 | 2,350 | 0 | 17 | 542 | 747 | 393 | 354 | 54 | 3 |
module Main where
allEven :: [Integer] -> [Integer]
allEven [] = []
allEven (h:t) = if even h then h:allEven t else allEven t
allEven2 numbers = [n | n <- numbers, (even n)]
allEven3 numbers = filter even numbers | frankiesardo/seven-languages-in-seven-weeks | src/main/haskell/day1/allEven.hs | apache-2.0 | 234 | 0 | 8 | 61 | 109 | 57 | 52 | 6 | 2 |
{-# LANGUAGE BangPatterns #-}
-- |
-- Module : GRN.StateTransition
-- Copyright : (c) 2011 Jason Knight
-- License : BSD3
--
-- Maintainer : jason@jasonknight.us
-- Stability : experimental
-- Portability : portable
--
-- Handles the creation of a Karnaugh map or species pathway diagram from
-- ParseData. Also... | binarybana/grn-pathways | GRN/StateTransition.hs | bsd-2-clause | 12,397 | 2 | 16 | 3,346 | 4,425 | 2,349 | 2,076 | 214 | 5 |
{-# LANGUAGE ScopedTypeVariables, CPP #-}
module IndexDirector (indexFileName, indexDatabase, indexWrapper, fullIndex, lookKeywords, parseKeywords) where
import Data.List hiding (union, insert)
import Control.Monad
import System.Directory
import System.IO
import Data.Char
import Data.Function
import Data.List
import ... | jacinabox/Indexing | IndexDirector.hs | bsd-2-clause | 4,757 | 50 | 27 | 855 | 1,449 | 754 | 695 | 89 | 2 |
module Statistics.Information.Discrete.MutualInfo where
import Data.Matrix
import Statistics.Information.Discrete.Entropy
mi :: Eq a => Int -> Matrix a -> Matrix a -> Double
mi base xs ys = entropy base xs + entropy base ys - entropy base (xs <|> ys)
cmi :: Eq a => Int -> Matrix a -> Matrix a -> Matrix a -> Double
c... | eligottlieb/Shannon | src/Statistics/Information/Discrete/MutualInfo.hs | bsd-3-clause | 497 | 0 | 10 | 109 | 222 | 113 | 109 | 11 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE OverloadedStrings #-}
module SingletonsBaseTestSuiteUtils (
compileAndDumpTest
, compileAndDumpStdTest
, testCompileAndDumpGroup
, ghcOpts
, cleanFiles
) where
import Build_singletons_base ( ghcPath, ghcFlags, rootDir )
... | goldfirere/singletons | singletons-base/tests/SingletonsBaseTestSuiteUtils.hs | bsd-3-clause | 6,312 | 0 | 15 | 1,608 | 942 | 537 | 405 | -1 | -1 |
-- | This modul exports the list of supported datatype libraries.
-- It also exports the main functions to validate an XML instance value
-- with respect to a datatype.
module Yuuko.Text.XML.HXT.RelaxNG.DataTypeLibraries
( datatypeLibraries
, datatypeEqual
, datatypeAllows
)
where
import Yuuko.Text.XML.HXT.DO... | nfjinjing/yuuko | src/Yuuko/Text/XML/HXT/RelaxNG/DataTypeLibraries.hs | bsd-3-clause | 4,208 | 20 | 11 | 894 | 630 | 353 | 277 | 58 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TupleSections #-}
module PullRequestFiles (filesByPullRequest, prsTouchingFile) where
import BasicPrelude
import Data.Text (unpack)
import Github.PullRequests
fromEither :: String -> Either Error a -> IO a
fromEither msgPrefix... | greenrd/github-utils | PullRequestFiles.hs | bsd-3-clause | 947 | 0 | 15 | 201 | 307 | 158 | 149 | 16 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
-- | This module is intended to be imported @qualified@, for example:
--
-- > import qualified Test.Tasty.Lens.Prism as Prism
--
module Test.Tasty.Lens.Prism
(
-- * Tests
test
, testSeries
, testExhaustive
) where
import Data.Proxy (Proxy(..))... | jdnavarro/tasty-lens | Test/Tasty/Lens/Prism.hs | bsd-3-clause | 2,835 | 0 | 9 | 544 | 426 | 250 | 176 | 32 | 1 |
--------------------------------------------------------------------------------
-- | Internal module to parse metadata
module Hakyll.Core.Provider.Metadata
( loadMetadata
, metadata
, page
) where
--------------------------------------------------------------------------------
import Contro... | bergmark/hakyll | src/Hakyll/Core/Provider/Metadata.hs | bsd-3-clause | 4,733 | 0 | 16 | 1,012 | 1,064 | 550 | 514 | 77 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE CPP #-}
-- | Module implementaing the PVM file reading.
module Codec.Volume.Pvm( readPVM, decodePVM ) where
#if !MIN_VERSION_base(4,8,0)
import Control.Applicative( (*>), (<... | Twinside/Juicy.Voxels | src/Codec/Volume/Pvm.hs | bsd-3-clause | 3,074 | 0 | 16 | 670 | 945 | 489 | 456 | 73 | 6 |
{-# LANGUAGE TemplateHaskell, GeneralizedNewtypeDeriving #-}
module Physics.FunPart.ParticleTest
( runTests
, AParticleType(..)
, ADynParticle(..)
, AParticle(..)
) where
import Test.QuickCheck
import Data.Maybe (isNothing, isJust, fromMaybe)
import Control.Lens (view, set)
import qualified Physics.FunPart.VecTest a... | arekfu/funpart | test/Physics/FunPart/ParticleTest.hs | bsd-3-clause | 3,195 | 0 | 13 | 705 | 990 | 508 | 482 | 71 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.NV.TexgenReflection
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/NV/TexgenReflection.hs | bsd-3-clause | 681 | 0 | 4 | 81 | 40 | 33 | 7 | 4 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
-- http://cgit.gitano.org.uk/youtube/bf.git/tree/bf.hs
-- http://llvm.org/docs/tutorial/OCamlLangImpl3.html
-- http://augustss.blogspot.com/2009/01/llvm-llvm-low-level-virtual-machine-is.html
import Control.Monad (join)
import Data.Int
import Data.Word
import For... | joelburget/tapl | llvm.hs | bsd-3-clause | 4,857 | 0 | 18 | 1,288 | 1,482 | 716 | 766 | 122 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE OverloadedStrings #-}
module Develop.Compile (toJavaScript) where
import qualified Data.Aeson as Json
import qualified Data.ByteString.Char8 as BS
import qualified Data.ByteString.Lazy.Char8 as LBS
import qualified Data.Text.IO as Text
import System.Directory (removeFile)
import... | evancz/cli | src/Develop/Compile.hs | bsd-3-clause | 1,902 | 0 | 19 | 556 | 474 | 254 | 220 | 46 | 4 |
{- CIS 194 HW 10
due Monday, 1 April
-}
module Spring13.Week10.AParser where
import Control.Applicative
import Control.Monad
import Data.Char
-- A parser for a value of type a is a function which takes a String
-- represnting the input to be parsed, and succeeds or fails; if it
-- s... | bibaijin/cis194 | src/Spring13/Week10/AParser.hs | bsd-3-clause | 2,873 | 0 | 14 | 756 | 696 | 373 | 323 | 43 | 2 |
module App.TeamDetails.AppService (getValidTeam, createNewTeam, findTeamAndAddPerson) where
-- TODO Move to TeamDetails package
import App.Roster.DomainService (validateTeam, validateTeamName, validatePersonName, tryAddPersonToTeam)
import App.TeamDetails.Repository (getTeam, findTeam, saveTeam, saveNewTeam)
import A... | afcastano/cafe-duty | src/App/TeamDetails/AppService.hs | bsd-3-clause | 1,894 | 0 | 14 | 464 | 488 | 249 | 239 | 29 | 2 |
-- ------------------------------------------------------------
{- |
Module : Yuuko.Text.XML.HXT.XPath.XPathEval
Copyright : Copyright (C) 2006 Uwe Schmidt
License : MIT
Maintainer : Uwe Schmidt (uwe@fh-wedel.de)
Stability : experimental
Portability: portable
Version : $Id: XPathEval.... | nfjinjing/yuuko | src/Yuuko/Text/XML/HXT/XPath/XPathEval.hs | bsd-3-clause | 21,272 | 108 | 14 | 4,825 | 5,757 | 3,024 | 2,733 | 364 | 5 |
module Main where
import Test.Tasty
import Test.Tasty.TestSet
import qualified Test.Unit.Module
import qualified Test.Unit.Persistence
import qualified Test.Unit.UserStory
import qualified Test.Property.Persistence
main = do
Test.Tasty.defaultMain $ buildTestTree "" $ do
Test.Unit.Module.tests
Test.Unit.Pe... | pgj/bead | test/TestMain.hs | bsd-3-clause | 464 | 0 | 10 | 63 | 94 | 58 | 36 | 13 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.