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 : Language.Pylon.Core.Check
-- Copyright : (c) 2014 Lukas Heidemann
-- License : BSD
-- Maintainer : lukasheidemann@gmail.com
-- Stability : experimental
-- Portability : ghc
--
-- Type checker for Pylon Core.
... | zrho/pylon | src/Language/Pylon/Core/Check.hs | bsd-3-clause | 8,976 | 0 | 15 | 1,848 | 2,361 | 1,221 | 1,140 | 151 | 10 |
module System.TellMe.Monitor.Clock where
import Graphics.UI.Gtk (Widget)
import Data.Time.Clock (getCurrentTime)
import Data.Time.Format (formatTime)
import Data.Time.LocalTime (LocalTime, getCurrentTimeZone, utcToLocalTime)
import System.Locale (defaultTimeLocale)
import System.TellMe.Monitor
tick :: IO LocalTime
ti... | izuk/tellme | src/System/TellMe/Monitor/Clock.hs | bsd-3-clause | 558 | 0 | 8 | 77 | 158 | 88 | 70 | 15 | 1 |
module System.Shana.DSL.Shell where
import Prelude hiding ((>), (-), (.))
import System.Shana.Utils
import System.Shana
import Text.Regex.Posix
import System.Directory
import Data.List ((\\))
import Control.Applicative ((<$>))
ls :: String -> Shana String String
ls x = Shana - const - (\\ [".", ".."]) <$> getDirect... | nfjinjing/shana | src/System/Shana/DSL/Shell.hs | bsd-3-clause | 442 | 0 | 9 | 82 | 174 | 105 | 69 | 15 | 2 |
{-# Language MultiParamTypeClasses, FunctionalDependencies, RecordWildCards, FlexibleContexts #-}
module Analysis.Types.LambdaCalc where
import qualified Analysis.Types.Common as C
import Control.Monad.State
import qualified Data.Map as M
import Control.Monad.Identity
import qualified Analysis.Types.Sorts as S
import C... | netogallo/polyvariant | src/Analysis/Types/LambdaCalc.hs | bsd-3-clause | 9,517 | 0 | 25 | 2,845 | 3,844 | 2,001 | 1,843 | 228 | 10 |
module Fasta (
Pair(..),
fastaLines
) where
import Data.Foldable ( toList )
import Data.Sequence ( Seq, empty, viewr, ViewR(..), (|>) )
data Pair =
Pair { header :: String
, sequenceData :: String }
deriving (Eq , Show)
-- | folds fasta file format into [Pair]
fastaLines :: String -> [Pair]
fastaL... | mitochon/hoosalind | src/Fasta.hs | mit | 901 | 0 | 14 | 226 | 353 | 199 | 154 | 22 | 3 |
----------------------------------------------------
-- --
-- HyLoRes.Subsumption.SubsumptionTrie: --
-- Structure to check if new clauses are subsumed --
-- by the set of clauses --
-- --
--... | nevrenato/HyLoRes_Source | src/HyLoRes/Subsumption/SubsumptionTrie.hs | gpl-2.0 | 6,668 | 0 | 13 | 2,369 | 1,437 | 755 | 682 | 101 | 4 |
-- | This module has some tools for testing Esqueleto queries from ghci.
--
-- It is not intended to be used in any Snowdrift code. Instead, :load it
-- from `cabal repl`.
module DBTest (dbdev) where
import Import
import Yesod.Default.Config
import qualified Database.Persist
import Settings
import Control.Monad.Trans.... | chreekat/snowdrift | dev/DBTest.hs | agpl-3.0 | 1,679 | 0 | 11 | 316 | 251 | 146 | 105 | 18 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : DiagramSceneType.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:47
Warning : this file is machine generated -... | uduki/hsQt | examples/DiagramScene/DiagramSceneType.hs | bsd-2-clause | 1,448 | 0 | 12 | 278 | 303 | 180 | 123 | 28 | 0 |
{-# LANGUAGE BangPatterns, GeneralizedNewtypeDeriving, StandaloneDeriving #-}
import Prelude hiding (mapM)
import Options.Applicative
import Data.Monoid ((<>))
import Control.Monad.Trans.Class
import Data.Vector (Vector)
import qualified Data.Vector.Generic as V
impo... | beni55/bayes-stack | network-topic-models/RunST.hs | bsd-3-clause | 6,232 | 0 | 19 | 2,478 | 1,671 | 854 | 817 | -1 | -1 |
{-# OPTIONS_HADDOCK prune #-}
-- | This package implements Reduced Ordered Binary Decision Diagrams
-- (ROBDDs) in pure Haskell. ROBDDs provide canonical representations
-- of boolean formulas as directed acyclic graphs and have some very
-- convenient properties:
--
-- * Tests for formula equality are fast
--
-- * ... | m4lvin/robbed | src/Data/ROBDD.hs | bsd-3-clause | 23,084 | 0 | 17 | 5,870 | 5,108 | 2,711 | 2,397 | 315 | 6 |
--------------------------------------------------------------------------------
-- Copyright © 2011 National Institute of Aerospace / Galois, Inc.
--------------------------------------------------------------------------------
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
module Copilot.Tools.CBMC
( Params ... | leepike/copilot-cbmc | src/Copilot/Tools/CBMC.hs | bsd-3-clause | 4,768 | 0 | 15 | 872 | 1,180 | 613 | 567 | 111 | 11 |
--
-- Copyright (c) 2009-2011, ERICSSON AB
-- 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 l... | rCEx/feldspar-lang-small | src/Feldspar.hs | bsd-3-clause | 1,973 | 0 | 5 | 369 | 63 | 52 | 11 | 6 | 0 |
module Main where
import System.Environment
import DeepAccelerate
import IO
main = do
args <- getArgs
let [inImg,outImg] = args
img1 <- readImgAsAccelerateArray inImg
newImg <- printTime (run (brightenBy 20 img1))
writeAccelerateImg outImg newImg
| robstewart57/small-image-processing-dsl-implementations | haskell/small-image-processing-dsl/app/deep-accelerate/prog1.hs | bsd-3-clause | 270 | 0 | 12 | 56 | 85 | 42 | 43 | 10 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-kms/gen/Network/AWS/KMS/Types.hs | mpl-2.0 | 16,856 | 0 | 21 | 4,572 | 3,093 | 1,738 | 1,355 | -1 | -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="ms-MY">
<title>Active Scan Rules | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<... | rnehra01/zap-extensions | src/org/zaproxy/zap/extension/ascanrules/resources/help_ms_MY/helpset_ms_MY.hs | apache-2.0 | 979 | 80 | 66 | 161 | 417 | 211 | 206 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module TeamInfoFor where
import qualified Github.Auth as Github
import qualified Github.Teams as Github
import System.Environment (getArgs)
main = do
args <- getArgs
result <- case args of
[team_id, token] -> Github.teamInfoFor' (Just $ Gith... | beni55/github | samples/Teams/TeamInfoFor.hs | bsd-3-clause | 616 | 0 | 15 | 180 | 163 | 85 | 78 | 14 | 4 |
{-
(By Chris Smith)
Reimplementation of gloss (minus bitmaps) in terms of Fay. This is a proof
of concept that Fay is in a state where it can support use cases like
gloss-web on the client.
TODO:
- Fix the problem with unary negation
- Implement support for events and game mode
To try... | beni55/fay | examples/CodeWorld.hs | bsd-3-clause | 13,427 | 0 | 21 | 3,537 | 4,848 | 2,427 | 2,421 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.FetchUtils
-- Copyright : (c) David Himmelstrup 2005
-- Duncan Coutts 2011
-- License : BSD-like
--
-- Maintainer : cabal-devel@gmail.com
-- Stability : provisional
--... | IreneKnapp/Faction | faction/Distribution/Client/FetchUtils.hs | bsd-3-clause | 6,517 | 0 | 15 | 1,522 | 1,421 | 719 | 702 | 125 | 7 |
<?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="it-IT">
<title>OAST Support Add-on</title>
<maps>
<homeID>oast</homeID>
<mapref locatio... | thc202/zap-extensions | addOns/oast/src/main/javahelp/org/zaproxy/addon/oast/resources/help_it_IT/helpset_it_IT.hs | apache-2.0 | 965 | 77 | 67 | 157 | 413 | 209 | 204 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Properties.Swap where
import Test.QuickCheck
import Instances
import Utils
import XMonad.StackSet hiding (filter)
-- ---------------------------------------------------------------------
-- swapUp, swapDown, swapMaster: reordiring windows
-- swap is trivially reversible
p... | atupal/xmonad-mirror | xmonad/tests/Properties/Swap.hs | mit | 1,853 | 0 | 9 | 426 | 436 | 230 | 206 | 19 | 1 |
main = do print $ (-7/2)
print $ (-7)/2
print $ -f x/y
where f n = n * n
x = 5
y = 2
| k-bx/ghcjs | test/fay/negation.hs | mit | 132 | 1 | 10 | 73 | 78 | 39 | 39 | 6 | 1 |
{-
This is my xmonad configuration file.
There are many like it, but this one is mine.
If you want to customize this file, the easiest workflow goes
something like this:
1. Make a small change.
2. Hit "super-q", which recompiles and restarts xmonad
3. If there is an error, undo your change and hit ... | davidbrewer/xmonad-ubuntu-conf | xmonad.hs | mit | 13,617 | 0 | 16 | 2,842 | 1,416 | 850 | 566 | 129 | 1 |
--------------------------------------------------------------------------------
--
-- Prelude Alan Library
--
-- (c) Tsitsimpis Ilias, 2011-2012
--
--------------------------------------------------------------------------------
{-# LANGUAGE ScopedTypeVariables #-}
module Main (main) where
import Data.Word
import Da... | iliastsi/gac | libraries/prelude/Main.hs | mit | 6,032 | 0 | 18 | 1,823 | 1,823 | 875 | 948 | 126 | 1 |
-- | Running Hablog
{-# LANGUAGE OverloadedStrings #-}
module Web.Hablog.Run where
import Web.Scotty.Trans
import Control.Monad.Reader (runReaderT)
import qualified Data.Text.Lazy as TL
import Network.URI (parseURI)
import Web.Hablog.Router
import Web.Hablog.Config
-- | Run Hablog on HTTP
run :: Config -> IO ()
ru... | soupi/hablog | src/Web/Hablog/Run.hs | mit | 450 | 0 | 10 | 72 | 128 | 77 | 51 | 12 | 1 |
module Monads where
import Control.Applicative
import Control.Monad hiding (foldM)
import Control.Monad.Error
import Control.Monad.List
import Control.Monad.State hiding (foldM)
import Data.List hiding (permutations)
--import Data.List
import Test.QuickCheck
-----------------------------------------------------------... | NickAger/LearningHaskell | well-typed at skills matter/fast-track/exercises/5/Monads.hs | mit | 7,330 | 0 | 12 | 1,536 | 975 | 569 | 406 | 53 | 1 |
module MakeCode (codeTable, codes) where
import MakeTree (makeTree)
import CodeTable (codeTable)
import Frequency (frequency)
import Types ( Bit (L, R)
, HCode
, Table
, Tree (Leaf, Node) )
codes :: String ->... | tonyfloatersu/solution-haskell-craft-of-FP | MakeCode.hs | mit | 358 | 0 | 6 | 154 | 83 | 54 | 29 | 10 | 1 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.WebGLDrawBuffers (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.WebGLDrawBuffers
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
import GHCJS.DOM.JSFFI... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/WebGLDrawBuffers.hs | mit | 361 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
import Control.Monad.Trans.Maybe
import Control.Monad
import Control.Monad.IO.Class
isValid :: String -> Bool
isValid v = '!' `elem` v
maybeExcite :: MaybeT IO String
maybeExcite = do
v <- liftIO getLine
guard $ isValid v
return v
doExcite :: IO ()
doExcite = do
putStrLn "say something excite!"
excite ... | mitochon/hexercise | src/haskellbook/ch26/ch26.guard.hs | mit | 456 | 0 | 12 | 96 | 150 | 74 | 76 | 17 | 2 |
import Control.Applicative
import Control.Monad
import System.IO
import Data.List
data Trie a = EmptyTrie | Root [Trie a] | Node a [Trie a] deriving (Eq, Show)
type Counter = Trie (Char, Int)
trieRoot :: Counter
trieRoot = Root []
partitionTrieList :: Char -> [Counter] -> ([Counter], [Counter])
partitionTrieList va... | nbrendler/hackerrank-exercises | tries-contacts/Main.hs | mit | 1,809 | 0 | 12 | 427 | 975 | 503 | 472 | 52 | 2 |
{-|
Module : Database.Orville.PostgreSQL.Internal.Monad
Copyright : Flipstone Technology Partners 2016-2018
License : MIT
'Database.Orville.PostgreSQL.MonadUnliftIO' provides functions and instances for using
'MonadOrville' and 'OrvilleT' for Monad transformer stacks that are using
'MonadUnliftIO'. The most comm... | flipstone/orville | orville-postgresql/src/Database/Orville/PostgreSQL/MonadUnliftIO.hs | mit | 2,837 | 0 | 14 | 473 | 425 | 233 | 192 | 37 | 1 |
-- |
-- Error codes as per
-- <https://www.postgresql.org/docs/9.6/static/errcodes-appendix.html>.
module PostgreSQL.ErrorCodes where
import qualified Data.ByteString
type ErrorCode =
Data.ByteString.ByteString
-- * Class 00 — Successful Completion
-------------------------
-- | Code \"00000\".
successful_comple... | nikita-volkov/postgresql-error-codes | library/PostgreSQL/ErrorCodes.hs | mit | 26,404 | 0 | 5 | 9,366 | 2,728 | 1,531 | 1,197 | -1 | -1 |
{-# htermination lcm :: Int -> Int -> Int #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_lcm_1.hs | mit | 46 | 0 | 2 | 10 | 3 | 2 | 1 | 1 | 0 |
-- Maintained by yamadapc - mostly inspired by and heavily dependent
-- <https://github.com/vicfryzel/xmonad-config>
-- (still in development)
-- Imports --
-- sys & stuff
import System.IO
import System.Exit
import XMonad
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import qualified XM... | yamadapc/dotfiles | linux-spf/xmonad/xmonad.hs | mit | 11,370 | 0 | 15 | 2,432 | 1,845 | 1,138 | 707 | 164 | 1 |
import Test.Hspec
import qualified ARD.CameraSpec
import qualified ARD.ColorSpec
import qualified ARD.MatrixSpec
import qualified ARD.ParserSpec
import qualified ARD.SamplerSpec
import qualified ARD.ShapeSpec
import qualified ARD.VectorSpec
main :: IO ()
main = hspec $ do
ARD.CameraSpec.spec
ARD.ColorSpec.spec
... | crazymaik/ard-haskell | test/Spec.hs | mit | 429 | 0 | 8 | 56 | 109 | 62 | 47 | 17 | 1 |
module Geometry.Sphere
( sphereVolume,
sphereArea
) where
sphereVolume :: Float -> Float
sphereVolume radius = (4.0 / 3.0) * pi * (radius ^ 3)
sphereArea :: Float -> Float
sphereArea radius = 4 * pi * (radius ^ 2)
| fabriceleal/learn-you-a-haskell | 07/Geometry/Sphere.hs | mit | 225 | 2 | 8 | 50 | 87 | 48 | 39 | 7 | 1 |
module Main (main) where
import qualified Graphics.X11 as X
import qualified Graphics.X11.Xlib.Extras as XExtras
-- import qualified System.Posix as P
-- import qualified Control.Monad as M
-- import qualified Data.Bits as B
import Data.Bits ((.|.))
main :: IO ()
main = do
d <- X.openDisplay ""
backgroundColo... | Ziphilt/phim | phim.hs | gpl-2.0 | 1,821 | 0 | 20 | 524 | 610 | 290 | 320 | 46 | 4 |
-- Copyright (C) 2003 David Roundy
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2, or (at your option)
-- any later version.
--
-- This program is distributed in the hope... | DavidAlphaFox/darcs | src/Darcs/UI/PrintPatch.hs | gpl-2.0 | 2,997 | 0 | 12 | 566 | 541 | 301 | 240 | 34 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
{- |
Module : ./OMDoc/Import.hs
Description : Transforms an OMDoc file into a development graph
Copyright : (c) Ewaryst Schulz, DFKI Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Ewaryst.Schulz@dfki.de
Stability : provisional
Portabili... | gnn/Hets | OMDoc/Import.hs | gpl-2.0 | 27,629 | 0 | 23 | 8,485 | 6,732 | 3,508 | 3,224 | 462 | 9 |
{- |
Module : $Header$
Description : Abstract syntax of CASL basic specifications
Copyright : (c) Klaus Luettich, Christian Maeder, Uni Bremen 2002-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
Abstract Syntax ... | nevrenato/HetsAlloy | CASL/AS_Basic_CASL.der.hs | gpl-2.0 | 15,877 | 0 | 14 | 4,742 | 3,474 | 1,871 | 1,603 | 241 | 4 |
{- |
Module : ./OWL2/XMLConversion.hs
Copyright : (c) Felix Gabriel Mance
License : GPLv2 or higher, see LICENSE.txt
Maintainer : f.mance@jacobs-university.de
Stability : provisional
Portability : portable
Conversion from Manchester Syntax to XML Syntax
-}
module OWL2.XMLConversion where
import ... | spechub/Hets | OWL2/XMLConversion.hs | gpl-2.0 | 21,152 | 0 | 19 | 5,670 | 5,680 | 2,842 | 2,838 | 417 | 42 |
{-# LANGUAGE PackageImports #-}
import "canx-server" Application (develMain)
import Prelude (IO)
main :: IO ()
main = develMain
| uros-stegic/canx | server/canx-server/app/devel.hs | gpl-3.0 | 129 | 0 | 6 | 19 | 34 | 20 | 14 | 5 | 1 |
-- Exercício 08: Encontre o número x entre 1 e 1.000.000 que tem a maior sequência de Collatz. (Project Euler 14)
collatz :: Int -> Int
collatz x
|x `mod` 2 == 0 = x `div` 2
|otherwise = (3 * x)+1
collatzSeq:: Int -> [Int]
collatzSeq 1 = [1]
collatzSeq x = x:(collatzSeq next)
where next =... | danielgoncalvesti/BIGDATA2017 | Atividade01/Haskell/Activity1/Exercises3/Ex8.hs | gpl-3.0 | 527 | 0 | 9 | 135 | 184 | 96 | 88 | 14 | 1 |
module Main where
import qualified Algebra.Ring as Ring (C)
import qualified Haskore.Interface.Braille as Braille
import qualified Haskore.Interface.Braille.TextTables as TextTables (Locale(..), braillify, sixDots)
import qualified Haskore.Interface.Signal.InstrumentMap as InstrumentMap
import qualified Haskore.Interf... | mlang/haskore-braille | playbraille.hs | gpl-3.0 | 2,986 | 0 | 14 | 495 | 827 | 472 | 355 | 50 | 1 |
module Main where
import Control.Exception (try)
import qualified Sound.Tidal.Context as Tidal
import qualified Sound.Tidal.Stream as Tidal
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Network.WebSockets as WS
import Data.List
import Data.Ratio
import Text... | yaxu/tidal-websocket | data/old/websocket.hs | gpl-3.0 | 2,567 | 0 | 19 | 628 | 953 | 470 | 483 | 73 | 5 |
{-# LANGUAGE OverloadedStrings #-}
{-|
-
- This module contains the actions that are run by the CLI dispatcher.
-
-}
module Main.Actions
( printStatus
, printFields
, printCategories
, printProject
, printProjects
, printIssue
, printIssues
, printVersion... | prikhi/hkredmine | bin/Main/Actions.hs | gpl-3.0 | 18,316 | 0 | 22 | 6,284 | 3,647 | 1,805 | 1,842 | -1 | -1 |
------------------------------------------------------------------
-- |
-- Module : Gom.CodeGen.Constructors
-- Copyright : (c) Paul Brauner 2009
-- (c) Emilie Balland 2009
-- (c) INRIA 2009
-- Licence : GPL (see COPYING)
--
-- Maintainer : paul.brauner@inria.fr
-- Stability : ... | polux/hgom | src/Gom/CodeGen/Constructors.hs | gpl-3.0 | 36,449 | 5 | 19 | 12,605 | 8,928 | 4,485 | 4,443 | 515 | 4 |
{-# LANGUAGE UnicodeSyntax, NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module JsonComments
( removeJsonComments
) where
import BasePrelude
import Prelude.Unicode
import qualified Data.ByteString.Lazy.Char8 as BL
-- Preserve line numbers
removeJsonComments ∷ BL.ByteString → BL.ByteString
remove... | 39aldo39/klfc | src/JsonComments.hs | gpl-3.0 | 615 | 0 | 8 | 93 | 132 | 72 | 60 | 15 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Column/Patch.hs | mpl-2.0 | 3,436 | 0 | 15 | 817 | 463 | 277 | 186 | 71 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
module BookIndexer.IndexerState where
import CouchDB.Types.Seq (Seq)
import Control.Lens ((^.), makeLensesWith, camelCaseFields)
import ... | asvyazin/my-books.purs | server/my-books/BookIndexer/IndexerState.hs | mpl-2.0 | 1,185 | 0 | 15 | 244 | 294 | 169 | 125 | 35 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE MultiWayIf #-}
import Control.Applicative ((<$>))
import Control.Monad hiding (forM_)
import Control.Monad.Reader (ReaderT, ask, liftIO, runReaderT)
import qualified Data.ByteString... | akegalj/snowdrift | dev/Sdm.hs | agpl-3.0 | 11,168 | 0 | 19 | 4,010 | 3,225 | 1,638 | 1,587 | -1 | -1 |
import Test.HUnit
import P9x.Util(expectEqual_, testList)
import P9x.P80.P80
import qualified Data.Map.Strict as Map
p80 = testList "P80" [
expectEqual_
(Graph [
(Edge 'b' 'c' ()), (Edge 'f' 'c' ()), (Edge 'g' 'h' ()),
(Edge 'd' 'd' ()), (Edge 'f' 'b' ()), (Edge 'k' 'f' ()),
... | dkandalov/katas | haskell/p99/src/p9x/p80/P80_test.hs | unlicense | 12,835 | 0 | 13 | 3,882 | 2,587 | 1,435 | 1,152 | 254 | 1 |
-- TODO: Compiler warning about non-exhaustive patterns?
-- TODO: Pretty printing!
--
-- Once a monad, always a monad.
import System.IO
import Text.ParserCombinators.Parsec hiding (spaces)
import System.Environment
import Control.Monad
import Control.Monad.Error
import Data.Maybe
import Data.IORef
--------------------... | kuitang/damon | parser.hs | unlicense | 43,205 | 0 | 15 | 10,392 | 8,065 | 4,331 | 3,734 | 457 | 5 |
{-# LANGUAGE DeriveGeneric #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Network.Haskoin.Wallet.Types
( AccountName
-- JSON Types
, JsonAccount(..)
, JsonAddr(..)
, JsonCoin(..)
, JsonTx(..)
-- Request Types
, WalletRequest(..)
, ListRequest(..)
, NewAccount(..)
, OfflineTxData(..)
, CoinSignData(..)
, CreateTx(..... | plaprade/haskoin | haskoin-wallet/src/Network/Haskoin/Wallet/Types.hs | unlicense | 24,064 | 0 | 16 | 6,478 | 6,364 | 3,277 | 3,087 | -1 | -1 |
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE FlexibleInstances, FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
-- ** `Practical' denotational semantics
module Tutorial1 where
-- Consider a small subset of Haskell
-- (or a pure functional subset of other suitable language)
-- as an `executable Math'
-- How t... | haroldcarr/learn-haskell-coq-ml-etc | haskell/conference/2017-09-cufp-effects/src/Tutorial1.hs | unlicense | 2,605 | 0 | 12 | 686 | 841 | 443 | 398 | 50 | 1 |
-- | Query and update documents
{-# LANGUAGE OverloadedStrings, RecordWildCards, NamedFieldPuns, TupleSections, FlexibleContexts, FlexibleInstances, UndecidableInstances, MultiParamTypeClasses, GeneralizedNewtypeDeriving, StandaloneDeriving, TypeSynonymInstances, TypeFamilies #-}
module Database.MongoDB.Query (
-- *... | mongodb/mongoDB-haskell | Database/MongoDB/Query.hs | apache-2.0 | 34,762 | 349 | 20 | 6,263 | 7,875 | 4,280 | 3,595 | 425 | 6 |
module Main
( main
) where
import Control.Concurrent (forkIO)
import qualified GHC.IO.Handle as IO
import qualified GHC.IO.Handle.FD as IO
import HStatusBar.ModuleParser
import qualified System.Environment as IO
main :: IO ()
main = do
IO.hSetBuffering IO.stdout IO... | michalrus/hstatusbar | src/Main.hs | apache-2.0 | 1,134 | 0 | 16 | 361 | 445 | 228 | 217 | -1 | -1 |
module Emulator.ROM.ParserSpec where
import Emulator.ROM
import Emulator.ROM.Parser
import Control.Lens
import Test.Hspec
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "readROM" $ do
it "should be able to read a ROM from a file" $ do
readROM "./res/suite.gba" >>= \case
Left er... | intolerable/GroupProject | test/Emulator/ROM/ParserSpec.hs | bsd-2-clause | 407 | 0 | 20 | 105 | 131 | 68 | 63 | -1 | -1 |
module QueryTest where
import Control.Exception
import Opticover
import Test.Tasty
import Test.Tasty.HUnit
case_simpleLiftField :: Assertion
case_simpleLiftField = do
let
a = Portal (Point 0 0) "a"
b = Portal (Point 1 1) "b"
c = Portal (Point 1 0) "c"
links = linksMap [link a c, link c b]
now = ... | s9gf4ult/opticover | test/QueryTest.hs | bsd-3-clause | 1,563 | 0 | 12 | 449 | 695 | 348 | 347 | 52 | 2 |
module Frenetic.Update where
import Frenetic.Common
import Nettle.OpenFlow.Match
import Frenetic.NetCore.Compiler
import Frenetic.NetCore.Types
import Frenetic.NetCore.Short
explode_all_ports ver m all_ports edge_ports =
map (\ p -> (case (p `elem` edge_ports) of
True -> Forward (Physical p) (m {m... | frenetic-lang/netcore-1.0 | src/Frenetic/Update.hs | bsd-3-clause | 2,900 | 0 | 18 | 584 | 1,120 | 576 | 544 | 47 | 3 |
module Inspection.Config where
import Data.List (find)
import GHC.Generics (Generic ())
import Data.Aeson.Extra
import Data.Yaml (decodeFileEither)
import Inspection.Data
import Inspection.Data.ReleaseTag (GithubOwner)
data Config
= Config { superusers :: [GithubOwner]
, compilers :: [Compiler]
... | zudov/purescript-inspection | src/Inspection/Config.hs | bsd-3-clause | 831 | 0 | 10 | 171 | 251 | 141 | 110 | 21 | 1 |
module Day08 where
import Protolude hiding (try)
import Prelude (read)
import Text.Megaparsec
import Text.Megaparsec.Text
import Data.Array.MArray
import Data.Array.ST
import Data.Array.Unboxed
import Data.List.Split (chunksOf)
import qualified Data.Text as Text
type MutableGrid s = STUArray s Coord Bool
type Grid = ... | patrickherrmann/advent2016 | src/Day08.hs | bsd-3-clause | 2,476 | 0 | 17 | 618 | 946 | 482 | 464 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
import System.IO
import Network.Starling
import Network
import Data.ByteString.Lazy.Char8()
import qualified Data.ByteString.Lazy as BS
import Control.Concurrent
openUnix :: String -> IO Connection
openUnix socket
= do
h <- connectTo socket $ UnixSocket socket
hSetBuffer... | silkapp/starling | Debug.hs | bsd-3-clause | 1,411 | 0 | 9 | 305 | 387 | 176 | 211 | 45 | 1 |
-- Copyright : Isaac Jones 2003-2004
{- 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 ... | imeckler/mote | CabalVersions/Cabal16.hs | bsd-3-clause | 1,923 | 0 | 10 | 339 | 66 | 42 | 24 | 7 | 0 |
{-# LANGUAGE OverloadedStrings, PatternGuards #-}
-- | Shell expansions.
module Language.Bash.Expand
( braceExpand
, TildePrefix(..)
, tildePrefix
, splitWord
) where
import Control.Applicative
import Control.Monad
import Data.Char
import Data.Traversable
import Text.Parsec.Combinator hiding (optio... | jfoutz/language-bash | src/Language/Bash/Expand.hs | bsd-3-clause | 6,221 | 0 | 18 | 2,071 | 2,159 | 1,096 | 1,063 | 140 | 7 |
{-# LANGUAGE NegativeLiterals #-}
{-# LANGUAGE FlexibleContexts #-}
module Filler(Filler, fillerSimulatorInstance, fillerNeuralInstance) where
import Brain
import Convenience
import Minimizer
import Simulator
import Graphics.Gloss
type Updater a = [Vec a] -> Vec a -> [Vec a]
data Filler a = Filler [Vec a] (Vec a, a)... | bmabsout/neural-swarm | src/Filler.hs | bsd-3-clause | 2,606 | 0 | 15 | 703 | 980 | 513 | 467 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
This module converts Template Haskell syntax into HsSyn
-}
{-# LANGUAGE CPP #-}
module ETA.HsSyn.Convert( convertToHsExpr, convertToPat, convertToHsDecls,
convertToHsType,
thRdrNameGuesses... | AlexeyRaga/eta | compiler/ETA/HsSyn/Convert.hs | bsd-3-clause | 53,143 | 1 | 18 | 16,614 | 15,488 | 7,811 | 7,677 | 841 | 28 |
{-# language CPP #-}
-- | = Name
--
-- VK_HUAWEI_invocation_mask - device extension
--
-- == VK_HUAWEI_invocation_mask
--
-- [__Name String__]
-- @VK_HUAWEI_invocation_mask@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
-- 371
--
-- [__Revision__]
-- 1
--
-- [__E... | expipiplus1/vulkan | src/Vulkan/Extensions/VK_HUAWEI_invocation_mask.hs | bsd-3-clause | 18,207 | 0 | 17 | 3,463 | 1,580 | 1,016 | 564 | -1 | -1 |
module Types.Drawable where
import Graphics.Gloss.Data.Picture
import Graphics.Gloss.Data.Vector
import Graphics.Gloss.Data.Point
class Drawable a where
shape :: a -> Path-- ^ Shape to draw of object
pic :: a -> Picture -- ^ Gloss picture to draw
| Smurf/dodgem | src/Types/Drawable.hs | bsd-3-clause | 271 | 0 | 7 | 59 | 56 | 35 | 21 | 7 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Editor (editor,ide,empty) where
import Data.Monoid (mempty)
import Text.Blaze.Html
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import Network.HTTP.Base (urlEncode)
import qualified System.FilePath as FP
-- | Display an editor and t... | elm-lang/debug.elm-lang.org | server/Editor.hs | bsd-3-clause | 5,796 | 0 | 20 | 1,820 | 1,462 | 726 | 736 | 122 | 1 |
module Template.Layout where
import ClassyPrelude
-- import Data.Text (Text)
import Lucid
-- layout :: HTML -> HTML
defaultLayout :: (Monad m) => HtmlT m b -> HtmlT m b
defaultLayout content = do
doctype_
head_ $ do
meta_ [charset_ "utf-8"]
meta_ [name_ "viewport",content... | rvion/ride | web-playground/src/Template/Layout.hs | bsd-3-clause | 1,184 | 0 | 12 | 242 | 367 | 171 | 196 | 27 | 1 |
module Examples where
import Grammar
import Algo
-- | example grammars
ex0 = CFG
['S', 'A']
[]
[Production 'S' []
,Production 'S' [Left 'A']
,Production 'A' [Left 'A']]
'S'
-- | simple expressions, left recursive
ex1left = CFG
['F', 'T']
['x', '+']
[Production '... | peterthiemann/cftools | src/Examples.hs | bsd-3-clause | 2,885 | 0 | 9 | 1,048 | 1,097 | 573 | 524 | 106 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Utils.Http (send) where
import qualified Control.Exception as E
import Control.Monad.Error
import qualified Data.ByteString.Char8 as BSC
import qualified Data.List as List
import Network (withSocketsDo)
import Network.HTTP.Client
import Networ... | rtfeldman/elm-package | src/Utils/Http.hs | bsd-3-clause | 1,748 | 0 | 21 | 408 | 564 | 289 | 275 | 44 | 3 |
{-# LANGUAGE TemplateHaskell, RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE BangPatterns #-}
module Chapter2Bandit
( Bandit(..)
, Policy(..)
, mkBandit
, loopSteps
) w... | Xingtao/RLHask | src/Chapter2Bandit.hs | bsd-3-clause | 7,088 | 0 | 22 | 1,852 | 1,471 | 786 | 685 | -1 | -1 |
module DeBruijnSimpleLambdaTyped2 (run, update, removee,emptyContext,emptyVariables, strip, tru,fls,and', twoTrus) where
import Data.Maybe
data T = Var Int
| Varc Char
| Abst Type T
| App T T
| TRUE
| FALSE
| IF T T T
deriving (Eq, Show)
--the Other t... | armoredsoftware/protocol | demos/PaulPractice/deBruijnSimpleLambdaTyped2.hs | bsd-3-clause | 9,847 | 0 | 15 | 4,054 | 2,544 | 1,307 | 1,237 | 128 | 10 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeFamilies, FlexibleContexts #-}
module Database.Persist.Class.PersistUnique
( PersistUnique (..)
, getByValue
, insertBy
, replaceUnique
, checkUnique
, onlyUnique
) where
import Database.Persist.Types
import qualified Prelude
import Prelude hiding ((++)... | junjihashimoto/persistent | persistent/Database/Persist/Class/PersistUnique.hs | mit | 7,821 | 0 | 17 | 1,694 | 1,623 | 843 | 780 | 97 | 3 |
{-# OPTIONS_GHC -cpp #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.GHCPackageConfig
-- Copyright : (c) The University of Glasgow 2004
--
-- Maintainer : libraries@haskell.org
-- Stability : alpha
-- Portability : portable
--
-- Explanatio... | FranklinChen/hugs98-plus-Sep2006 | packages/Cabal/Distribution/Simple/GHCPackageConfig.hs | bsd-3-clause | 5,966 | 96 | 19 | 1,181 | 1,411 | 793 | 618 | 110 | 2 |
module AnnotationLet (foo) where
{
import qualified Data.List as DL
;
foo = let
a 0 = 1
a _ = 2
b = 2
in a b
}
| bitemyapp/ghc | testsuite/tests/ghc-api/annotations/AnnotationLet.hs | bsd-3-clause | 143 | 0 | 9 | 61 | 55 | 32 | 23 | 7 | 2 |
-- |
-- Module : Basement.NonEmpty
-- License : BSD-style
-- Maintainer : Foundation
-- Stability : experimental
-- Portability : portable
--
-- A newtype wrapper around a non-empty Collection.
module Basement.NonEmpty
( NonEmpty(..)
) where
import Basement.Exception
import Bas... | vincenthz/hs-foundation | basement/Basement/NonEmpty.hs | bsd-3-clause | 670 | 0 | 7 | 163 | 137 | 80 | 57 | -1 | -1 |
-- Copyright (c) 2016 Eric McCorkle. 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, this list of conditi... | saltlang/compiler-toolbox | src/Algorithm/Graph/Flow.hs | bsd-3-clause | 5,541 | 0 | 19 | 1,209 | 472 | 280 | 192 | 39 | 3 |
--
-- Copyright © 2013-2014 Anchor Systems, Pty Ltd and Others
--
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms of
-- the 3-clause BSD licence.
--
module Vaultaire.Types.PassThro... | anchor/vaultaire-common | lib/Vaultaire/Types/PassThrough.hs | bsd-3-clause | 761 | 0 | 7 | 131 | 120 | 75 | 45 | 14 | 0 |
{-
Copyright 2015 Google Inc. 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 applicable law or a... | xwysp/codeworld | codeworld-base/src/GHC/Read.hs | apache-2.0 | 731 | 0 | 4 | 136 | 23 | 17 | 6 | 4 | 0 |
{-# LANGUAGE BangPatterns, CPP, MagicHash, NondecreasingIndentation #-}
-------------------------------------------------------------------------------
--
-- | Main API for compiling plain Haskell source code.
--
-- This module implements compilation of a Haskell source. It is
-- /not/ concerned with preprocessing of ... | fmthoma/ghc | compiler/main/HscMain.hs | bsd-3-clause | 69,496 | 0 | 27 | 20,790 | 11,656 | 5,953 | 5,703 | 829 | 9 |
-- Menu from XRC demo
module Main where
import Graphics.UI.WXCore
import Graphics.UI.WX
main = start gui
gui :: IO ()
gui =
do
f <- frameLoadRes "xrcmenu.xrc" "menuTest" []
-- Attach event handlers to the menu items loaded above.
menuItemOnCommandRes f "new" (onFileNe... | ekmett/wxHaskell | samples/test/XRCControls/XRCMenu.hs | lgpl-2.1 | 872 | 0 | 14 | 288 | 307 | 146 | 161 | 25 | 1 |
-- | Useful operator (++) = mappend.
module Data.Monoid.Operator where
import Data.Monoid (Monoid)
import Data.Monoid (mappend)
import Prelude()
(++) :: Monoid a => a -> a -> a
(++) = mappend
infixr 5 ++
| chrisdone/haskellnews | upstream/snap-app/src/Data/Monoid/Operator.hs | bsd-3-clause | 207 | 0 | 7 | 37 | 68 | 42 | 26 | 7 | 1 |
{-# LANGUAGE CPP #-}
module UnitTests.Distribution.Client.UserConfig
( tests
) where
import Control.Exception (bracket)
import Data.List (sort, nub)
#if !MIN_VERSION_base(4,8,0)
import Data.Monoid
#endif
import System.Directory (getCurrentDirectory, removeDirectoryRecursive, createDirectoryIfMissing)
import Sy... | rimmington/cabal | cabal-install/tests/UnitTests/Distribution/Client/UserConfig.hs | bsd-3-clause | 3,652 | 0 | 14 | 716 | 830 | 428 | 402 | 72 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Control.Monad.ST
import Data.Primitive
main :: IO ()
main = do
let xs :: [Float] = runST $ do
barr <- mutableByteArrayFromList [1..fromIntegral n::Float]
peekByteArray n barr
print xs
where
n = 13
mutableByteArrayFromList ::... | ezyang/ghc | testsuite/tests/deriving/should_compile/T8138.hs | bsd-3-clause | 1,120 | 0 | 16 | 413 | 444 | 218 | 226 | -1 | -1 |
{-# LANGUAGE ForeignFunctionInterface #-}
module T3807Export where
import Foreign.C
foo :: IO CInt
foo = return (3 + read "123")
foreign export ccall foo :: IO CInt
| urbanslug/ghc | testsuite/tests/dynlibs/T3807Export.hs | bsd-3-clause | 170 | 0 | 8 | 32 | 49 | 27 | 22 | 6 | 1 |
module ConstantPool where
import Types
import Attribute
import qualified Data.ByteString.Lazy as BL
import qualified Data.ByteString as B
import Data.Word
import Data.Binary.Get
import qualified Data.ByteString.UTF8 as UTF8
import Debug.Trace
data Constant = ConstClass NameIx |
ConstFieldRef ClassIx NameAndType... | cwgreene/javaclassreader | src/ConstantPool.hs | mit | 3,557 | 0 | 11 | 618 | 907 | 456 | 451 | 99 | 2 |
{-|
Module: Web.OIDC.Client
Maintainer: krdlab@gmail.com
Stability: experimental
-}
module Web.OIDC.Client
(
-- * OpenID Connect Discovery
module Web.OIDC.Client.Discovery
-- * Settings and Tokens
, OIDC, newOIDC, setCredentials
, module Web.OIDC.Client.Tokens
-- * Authorizat... | krdlab/haskell-oidc-client | src/Web/OIDC/Client.hs | mit | 823 | 0 | 5 | 212 | 114 | 82 | 32 | 15 | 0 |
module TQueue (
TQueue,
newTQueue,
writeTQueue,
readTQueue
) where
import Control.Concurrent.STM (
STM,
TVar,
newTVar,
writeTVar,
readTVar,
atomically,
retry)
data TQueue a = TQueue (TVar [a]) (TVar [a])
newTQueue :: STM (TQueue a)
newTQueue = do
read <- newTVar []
writ... | Forec/learn | 2017.3/Parallel Haskell/ch10/TQueue.hs | mit | 945 | 0 | 21 | 355 | 356 | 174 | 182 | 36 | 3 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
-- |
-- Module : Test.CoCo.TypeInfo
-- Copyright : (c) 2017 Michael Walker
-- License : MIT
-- Maintainer : Michael Walker <mike@barrucadu.co.uk>
-- Stability : experimental
-- Portability : ScopedTypeVariables, TemplateHaskell
--
-- I... | barrucadu/spec | Test/CoCo/TypeInfo.hs | mit | 4,583 | 0 | 16 | 1,012 | 1,216 | 702 | 514 | 54 | 2 |
module Main where
import Test.Hspec
import Test.QuickCheck
import Archie
import Archie.Types
import Archie.Constants
import qualified Data.Text as Text
import Demo
main :: IO ()
main = hspec $ describe "Testing Archie" $ do
-- HUnit/HSpec tests.
describe "CSS generator" $ do
it "Can generate empty CSS" $ ... | osdiab/archie | test/Test.hs | mit | 2,732 | 0 | 23 | 755 | 696 | 328 | 368 | 54 | 1 |
fizz :: Integer -> String
fizz x
| x `mod` 15 == 0 = "Fizzbuzz"
| x `mod` 3 == 0 = "Fizz"
| x `mod` 5 == 0 = "Buzz"
| otherwise = show x
main = mapM_ (putStrLn) [fizz x | x <- [1..100]] | maggy96/haskell | smaller snippets/fizz.hs | mit | 194 | 0 | 9 | 54 | 116 | 59 | 57 | 7 | 1 |
module Main where
import System.Environment
import Text.ParserCombinators.Parsec hiding (spaces)
main :: IO ()
main = do args <- getArgs
putStrLn (readExpr (args !! 0))
symbol :: Parser Char
symbol = oneOf "!$%&|*+-/:<=>?@^_~#"
readExpr input = case parse (spaces >> symbol) "lisp" input of
Left err -> ... | tismith/tlisp | write-yourself-a-scheme/listings/listing3.2.hs | mit | 422 | 0 | 11 | 87 | 147 | 75 | 72 | 13 | 2 |
module Y2018.M06.D08.Exercise where
import Data.Time
{--
Okay, we got this here dater.txt file, and we wish to view these columns of
data as rows of data. That is to say: transpose this matrix.
But with a twist, see? Because the date-times are internally separated by
spaces as well, so we need the date-times as date... | geophf/1HaskellADay | exercises/HAD/Y2018/M06/D08/Exercise.hs | mit | 1,358 | 0 | 8 | 247 | 169 | 102 | 67 | 14 | 1 |
-- Memcached interface.
-- Copyright (C) 2005 Evan Martin <martine@danga.com>
module Network.Memcache.Protocol (
Server,
connect,disconnect,stats -- server-specific commands
) where
-- TODO:
-- - use exceptions where appropriate for protocol errors
-- - expiration time in store
import Network.Memcache
import... | alsonkemp/haskell-memcached | Network/Memcache/Protocol.hs | mit | 3,517 | 0 | 17 | 870 | 1,219 | 603 | 616 | 87 | 3 |
module Grails.Parser.BuildConfig ( parse ) where
import Text.ParserCombinators.Parsec hiding (parse)
import qualified Text.ParserCombinators.Parsec.Token as T
import Text.ParserCombinators.Parsec.Language (javaStyle)
import Grails.Parser.Common hiding (symbol, comma)
import Grails.Types (EIO, Plugins)
pa... | mbezjak/grailsproject | src/Grails/Parser/BuildConfig.hs | mit | 1,372 | 0 | 15 | 287 | 458 | 234 | 224 | 47 | 1 |
{-# LANGUAGE BangPatterns #-}
-- | Provides utility functions for working with 'SassValues'
module Text.Sass.Values.Utils
(
combineSassValues
, Lib.SassOp (..)
) where
import qualified Bindings.Libsass as Lib
import System.IO.Unsafe
import Text.Sass.Values
import Text.Sass.Values.Internal
-- | Combines tw... | jakubfijalkowski/hsass | Text/Sass/Values/Utils.hs | mit | 949 | 0 | 12 | 211 | 174 | 93 | 81 | 22 | 1 |
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE RecordWildCards #-}
-----------------------------------------------------------------------------
-- |
-- Module : Text.Bibline
-- Copyright : (c) 2016 Călin Ardelean
-- License : MIT
--
-- Maintainer : Călin Ardelean <mmn80cpu@gmail.com>
-- Stability : exper... | mmn80/bibline | src/Text/Bibline.hs | mit | 5,215 | 0 | 23 | 1,701 | 1,622 | 851 | 771 | 122 | 7 |
-- | Module providing various functions popular in quantum calculations, but
-- not implemented in "Numeric.LinearAlgebra".
module Hoqus.MtxFun where
import Numeric.LinearAlgebra.Data
import Numeric.LinearAlgebra
-- | Trace of a matrix. This function ignores the non-sqare part of the matrix.
trace :: Matrix C -> C
tr... | jmiszczak/hoqus | Hoqus/MtxFun.hs | mit | 514 | 0 | 6 | 75 | 66 | 38 | 28 | 7 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.