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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
-- | This module implements a compiler pass that removes unused
-- @let@-bindings.
module Futhark.Optimise.DeadVarElim
( deadCodeElim
, deadCodeElimFun
, deadCodeElimBody
, deadCodeElimLambda
)
where
import Control.Applicative
import Control.Monad.Writer
import qualified Data.Set ... | ihc/futhark | src/Futhark/Optimise/DeadVarElim.hs | isc | 4,888 | 0 | 14 | 1,075 | 1,268 | 644 | 624 | 87 | 2 |
module Hickory.Utils.Resources where
import Data.Hashable
import qualified Data.HashMap.Strict as HashMap
type RefStore a b = HashMap.HashMap a (b, Int)
emptyRefStore :: RefStore a b
emptyRefStore = HashMap.empty
reserve :: (Hashable a, Eq a, Monad m) => RefStore a b -> a -> (a -> m (Maybe b)) -> m (RefStore a b, M... | asivitz/Hickory | Hickory/Utils/Resources.hs | mit | 1,215 | 4 | 22 | 414 | 490 | 248 | 242 | 27 | 3 |
{-
-}
module Game.Title
( pg13
, titleLoop
) where
import Control.Monad (forM_)
import Control.Monad.Trans.State
import Control.Monad.Trans (liftIO)
import Graphics.UI.SDL
import Data.Word
-- Internal modules import
import Ga... | vTurbine/w3dhs | src/Game/Title.hs | mit | 1,522 | 0 | 12 | 564 | 318 | 170 | 148 | 43 | 3 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE RankNTypes #-}
{- |
Module : Language.Scheme.Parser
Copyright : Justin Ethier
Licence : MIT (see LICENSE in the distribution)
Maintainer : github.com/justinethier
Stability : experimental
Portability : portable
This module implements parsing of Scheme code.
-}
module L... | justinethier/husk-scheme | hs-src/Language/Scheme/Parser.hs | mit | 15,396 | 0 | 25 | 4,039 | 3,926 | 1,977 | 1,949 | 331 | 12 |
main = do
contents <- readFile "./main.hs"
return (lines contents)
| doylew/practice | haskell/main.hs | mit | 71 | 0 | 9 | 14 | 28 | 12 | 16 | 3 | 1 |
{-# htermination enumFromThenTo :: Float -> Float -> Float -> [Float] #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_enumFromThenTo_5.hs | mit | 74 | 0 | 2 | 12 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE RankNTypes #-}
import Control.Applicative
import Control.Monad.Free
import Control.Monad.State
import Control.Monad.Writer
import Prelude hiding (print)
-- http://www.haskellforall.com/2012/06/you-could-have-invented-free-monads.html
-- http://www.haskellforall.com/2012/07/purify-code-using-free-monads.h... | tiziano88/free-monad-parser | free.hs | mit | 7,154 | 0 | 17 | 2,396 | 2,568 | 1,260 | 1,308 | 181 | 5 |
module Y2017.M03.D07.Exercise where
-- below import available via 1HaskellADay git repository
import Analytics.Math.Combinatorics (choose)
{--
url: http://rosalind.info/problems/aspc/
Introduction to Alternative Splicing solved by 927 as of February 28th, 2017
The Baby and the Bathwater
In “RNA Splicing”, we desc... | geophf/1HaskellADay | exercises/HAD/Y2017/M03/D06/Exercise.hs | mit | 2,774 | 0 | 6 | 503 | 78 | 49 | 29 | 10 | 1 |
module Zwerg.Generator.Player.TestPlayer where
import Zwerg.Generator
import Zwerg.Generator.Default
import Zwerg.Generator.Item.Weapon
testPlayer :: Generator
testPlayer =
Generator testPlayerHatcher []
+> assignUniformRandomStats (zip (enumFrom STR) (repeat (1,100)))
+> generateAndEquip sword
testP... | zmeadows/zwerg | lib/Zwerg/Generator/Player/TestPlayer.hs | mit | 801 | 0 | 14 | 180 | 196 | 102 | 94 | 21 | 1 |
{-# htermination fmToList_LE :: FiniteMap Ordering b -> Ordering -> [(Ordering,b)] #-}
import FiniteMap
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/FiniteMap_fmToList_LE_11.hs | mit | 105 | 0 | 3 | 15 | 5 | 3 | 2 | 1 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Network.Monitoring.Riemann.TCP
( tcpConnection
, sendEvents
, sendMsg
, TCPConnection
, Port
) where
import Control.Concurrent.STM (atomically)
import Control.Conc... | shmish111/hriemann | src/Network/Monitoring/Riemann/TCP.hs | mit | 4,711 | 0 | 23 | 1,098 | 1,316 | 703 | 613 | 125 | 4 |
{-# LANGUAGE NoMonomorphismRestriction #-}
module Anima.Parser where
import Anima.Types
import Control.Applicative hiding ((<|>), many)
import Text.ParserCombinators.Parsec
{-
General syntax, a la LISP: (fn arg1)
0, 1, 2, ... represent De Bruijn indices
Base values:
Unit -- The value of the unit type
TUn... | forestbelton/anima | Anima/Parser.hs | mit | 1,236 | 0 | 15 | 314 | 435 | 219 | 216 | 26 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Heather -- the library for interfacing with the OpenWeatherMap API
import System.Console.ArgParser -- parse arguments with the argparser library
data MyArg = -- arguments consist of a query string and an optional zip code
MyArg String Int deriving (Eq, Sho... | nirum/heather | main.hs | mit | 1,547 | 0 | 16 | 338 | 345 | 172 | 173 | 29 | 3 |
module Cenary.Options where
------------------------------------------------------
import Control.Applicative
import Data.Monoid ((<>))
import Data.String (IsString, fromString)
import Options.Applicative
------------------------------------------------------
-------------------... | yigitozkavci/ivy | src/Cenary/Options.hs | mit | 1,277 | 0 | 10 | 293 | 279 | 151 | 128 | 28 | 1 |
module Playground.Playground (bmiCalc, bmiJustTel, cookieEater) where
addVectors :: (Num a) => (a, a) -> (a, a) -> (a, a)
addVectors a b = (fst a + fst b, snd a + snd b)
bmiCalc :: (RealFloat a) => a -> a -> a
bmiCalc weight height = weight / height ** 2
bmiJustTel :: (RealFloat a) => a -> String
bmiJustTel bmi
| b... | korczis/skull-haskell | src/Lib/Playground/Playground.hs | mit | 2,599 | 0 | 10 | 600 | 850 | 438 | 412 | 59 | 1 |
-- Enter your code here. Read input from STDIN. Print output to STDOUT
main :: IO()
main = do
putStrLn "Primitive : double"
putStrLn "Primitive : char"
putStrLn "Primitive : boolean"
putStrLn "Primitive : int"
putStrLn "Referenced : String"
putStrLn "Primitive : boolean"
putStrLn "Primitive : double"
pu... | advancedxy/hackerrank | 30-days-of-code/haskell/d1.hs | mit | 379 | 0 | 7 | 73 | 71 | 27 | 44 | 11 | 1 |
-- Note: This is a modified version of DEMO-S5 by Jan van Eijck.
-- For the original, see http://homepages.cwi.nl/~jve/software/demo_s5/
module SMCDEL.Explicit.DEMO_S5 where
import Control.Arrow (first,second)
import Data.List (sortBy)
import SMCDEL.Internal.Help (apply,restrict,Erel,bl)
newtype Agent = Ag Int deriv... | jrclogic/SMCDEL | src/SMCDEL/Explicit/DEMO_S5.hs | gpl-2.0 | 6,106 | 0 | 15 | 1,788 | 2,950 | 1,535 | 1,415 | -1 | -1 |
module SpacialGameEnv.SGModelEnv where
import System.Random
import Data.Maybe
import qualified Data.Map as Map
import Control.Concurrent.STM.TVar
import Control.Monad.STM
import qualified PureAgentsConc as PA
data SGState = Defector | Cooperator deriving (Eq, Show)
data SGMsg = NoMsg deriving (Eq, Show)
data SGAgen... | thalerjonathan/phd | public/ArtIterating/code/haskell/PureAgentsConc/src/SpacialGameEnv/SGModelEnv.hs | gpl-3.0 | 5,769 | 0 | 17 | 1,937 | 1,963 | 1,062 | 901 | 121 | 2 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
module Jumpie.GameObject where
import Jumpie.Player
import Jumpie.SensorLine
import Jumpie.Particle
import Jumpie.MoveableObject
import ClassyPrelude hiding(Real)
impo... | pmiddend/jumpie | lib/Jumpie/GameObject.hs | gpl-3.0 | 1,373 | 0 | 8 | 266 | 369 | 193 | 176 | 37 | 1 |
{- Copyright (C) 2009 John Millikin <jmillikin@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
This program is ... | astro/network-protocol-xmpp | Network/Protocol/XMPP/JID.hs | gpl-3.0 | 3,035 | 16 | 13 | 576 | 882 | 472 | 410 | 71 | 3 |
module Prelude ( module ClassyPrelude
) where
import ClassyPrelude
| glittershark/stegosaurus | Prelude.hs | gpl-3.0 | 83 | 0 | 4 | 25 | 13 | 9 | 4 | 2 | 0 |
-- Copyright (C) 2013 Che-Liang Chiou.
module Screen.Utils (
isCjkCodePoint,
) where
-- Chapter 12, East Asian Scripts, The Unicode Standard, Version 5.0.
-- Table 12-2. Blocks Containing Han Ideographs
isCjkCodePoint :: Char -> Bool
isCjkCodePoint c =
'\x4e00' <= c && c <= '\x9fff' ||
'\x3400' <= c &... | clchiou/gwab | lib/Screen/Utils.hs | gpl-3.0 | 457 | 0 | 23 | 110 | 108 | 58 | 50 | 9 | 1 |
{-|
Description : Root of test suite
-}
module Main (main) where
import qualified Control.Applicative as Applicative
import qualified Data.Set as Set
import qualified Language.Haskell.Formatter.Internal.Tests as Internal
import qualified Language.Haskell.Formatter.Tests as Formatter
import qualified Language.Haskell.Fo... | evolutics/haskell-formatter | testsuite/src/Main.hs | gpl-3.0 | 1,976 | 0 | 11 | 317 | 477 | 271 | 206 | 42 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-books/gen/Network/Google/Resource/Books/Volumes/UserUploaded/List.hs | mpl-2.0 | 7,279 | 0 | 23 | 1,813 | 1,181 | 677 | 504 | 167 | 1 |
{-# LANGUAGE TypeFamilies #-}
-------------------------------------------------
-- |
-- Module : Crypto.Noise.Cipher.AESGCM
-- Maintainer : John Galt <jgalt@centromere.net>
-- Stability : experimental
-- Portability : POSIX
module Crypto.Noise.Cipher.AESGCM
( -- * Types
AESGCM
) where
import Crypto.Err... | centromere/cacophony | src/Crypto/Noise/Cipher/AESGCM.hs | unlicense | 3,752 | 0 | 14 | 1,059 | 1,078 | 571 | 507 | -1 | -1 |
#!/usr/bin/env runhaskell
module Main where
solve n 1 = 1
solve n x = d + 10 * (solve n (x `div` 10 + d * n))
where d = x `mod` 10
main = do
print (solve 2 2)
print (solve 3 3)
print (solve 4 4)
print (solve 5 5)
print (solve 6 6)
print (solve 7 7)
... | sergev/vak-opensource | languages/haskell/problem-xn.hs | apache-2.0 | 364 | 0 | 11 | 147 | 188 | 91 | 97 | 13 | 1 |
--
-- Copyright (c) 2013, Carl Joachim Svenn
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above copyright notice... | karamellpelle/MEnv | source/GUI/Widget/LayoutWidget.hs | bsd-2-clause | 4,916 | 0 | 20 | 1,436 | 991 | 528 | 463 | 83 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module WebSocket (process) where
import Text.Printf
import Control.Monad (forever)
import qualified Control.Concurrent.Chan as Chan
import qualified Data.ByteString.Lazy.Char8 as BS
import qualified Network.WebSockets as WS
process :: Chan.Chan String -> String -> String -> Int -... | christianlavoie/haskell-midi | src-hs/WebSocket.hs | bsd-2-clause | 746 | 0 | 15 | 142 | 225 | 117 | 108 | 17 | 1 |
-- http://www.codewars.com/kata/542c0f198e077084c0000c2e
module Divisors where
divisors :: Integral a => a -> Int
divisors x = length $ filter ((==0).(x`mod`)) [1..x] | Bodigrim/katas | src/haskell/7-Find-divisors-number.hs | bsd-2-clause | 167 | 1 | 9 | 21 | 60 | 35 | 25 | 3 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Build
-- Copyright : Isaac Jones 2003-2005,
-- Ross Paterson 2006,
-- Duncan Coutts 2007-2008, 2012
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.or... | thomie/cabal | Cabal/Distribution/Simple/Build.hs | bsd-3-clause | 21,870 | 0 | 18 | 5,620 | 4,762 | 2,411 | 2,351 | 368 | 7 |
{-# LANGUAGE PackageImports #-}
module GHC.Float.RealFracMethods (module M) where
import "base" GHC.Float.RealFracMethods as M
| silkapp/base-noprelude | src/GHC/Float/RealFracMethods.hs | bsd-3-clause | 132 | 0 | 4 | 18 | 23 | 17 | 6 | 3 | 0 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Monoid ((<>))
import Reflex.Dom
import qualified Reflex.Dom as Dom
import ReflexJsx (jsx)
main :: IO ()
main = return ()
-------------------------------------------------------------------------------
-- Some examples th... | dackerman/reflex-jsx | test/Main.hs | bsd-3-clause | 1,154 | 0 | 8 | 148 | 234 | 158 | 76 | 22 | 1 |
{-# LANGUAGE LambdaCase #-}
module Ppt.Decode where
import System.Directory
import Control.Monad
import Control.Monad.Trans
import Control.Monad.Trans.Class
import Control.Monad.Trans.Maybe
import Control.Lens
import Ppt.Frame.ParsedRep hiding (FValue)
import Ppt.Frame.Types
import Ppt.Frame.Layout
import Numeric (sh... | lally/libmet | src/Ppt/Decode.hs | bsd-3-clause | 17,260 | 0 | 24 | 4,777 | 5,399 | 2,732 | 2,667 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, PackageImports #-}
import Control.Applicative
import Control.Monad
import "monads-tf" Control.Monad.Trans
import Data.HandleLike
import System.Environment
import Network
import Network.PeyoTLS.ReadFile
import Network.PeyoTLS.Client
import "crypto-random" Crypto.Random
import qualified ... | YoshikuniJujo/peyotls | peyotls/examples/clcertEcdsaClient.hs | bsd-3-clause | 1,151 | 4 | 14 | 190 | 406 | 212 | 194 | 31 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
module Intake.Client where
import Data.Aeson
import qualified Data.ByteString.Char8 as B
import qualified Data.ByteString.Lazy.Char8 as LB
import Network.JSONClient (apiGet, apiPost)
import Intake.Core (WorkflowId(..), ... | noteed/intake | Intake/Client.hs | bsd-3-clause | 1,619 | 0 | 15 | 281 | 494 | 264 | 230 | 32 | 2 |
{-# LANGUAGE PackageImports #-}
module Foreign.Marshal.Alloc (module M) where
import "base" Foreign.Marshal.Alloc as M
| silkapp/base-noprelude | src/Foreign/Marshal/Alloc.hs | bsd-3-clause | 124 | 0 | 4 | 18 | 23 | 17 | 6 | 3 | 0 |
{-# LANGUAGE TypeApplications #-}
module Database.PostgreSQL.PQTypes.Array (
-- * Array1
Array1(..)
, unArray1
-- * CompositeArray1
, CompositeArray1(..)
, unCompositeArray1
-- * Array2
, Array2(..)
, unArray2
-- * CompositeArray2
, CompositeArray2(..)
, unCompositeArray2
) where
import C... | scrive/hpqtypes | src/Database/PostgreSQL/PQTypes/Array.hs | bsd-3-clause | 10,447 | 0 | 18 | 2,489 | 3,177 | 1,667 | 1,510 | -1 | -1 |
module TupleFunctions where
-- partern match on tuple
f :: (a, b) -> (c, d) -> ((b, d), (a, c))
f x y= ((snd x, snd y), (fst x, fst y))
f' :: (a, b) -> (c, d) -> ((b, d), (a, c))
f' (a, b) (c, d) = ((b, d), (a, c))
addEmUp2 :: Num a => (a, a) -> a
addEmUp2 (x, y) = x + y
fst3 :: (a, b, c) -> a
fst3 (x, _, _) = x
f... | chengzh2008/hpffp | src/ch07-FunctionPattern/matchTuples1.hs | bsd-3-clause | 412 | 0 | 8 | 113 | 341 | 207 | 134 | 11 | 1 |
module Associativity where
data Fixity = Prefix
| Infix Precedence Associativity
type Precedence = Int
-- TODO make datatype for (Precedence,Associativity) and hide implementation
-- TODO at support for non Associativity
data Associativity
= AssoRight -- ^ Right Associative.
| AssoLeft -- ^ Left Asso... | kwibus/myLang | src/Associativity.hs | bsd-3-clause | 1,034 | 0 | 7 | 183 | 171 | 109 | 62 | 15 | 1 |
-- This is the state data structure
module Queue where
import Command
import CommandParser (twitchUser)
import Control.Monad.State
import Data.Maybe
import Data.Time
import qualified Data.Map as Map
import qualified Data.Sequence as Seq
import qualified Data.Set as Set
data Queue
= Queue
{ queueOn :: Bool
... | josuf107/xioqbot | src/Queue.hs | bsd-3-clause | 9,279 | 0 | 18 | 1,924 | 2,823 | 1,521 | 1,302 | 200 | 5 |
{- -*- mode: haskell; eval: (turn-on-haskell-unicode-input-method) -*- -}
{-# LANGUAGE UnicodeSyntax #-}
import Prelude.Unicode
main ∷ IO ()
main = putStrLn "Test suite not yet implemented"
| L3n41c/qrar | test/Spec.hs | bsd-3-clause | 194 | 0 | 6 | 28 | 26 | 14 | 12 | 4 | 1 |
module Game (Game(..)) where
import Common
-- ゲームに関する型クラスの宣言
class Game g where
-- ゲームは描画可能
renderGame :: g -> IO ()
-- ゲームはキー入力により更新可能
updateGame :: KeyInputs -> g -> g
| r-edamame/haskell-shooting | app/Game.hs | bsd-3-clause | 255 | 0 | 9 | 40 | 55 | 32 | 23 | 5 | 0 |
{-# LANGUAGE OverloadedStrings, TypeFamilies #-}
module QueryArrow.RPC.Service.FileSystem.TCP where
{-import Control.Monad.Trans.Resource
import Data.Time
import Control.Monad.Except
import System.Log.Logger
import Network
import QueryArrow.Control.Monad.Logger.HSLogger ()
import Control.Concurrent
import QueryArrow.R... | xu-hao/QueryArrow | QueryArrow-rpc-socket/src/QueryArrow/RPC/Service/FileSystem/TCP.hs | bsd-3-clause | 1,958 | 0 | 3 | 524 | 11 | 9 | 2 | 2 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Main
where
import GalFld.Core
import TestsCommon
--------------------------------------------------------------------------------
main :: IO ()
main = hspec $ do
describe "GalFld.Core.PrimeFields" $ do
it "modulus should give the modulus" $ do
modulus (2 ::F... | maximilianhuber/softwareProjekt | test/PFTests.hs | bsd-3-clause | 2,021 | 0 | 18 | 582 | 530 | 283 | 247 | 36 | 1 |
{-# LANGUAGE CPP, OverloadedStrings, TemplateHaskell #-}
module AUVLog where
import Control.Concurrent
import qualified Data.Aeson as A
import qualified Data.ByteString.Lazy as BL
import qualified Data.HashMap.Strict as M
import qualified Data.Text as T
import qualified Data.Time.C... | cuauv/software | auvlog/AUVLog.hs | bsd-3-clause | 1,382 | 0 | 16 | 364 | 437 | 237 | 200 | 31 | 1 |
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable #-}
module Noelm.Get.Server.Generate.Html where
import Control.Monad.Error
import Text.Blaze.Html5 ((!))
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import Text.Blaze.Html.Renderer.String (renderHtml)
import System.FilePath... | timthelion/noelm-get-server | src/Noelm/Get/Server/Generate/Html.hs | bsd-3-clause | 1,878 | 0 | 11 | 345 | 366 | 202 | 164 | 34 | 1 |
module Language.Expression
(
module Language.Expression.Expression,
module Language.Expression.Value,
module Language.Expression.Match,
module Language.Expression.Pattern,
module Language.Expression.Regular,
module Language.Expression.Mono,
) where
{
import Language.Expression.Expression;
... | AshleyYakeley/expression | src/Language/Expression.hs | bsd-3-clause | 513 | 0 | 5 | 79 | 95 | 68 | 27 | 14 | 0 |
{-# LANGUAGE FlexibleContexts, GADTs, BangPatterns, MagicHash #-}
{-|
Module : Matrix.Mult
Description : Provides fucntions for matrix multiplication.
Provides fucntions for matrix multiplication.
-}
module Data.Matrix.Mult (matMult) where
import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.U... | jbaum98/graphics | src/Data/Matrix/Mult.hs | bsd-3-clause | 1,939 | 0 | 22 | 561 | 513 | 271 | 242 | 34 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.Writer.Lazy
-- Copyright : (c) Andy Gill 2001,
-- (c) Oregon Graduate Institute of Science and Technology, 2001
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : lib... | davnils/minijava-compiler | lib/mtl-2.1.3.1/Control/Monad/Writer/Lazy.hs | bsd-3-clause | 1,476 | 0 | 6 | 290 | 160 | 116 | 44 | 23 | 0 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
-}
{-# LANGUAGE DeriveDataTypeable, BangPatterns #-}
-- |
-- #name_types#
-- GHC uses several kinds of name internally:
--
-- * 'OccName.OccName' represents names as strings with just a little more information:
-- the \"... | tjakway/ghcjvm | compiler/basicTypes/OccName.hs | bsd-3-clause | 32,995 | 0 | 14 | 8,789 | 5,739 | 3,066 | 2,673 | 472 | 5 |
module MasterSlave where
import Control.Monad
import Control.Distributed.Process
import Control.Distributed.Process.Closure
import PrimeFactors
{-
slave :: (ProcessId<p>, Integer)
-> Process me < me ▹ send(p, Integer) > ()
-}
slave :: (ProcessId, Integer) -> Process ()
slave (pid, n) = send pid (numPrimeFactors... | gokhankici/symmetry | background/examples/MasterSlave.hs | mit | 2,534 | 0 | 21 | 766 | 617 | 319 | 298 | -1 | -1 |
{- Copyright 2013 Gabriel Gonzalez
This file is part of the Suns Search Engine
The Suns Search Engine is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or (at your
o... | Gabriel439/suns-search | src/Structure.hs | gpl-3.0 | 2,331 | 0 | 13 | 533 | 624 | 349 | 275 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/DeleteApp.hs | mpl-2.0 | 2,995 | 0 | 9 | 667 | 360 | 221 | 139 | 48 | 1 |
{-# LANGUAGE ExtendedDefaultRules #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
-- Module : Khan.CLI.Profile
-- Copyright : (c) 2013 Brendan Hay <brendan.g.hay@gmail.com>
... | zinfra/khan | khan-cli/src/Khan/CLI/Profile.hs | mpl-2.0 | 2,750 | 0 | 11 | 736 | 666 | 346 | 320 | 75 | 1 |
-- Copyright 2012-2013 Greg Horn
--
-- This file is part of rawesome.
--
-- rawesome is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later v... | ghorn/rawesome | examples/carousel/viz/Multi.hs | lgpl-3.0 | 2,806 | 0 | 11 | 805 | 599 | 342 | 257 | 49 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Snap.Internal.Http.Server.Parser.Tests (tests) where
------------------------------------------------------------------------------
import Control.Monad (liftM)
import... | sopvop/snap-server | test/Snap/Internal/Http/Server/Parser/Tests.hs | bsd-3-clause | 9,912 | 0 | 18 | 2,454 | 2,157 | 1,166 | 991 | 169 | 2 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Monoid
import Data.Prototype
import Lens.Micro.Platform ((.=))
import Yi.Boot (configMain, reload)
import Yi.Config
import Yi.Config.Default (defaultConfig)
im... | noughtmare/yi | example-configs/yi-vim-vty-dynamic/yi.hs | gpl-2.0 | 3,319 | 0 | 21 | 992 | 724 | 408 | 316 | 64 | 2 |
{-
Copyright 2012, 2013, 2014 Colin Woodbury <colingw@gmail.com>
This file is part of Aura.
Aura 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 ve... | joehillen/aura | src/Aura/Settings/Enable.hs | gpl-3.0 | 5,558 | 0 | 12 | 1,963 | 1,016 | 535 | 481 | 87 | 2 |
{-# LANGUAGE DataKinds, TypeOperators, OverloadedStrings #-}
module CoinBias50 where
import Prelude (print, length, IO)
import Language.Hakaru.Syntax.Prelude
import Language.Hakaru.Disintegrate
import Language.Hakaru.Syntax.ABT
import Language.Hakaru.Syntax.AST
import Language.Hakaru.Types.DataKind
import Language.Ha... | zaxtax/hakaru | haskell/Tests/Unroll/CoinBias50.hs | bsd-3-clause | 8,270 | 0 | 207 | 4,976 | 1,596 | 813 | 783 | 167 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
----------------------------------------------------------------------------... | 573/leksah | src/IDE/Pane/HLint.hs | gpl-2.0 | 14,436 | 0 | 30 | 4,687 | 3,740 | 1,882 | 1,858 | 285 | 4 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
newtype Foo = Foo Int deriving Data | bitemyapp/apply-refact | tests/examples/Extensions24.hs | bsd-3-clause | 80 | 0 | 5 | 11 | 13 | 8 | 5 | 2 | 0 |
module Yi.Config.Default.Cua (configureCua) where
import Lens.Micro.Platform ((.=))
import Yi.Config.Simple (ConfigM)
import Yi.Config.Lens (defaultKmA)
import Yi.Keymap.Cua
configureCua :: ConfigM ()
configureCua = defaultKmA .= keymap | siddhanathan/yi | yi-keymap-cua/src/Yi/Config/Default/Cua.hs | gpl-2.0 | 246 | 0 | 6 | 33 | 73 | 46 | 27 | 7 | 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="tr-TR">
<title>Alert Filters | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapre... | thc202/zap-extensions | addOns/alertFilters/src/main/javahelp/org/zaproxy/zap/extension/alertFilters/resources/help_tr_TR/helpset_tr_TR.hs | apache-2.0 | 976 | 83 | 52 | 159 | 399 | 210 | 189 | -1 | -1 |
{-# LANGUAGE QuasiQuotes #-}
module Test where
import QQ
f :: [pq| foo |] -- Expands to Int -> Int
[pq| blah |] -- Expands to f x = x
h [pq| foo |] = f [pq| blah |] * 8
-- Expands to h (Just x) = f (x+1) * 8
| ezyang/ghc | testsuite/tests/quasiquotation/qq008/Test.hs | bsd-3-clause | 224 | 0 | 6 | 68 | 50 | 36 | 14 | 6 | 1 |
module Main where
import Control.Monad
import qualified Data.Text.Lazy.IO as TL
import qualified Data.Text.Lazy.Builder as TL
import Records
import MustacheTemplates
htmlEscape :: String -> String
htmlEscape = concatMap escChar
where
escChar '&' = "&"
escChar '"' = """
escChar '<' = "<"
escChar '>' ... | singpolyma/mustache2hs | benchmark/bench1.hs | isc | 623 | 26 | 13 | 145 | 224 | 128 | 96 | 24 | 5 |
--------------------------------------------------------------------------------
-- |
-- Module: Euler.Problem6
--
-- Sum square difference
-- Problem 6
--
-- The sum of the squares of the first ten natural numbers is,
--
-- > 1^2 + 2^2 + ... + 10^2 = 385
--
-- The square of the sum of the first ten natural numbers is,... | slogsdon/haskell-exercises | pe/src/Euler/Problem6.hs | mit | 898 | 0 | 10 | 169 | 97 | 61 | 36 | 6 | 1 |
module Main (main) where
import Test.DocTest
main :: IO ()
main = doctest $ srcFiles ++ compFlags
srcFiles :: [String]
srcFiles =
[ "src/Refined.hs"
, "src/Refined/Unsafe/Type.hs"
, "src/Refined/Unsafe.hs"
]
compFlags :: [String]
compFlags =
[ "-XScopedTypeVariables"
]
| nikita-volkov/refined | test/Doctests.hs | mit | 286 | 0 | 6 | 53 | 75 | 45 | 30 | 12 | 1 |
module Web.Apiary.WebSockets (
webSockets, webSockets'
, actionWithWebSockets
, actionWithWebSockets'
, websocketsToAction
-- * Reexport
-- | PendingConnection,
-- pandingRequest, acceptRequest, rejectrequest
--
-- receiveData
--
-- sendTextData, sendBinaryData, sendClose, s... | philopon/apiary | apiary-websockets/src/Web/Apiary/WebSockets.hs | mit | 2,240 | 0 | 11 | 562 | 571 | 312 | 259 | 43 | 2 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TypeFamilies #-}
-- | This module supports pure logging.
module System.Wlog.PureLogging
(
... | serokell/log-warper | src/System/Wlog/PureLogging.hs | mit | 6,558 | 0 | 13 | 1,472 | 1,257 | 674 | 583 | -1 | -1 |
module Nodes.Root where
import Data.Tree (Tree (Node))
import Nodes
import Nodes.Statement (Stmt)
data Root = CompilationUnit { statements :: [Stmt] }
instance AstNode Root where
ast (CompilationUnit statements) = Node "<root>" (map ast statements)
| milankinen/cbhs | src/nodes/Root.hs | mit | 258 | 0 | 9 | 43 | 86 | 49 | 37 | 7 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Hpack.Syntax.Defaults (
Defaults(..)
, Github(..)
, Local(..)
#ifdef TEST
, isValidOwner
, isValidRepo
#endif
) where
import Imports
import ... | sol/hpack | src/Hpack/Syntax/Defaults.hs | mit | 3,985 | 0 | 13 | 772 | 1,205 | 638 | 567 | 96 | 2 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module System.Tianbar.Plugin.DBus.FromData () where
import Data.Aeson
import Data.ByteString.Lazy as LBS
import Data.Maybe
import DBus
import DBus.Client
import System.Tianbar.Plugin
import System.Tianbar.Plugin.DBus.JSON ()
instance FromData MatchRule where
fromData = do
... | koterpillar/tianbar | src/System/Tianbar/Plugin/DBus/FromData.hs | mit | 1,550 | 0 | 12 | 491 | 337 | 181 | 156 | 37 | 0 |
-- Divisible Ints
-- http://www.codewars.com/kata/566859a83557837d9700001a/
module Codewars.G964.Divisiblint where
import Data.List (tails, inits)
getCount :: Int -> Int
getCount n = pred . length . filter ((==0) . (n `mod'`) . read) . concatMap (tail . inits) . init . tails . show $ n
where mod' _ 0 = 1
... | gafiatulin/codewars | src/6 kyu/Divisiblint.hs | mit | 342 | 0 | 15 | 74 | 128 | 71 | 57 | 6 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE CPP #-}
module FilePathUtil(makeRelative', canonicalizePath', safeRemoveDirectoryRecursive, safeCreateDirectoryRecursive,
removeDotDirs, escapeFilePath, unescapeFilePath, pathify, unpathify) where
import Control.Exception (catch, SomeException(..))... | dinkelk/redo | src/FilePathUtil.hs | mit | 4,695 | 0 | 13 | 951 | 1,027 | 553 | 474 | 60 | 5 |
module Y2021.M03.D19.Solution where
{--
@AnecdotesMaths has been publishing a formula for pi, or to approximate pi,
every day this month. I've been retweeting those formulae, because I like pi.
I also like tau, and I also like cake, so there's that.
Take one of those formulae and compute pi to a 'reasonable' degree ... | geophf/1HaskellADay | exercises/HAD/Y2021/M03/D19/Solution.hs | mit | 1,212 | 0 | 10 | 234 | 224 | 123 | 101 | 13 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SourceBuffer
(js_appendBuffer, appendBuffer, js_appendBufferView,
appendBufferView, js_abort, abort, js_remove, remove, js_setMode,
setMode, js_getMode, getMode, js_getUpdating, getUpdating,... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SourceBuffer.hs | mit | 8,445 | 118 | 11 | 1,242 | 1,737 | 953 | 784 | 118 | 1 |
module Data.Bag where
{-- We "re"present the Bag data-type. The 'Bag' or 'MultiSet' data type. 'Bag'
is from anon. 'MultiSet' is a nonesensical word from more recent times from
those too embarrassed to used the word 'bag' in a sentence, so they say the word
'multiset,' which means a set of unique objects with a coun... | geophf/1HaskellADay | exercises/HAD/Data/Bag.hs | mit | 2,873 | 0 | 9 | 571 | 424 | 230 | 194 | 27 | 1 |
-- 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
-- What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
-- This was my first attempt, while this works, it's REALLY slow.
-- calc = take 1 $ [x | x <- [1..], all (\... | daniel-beard/projecteulerhaskell | Problems/p5.hs | mit | 528 | 0 | 7 | 117 | 52 | 29 | 23 | 5 | 1 |
{-# htermination (reverse :: (List a) -> (List a)) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
flip :: (c -> b -> a) -> b -> c -> a;
flip f x y = f y x;
foldl :: (a -> b -> a) -> a -> (List b) -> a;
foldl f z Nil = z;
foldl f z (Cons x xs) =... | ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/reverse_1.hs | mit | 411 | 0 | 9 | 127 | 207 | 112 | 95 | 10 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-source.html
module Stratosphere.ResourceProperties.OpsWorksAppSource where
import Stratospher... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/OpsWorksAppSource.hs | mit | 3,453 | 0 | 12 | 397 | 628 | 355 | 273 | 47 | 1 |
import Control.Monad (guard)
let params = sortBy (compare `on` (\(fxtal, pllpre, plldiv, pllpost, fosc,
brgh, uxbrg, baud, bauderror,
dacfdiv, apostsclr, samplefreq) -> (fosc, 400-bauderror))) $ do
let kHz = 1000
let mHz = 1000000
let samplefreq = 24 * kHz :: Float
... | jkoberg/dspic33f_synth | clocks.hs | gpl-2.0 | 1,974 | 2 | 18 | 628 | 800 | 412 | 388 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : $Header$
Description : Isabelle instance of class Logic
Copyright : (c) Till Mossakowski, Uni Bremen 2002-2004
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : p... | nevrenato/HetsAlloy | Isabelle/Logic_Isabelle.hs | gpl-2.0 | 2,168 | 0 | 10 | 468 | 355 | 187 | 168 | 39 | 0 |
{-# LANGUAGE TupleSections #-}
module Infernu.Builtins.Array
(arrayRowType)
where
import Control.Monad (foldM)
import Infernu.Builtins.Util
import Infernu.InferState (Infer)
import Infernu.Prelude
import Infernu.Types
import Infernu.... | sinelaw/infernu | src/Infernu/Builtins/Array.hs | gpl-2.0 | 2,254 | 0 | 14 | 540 | 841 | 463 | 378 | 35 | 1 |
module Quenelle.Parse (
ParseResult(..),
parseRuleFromFile,
parseRuleFromString
) where
import Control.Applicative
import Text.ParserCombinators.Parsec.Char
import Text.ParserCombinators.Parsec.Combinator
import Text.ParserCombinators.Parsec.Error
import Text.ParserCombinators.Parsec.Prim
import Quenell... | philipturnbull/quenelle | src/Quenelle/Parse.hs | gpl-2.0 | 1,706 | 0 | 15 | 373 | 437 | 224 | 213 | 42 | 4 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE RelaxedPolyRec #-}
{-# LANGUAGE FlexibleInstances #-}
module LexML.URN.Show where
import LexML.URN.Types
import Text.Printf
class URNShow a where
urnShow :: a -> String
instance URNShow Integer where
urnShow = show
instance URNShow Int where
urnShow = show
... | lexml/lexml-linker | src/main/haskell/LexML/URN/Show.hs | gpl-2.0 | 9,250 | 0 | 12 | 1,700 | 2,677 | 1,298 | 1,379 | 201 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Tester where
import Control.Applicative ((<$>), (<*>), (*>), (<*), (<$), pure)
import qualified Control.Applicative as CA ((<|>))
import Control.Arrow
import Control.Monad hiding (sequence)
import Data.Function
import Data.Functor
import Data.Maybe
import Data.Map hiding (fil... | Tuplanolla/eigenlanguage | haskell/Tester.hs | gpl-3.0 | 4,128 | 0 | 18 | 1,501 | 1,177 | 626 | 551 | 83 | 4 |
-- adopted from https://github.com/laughedelic/sparse-lin-alg
module Vector
where
import Data.Array.Unboxed
import Data.Array.Base as A ((!))
import Data.Foldable as F
import Data.List as L
type VKey = Int
type Vec a = Array VKey a
data Vector a = VV
{ vec :: Vec a } deriving Eq
instance Functor Vector where... | KiNaudiz/bachelor | CN/Vector.hs | gpl-3.0 | 2,413 | 0 | 10 | 705 | 1,096 | 582 | 514 | 64 | 1 |
module Math.Structure.Instances
where
import Math.Structure.Instances.Standard.Num ()
import Math.Structure.Instances.Standard.Vector ()
| martinra/algebraic-structures | src/Math/Structure/Instances.hs | gpl-3.0 | 138 | 0 | 4 | 10 | 29 | 21 | 8 | 3 | 0 |
module STH.Lib.Text.Format.ASACarriageControl (
CCLine(..), fromCCLine, renderCCLine, toCCLine, readCCLines
) where
import Control.Arrow ((>>>))
import Data.List (intercalate, sortBy, isPrefixOf)
import STH.Lib.List (maxMonoSubseqsBy, fromSparseList, unfoldrMaybe)
import STH.Lib.Text.Format.Line (getLines)
--CCLin... | nbloomf/st-haskell | src/STH/Lib/Text/Format/ASACarriageControl.hs | gpl-3.0 | 2,167 | 0 | 17 | 538 | 714 | 389 | 325 | 47 | 5 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-ml/gen/Network/Google/Resource/Ml/Projects/Locations/Studies/Trials/Get.hs | mpl-2.0 | 5,040 | 0 | 15 | 1,108 | 697 | 408 | 289 | 107 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-healthcare/gen/Network/Google/Resource/Healthcare/Projects/Locations/DataSets/DicomStores/Studies/SearchForSeries.hs | mpl-2.0 | 8,145 | 0 | 17 | 1,431 | 795 | 472 | 323 | 126 | 1 |
-- | Send notifications by e-mail.
module THIS.Notify
(sendNotifications
) where
import Control.Monad
import Control.Monad.Trans
import Data.Object
import System.Process
import System.IO
import Text.Printf
import qualified Data.Text as Text
import Database.Persist
import THIS.Types
import THIS.Util
import THIS.T... | portnov/integration-server | THIS/Notify.hs | lgpl-3.0 | 3,019 | 0 | 21 | 921 | 816 | 414 | 402 | 74 | 2 |
-- Compute letter distribution in a text file
-- Examples:
-- runhaskell haskell/text_analysis.hs letter-counts --filepath /path/to/doc.txt
-- runhaskell haskell/text_analysis.hs letter-frequency --filepath /path/to/doc.txt
import qualified Data.Map as Map
import System.IO
import Data.Char (toLower)
import Optio... | cbare/Etudes | haskell/text_analysis.hs | apache-2.0 | 3,271 | 0 | 15 | 915 | 894 | 465 | 429 | 63 | 2 |
{-# START_FILE main.hs #-}
import Foo
main = print $ (foo undefined) + 1
| egaburov/funstuff | Haskell/BartoszBofH/3_PureFunctions/main.hs | apache-2.0 | 73 | 0 | 8 | 14 | 24 | 13 | 11 | 2 | 1 |
{-# LANGUAGE TemplateHaskell, TypeSynonymInstances, FlexibleInstances,
OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for ganeti-htools.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
... | apyrgio/snf-ganeti | test/hs/Test/Ganeti/Objects.hs | bsd-2-clause | 22,863 | 0 | 23 | 5,127 | 4,276 | 2,179 | 2,097 | 390 | 2 |
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : Database.HyperDex.Internal.Options
-- Copyright : (c) Aaron Friel 2013-2014
-- License : BSD-style
-- Maintainer : mayreply@aaronfriel.com
-- Stability : unstable
-- Portability : portable
--
module Database.HyperDex.Internal.Options
( Conne... | AaronFriel/hyhac | src/Database/HyperDex/Internal/Options.hs | bsd-3-clause | 854 | 8 | 9 | 203 | 130 | 82 | 48 | 19 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Sound.OpenAL.AL.Doppler
-- Copyright : (c) Sven Panne 2005
-- License : BSD-style (see the file libraries/OpenAL/LICENSE)
--
-- Maintainer : sven.panne@aedion.de
-- Stability : provisional
-- Portabilit... | FranklinChen/hugs98-plus-Sep2006 | packages/OpenAL/Sound/OpenAL/AL/Doppler.hs | bsd-3-clause | 3,995 | 4 | 14 | 603 | 345 | 215 | 130 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
-- | read/write Scream Tracker 3 Instruments
module Codec.Tracker.S3M.Instrument (
Instrument (..)
, getInstrument
, putInstrument
) where
import Control.Monad
import Data.Binary
import Data.Binary.Get
import Data.Binary.Put
im... | riottracker/modfile | src/Codec/Tracker/S3M/Instrument.hs | bsd-3-clause | 1,811 | 0 | 12 | 549 | 352 | 189 | 163 | 34 | 3 |
{-#LANGUAGE MultiParamTypeClasses #-}
{-#LANGUAGE OverloadedStrings #-}
module Twilio.Applications
( -- * Resource
Applications(..)
, Twilio.Applications.get
) where
import Control.Applicative
import Control.Monad.Catch
import Data.Aeson
import Data.Maybe
import Control.Monad.Twilio
import Twilio.Applicati... | seagreen/twilio-haskell | src/Twilio/Applications.hs | bsd-3-clause | 1,461 | 0 | 9 | 224 | 210 | 123 | 87 | 29 | 1 |
{-# LANGUAGE TypeFamilies, FlexibleInstances, TypeSynonymInstances #-}
module Language.Quasi.Convenience
( toExp, toPat, toType, toDec, toBody, toStmt, toMatch, toGuard, toTyVarBndr
, fromExp, fromPat, fromType, fromDec, fromBody, fromStmt, fromMatch, fromGuard, fromTyVarBndr
)
where
import C... | mgsloan/quasi-extras | src/Language/Quasi/Convenience.hs | bsd-3-clause | 5,848 | 0 | 8 | 1,562 | 1,192 | 647 | 545 | 64 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.