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 Flowskell.Lib.Shaders where
import Prelude hiding ( sum )
import Control.Applicative
import Control.Monad
import Control.Exception
import Data.Foldable ( Foldable, sum )
import Data.IORef
import Data.Maybe (fromJust)
import Data.Array (elems)
import Data.List (elemIndex)
import Graphics.UI.GLUT hiding (Float)
i... | lordi/flowskell | src/Flowskell/Lib/Shaders.hs | gpl-2.0 | 3,271 | 0 | 15 | 1,179 | 971 | 486 | 485 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Turing.Konfiguration where
-- $Id$
import Machine.History
import Turing.Type
import Autolib.ToDoc
import Data.Typeable
data Konfiguration y z =
Konfiguration { band_links :: [ y ]
, aktuelles_zeichen :: y
, band_rechts :: [ y ]
, zustand :: z
,... | Erdwolf/autotool-bonn | src/Turing/Konfiguration.hs | gpl-2.0 | 2,149 | 22 | 15 | 604 | 811 | 422 | 389 | 58 | 3 |
-- | Provides a system for analysing image data.
module Graphics.Forensics.Analyser
( -- * Analyser
Analyser(..)
-- * Output
, Analysis
-- * Task handling
, task
, step
-- * Evaluation
, evaluate
-- * Reporting
, report
, repo... | Purview/purview | src/Graphics/Forensics/Analyser.hs | gpl-3.0 | 4,107 | 0 | 11 | 924 | 715 | 406 | 309 | 72 | 1 |
module Main (main) where
import Prelude hiding ((.), id)
import Control.Applicative
import Control.Category
import Control.Monad
import Control.Monad.IO.Class
import Data.Lens.Common
import Data.Lens.Template
import System.Environment
import System.IO
import System.Log.Logger
import System.Log.Handler.Simple
impor... | chrisbouchard/bartender | clients/FileClient/Main.hs | gpl-3.0 | 3,706 | 0 | 25 | 1,097 | 968 | 511 | 457 | -1 | -1 |
{- |
Module : Tct.Encoding.Natring
Copyright : (c) Martin Avanzini <martin.avanzini@uibk.ac.at>,
Georg Moser <georg.moser@uibk.ac.at>,
Andreas Schnabl <andreas.schnabl@uibk.ac.at>
License : LGPL (see COPYING)
Maintainer : Andreas Schnabl <andreas.schnabl@uibk.ac.at>
Sta... | mzini/TcT | source/Tct/Encoding/Natring.hs | gpl-3.0 | 3,082 | 0 | 10 | 643 | 933 | 502 | 431 | 60 | 0 |
module Main(Main.main) where
import Graphics.UI.Gtk
import Graphics.UI.Gtk.Gdk.GC hiding (fill)
import Graphics.Rendering.Cairo
import Control.Monad.State as MS
import Control.Concurrent.MVar
import Control.Concurrent
import System.Random
import AbstractUI
import Core
import Core.Game
-- Constants
bluishGray = Col... | tonicebrian/tetris-haskell | src/Main.hs | gpl-3.0 | 4,501 | 0 | 17 | 1,291 | 1,531 | 780 | 751 | 108 | 6 |
{-# LANGUAGE OverloadedStrings #-}
module Skeleton.Kernel.Core.Sort (
sort
, sortM
, sortL
) where
import Data.Time.Clock
import Data.List (sortOn)
import Skeleton.Kernel.Core.Helper (getTime, getStar)
import Skeleton.Kernel.Internal.Type
gravity :: Flo... | ProLambda/Times | Skeleton/Kernel/Core/Sort.hs | gpl-3.0 | 1,555 | 0 | 13 | 593 | 516 | 286 | 230 | 51 | 1 |
module FourChan.Board
( Board
, getBoardName
, getTitle
, getNumPages
, getNumThreadsPerPage
, getBoardsInfo
, getBoardInfo
) where
import Data.Aeson
import Data.Foldable (find)
import Data.Maybe
import qualified Data.Map as M
import Data.Text (pack)
import FourChan.Helpers.Download
boardsUrl :: String
boardsUrl =... | xcv-/4chan.hs | lib/FourChan/Board.hs | gpl-3.0 | 1,623 | 0 | 12 | 490 | 433 | 235 | 198 | 44 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-swf/gen/Network/AWS/SWF/SignalWorkflowExecution.hs | mpl-2.0 | 5,985 | 0 | 9 | 1,246 | 643 | 394 | 249 | 73 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{- |
Module : $Header$
Description : Timespan API.
Copyright : (c) plaimi 2014-2015
License : AGPL-3
Maintainer : tempuhs@plaimi.net
-} module Tempuhs.Server.Requests.Timespan where
import qualified Database.Esqueleto as E
import Database.Esqueleto
(
(^.),
(&... | plaimi/tempuhs-server | src/Tempuhs/Server/Requests/Timespan.hs | agpl-3.0 | 6,624 | 0 | 21 | 2,266 | 1,536 | 780 | 756 | 181 | 4 |
-- | A parser for gtk-doc formatted documentation, see
-- https://developer.gnome.org/gtk-doc-manual/ for the spec.
module Data.GI.CodeGen.GtkDoc
( parseGtkDoc
, GtkDoc(..)
, Token(..)
, Language(..)
, Link(..)
, ListItem(..)
, CRef(..)
) where
import Prelude hiding (takeWhile)
#if !MIN_VERSION_base(4... | ford-prefect/haskell-gi | lib/Data/GI/CodeGen/GtkDoc.hs | lgpl-2.1 | 15,479 | 0 | 19 | 3,259 | 2,751 | 1,467 | 1,284 | 240 | 6 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
--------------------------------------------------------------------------------
{-|
Module : Menu
Copyright : (c) Daan Leijen 2003
(c) Shelarcy (shelarcy@gmail.com) 2006
License : wxWindows
Maintainer : wxhaskell-devel@lists.sourc... | sherwoodwang/wxHaskell | wx/src/Graphics/UI/WX/Menu.hs | lgpl-2.1 | 23,861 | 0 | 15 | 5,590 | 4,744 | 2,376 | 2,368 | 349 | 3 |
import Data.List
repli n x = concat [take n $ repeat x | x <- x]
| nstarke/icc13-introduction-to-haskell | ex15.hs | lgpl-3.0 | 65 | 0 | 8 | 16 | 40 | 19 | 21 | 2 | 1 |
{-|
This package provides functions for building and signing both simple
transactions and multisignature transactions.
-}
module Network.Haskoin.Transaction
(
-- *Transaction Types
Tx(..)
, TxIn(..)
, TxOut(..)
, OutPoint(..)
, CoinbaseTx(..)
, txHash
, nosigTxHash
, cbHash
-- *Build Transactions
, buildTx
,... | nuttycom/haskoin | Network/Haskoin/Transaction.hs | unlicense | 635 | 0 | 5 | 100 | 122 | 86 | 36 | 26 | 0 |
-- | The monad in which parseCabal is most easily expressed.
module CabalFile.Parser.Types where
import Control.Monad.State
import Control.Monad.Writer
import CabalFile.Types
-- | The string which remains to be parsed, the pieces which have already been
-- parsed, and a result. Or, if unsuccessful, Nothing.
type ... | gelisam/cabal-rangefinder | src/CabalFile/Parser/Types.hs | unlicense | 369 | 0 | 7 | 60 | 49 | 31 | 18 | 5 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
module Spark.IO.Internal.InputGeneric(
generic',
genericWithSchema',
genericWithSchema,
extractResourcePath,
updateResourceStamp
) where
import Spark.Core.Types
i... | tjhunter/karps | haskell/src/Spark/IO/Internal/InputGeneric.hs | apache-2.0 | 2,906 | 0 | 9 | 461 | 478 | 275 | 203 | 49 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Finance.Hqfl.Pricer.Asay
-- Copyright : (C) 2016 Mika'il Khan
-- License : (see the file LICENSE)
-- Maintainer : Mika'il Khan <co.kleisli@gmail.com>
-- Stability : stable
-- Portability : portable
--
----... | cokleisli/hqfl | src/Finance/Hqfl/Pricer/Asay.hs | apache-2.0 | 971 | 0 | 15 | 217 | 266 | 145 | 121 | 15 | 0 |
{-# LANGUAGE BangPatterns #-}
{-# OPTIONS -Wall #-}
----------------------------------------------------------------------
-- |
-- Module : Data.ZoomCache.Multichannel.Internal
-- Copyright : Conrad Parker
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Conrad Parker <conrad@metadecks.org>
-- Stabi... | kfish/zoom-cache | Data/ZoomCache/Multichannel/Internal.hs | bsd-2-clause | 3,084 | 0 | 16 | 617 | 625 | 348 | 277 | 50 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Web.Spock.Shared
(-- * Helpers for running Spock
runSpock, spockAsApp
-- * Action... | nmk/Spock | src/Web/Spock/Shared.hs | bsd-3-clause | 4,684 | 0 | 14 | 985 | 965 | 560 | 405 | 92 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
module Futhark.Optimise.Fusion.LoopKernel
( FusedKer(..)
, newKernel
, inputs
, setInputs
, arrInputs
, kernelType
, transformOutput
, attemptFusion
, SOAC
, MapNest
, toNestedSeqStream --not used!
)
where
import Control.Applicat... | mrakgr/futhark | src/Futhark/Optimise/Fusion/LoopKernel.hs | bsd-3-clause | 34,103 | 259 | 19 | 9,291 | 6,898 | 4,035 | 2,863 | 601 | 22 |
{-# OPTIONS_GHC
-XFlexibleInstances
-XOverlappingInstances
-XMultiParamTypeClasses
-XFlexibleContexts
-XUndecidableInstances
-XTemplateHaskell
-cpp #-}
module Text.RJson (TranslateField,
TranslateFieldD,
translateField,
ToJson,
... | addrummond/RJson | Text/RJson.hs | bsd-3-clause | 31,901 | 304 | 37 | 8,781 | 9,536 | 5,084 | 4,452 | -1 | -1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Types
( Digit
, zero
, one
, two
, three
, four
, five
, six
, seven
, eight
, nine
, Account
, fromList
, Verified
, verify
, verified
) where
newtype Digit = Digit { unDigit :: Int } deriving (Enum,... | mbeidler/kata-bank-ocr | src/Types.hs | bsd-3-clause | 1,215 | 0 | 11 | 348 | 445 | 251 | 194 | 47 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
module Data.SemVer.Range (
-- * Types
RangeOp(..)
, RangeSpec(..)
... | phadej/semver-range | src/Data/SemVer/Range.hs | bsd-3-clause | 10,363 | 0 | 15 | 2,465 | 4,066 | 2,108 | 1,958 | 240 | 3 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FlexibleInstances #-}... | junjihashimoto/mathflow | src/MathFlow/Core.hs | bsd-3-clause | 5,390 | 0 | 18 | 1,257 | 2,022 | 1,121 | 901 | -1 | -1 |
{-# LANGUAGE TupleSections #-}
module FilePaths
( historyFilePath
, historyFileName
, lastRunStateFilePath
, lastRunStateFileName
, configFileName
, xdgName
, locateConfig
, xdgSyntaxDir
, syntaxDirName
, Script(..)
, locateScriptPath
, getAllScripts
)
where
import Prelude ()
import Prelu... | aisamanra/matterhorn | src/FilePaths.hs | bsd-3-clause | 3,926 | 0 | 17 | 1,020 | 925 | 479 | 446 | 99 | 4 |
{-# OPTIONS -fglasgow-exts #-}
module GisServer.Data.S57 () where
import Data.Binary
import Data.Binary.Get
import Data.Bits
import Data.Char
import Data.Maybe
import Data.Tree
import qualified Data.Map as M
import Int
import Data.ByteString.Lazy
import GisServer.Data.Common
import GisServer.Data.ISO8211
data S57Dat... | alios/gisserver | GisServer/Data/S57.hs | bsd-3-clause | 1,560 | 0 | 11 | 422 | 518 | 262 | 256 | 52 | 2 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[RnSource]{Main pass of renamer}
-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
module RnTypes (
-- Type related stuff
rnHsType, rnLHsType, rnLHsTypes, rnContext,
rnHsKind, rnLHsKind, rnLHsMaybeKind,
rn... | urbanslug/ghc | compiler/rename/RnTypes.hs | bsd-3-clause | 49,512 | 0 | 22 | 14,312 | 12,655 | 6,450 | 6,205 | -1 | -1 |
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE DataKinds #-}
{-# OPTIONS_GHC -Wall #-}
module Main where
import Tower.Prelude
import Tower.N
import Test.Tasty (TestName, TestTree, testGroup, defaultMain, localOption)
import Test.Tasty.QuickCheck
import Test.DocTest
-- import ... | tonyday567/tower | test/test.hs | bsd-3-clause | 30,551 | 0 | 21 | 9,075 | 11,442 | 6,208 | 5,234 | 750 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE... | frms-/aws | Aws/DynamoDb/Core.hs | bsd-3-clause | 39,556 | 0 | 21 | 9,583 | 9,530 | 5,087 | 4,443 | 794 | 13 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Snaplet.Authentication
( initAuthentication
, Authentication
, requireUser
, withUser
, makeSessionJSON
, module Snaplet.Authenti... | krisajenkins/snaplet-auth | src/Snaplet/Authentication.hs | bsd-3-clause | 7,436 | 0 | 18 | 1,390 | 1,754 | 887 | 867 | 188 | 3 |
----------------------------------------------------------------------------
-- |
-- Module : BWildcardExportListWithChildren
-- Copyright : (c) Sergey Vinokurov 2018
-- License : BSD3-style (see LICENSE)
-- Maintainer : serg.foo@gmail.com
----------------------------------------------------------------... | sergv/tags-server | test-data/0012resolve_reexport_import_cycles/BWildcardExportListWithChildren.hs | bsd-3-clause | 1,131 | 0 | 9 | 246 | 263 | 155 | 108 | 37 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
{-# LANGUAGE Overl... | rfranek/duckling | Duckling/Time/HR/Corpus.hs | bsd-3-clause | 23,505 | 0 | 11 | 9,825 | 7,803 | 4,744 | 3,059 | 487 | 1 |
{-# OPTIONS -Wall #-}
-----------------------------------------------------------------------------
-- |
-- Module : CTest.hs (executable)
-- Copyright : (c) 2008 Duncan Coutts, Benedikt Huber
-- License : BSD-style
-- Maintainer : benedikt.huber@gmail.com
-- Portability : non-portable (Data.Generics)
... | jthornber/language-c-ejt | test/src/CTest.hs | bsd-3-clause | 4,993 | 1 | 21 | 1,166 | 1,156 | 588 | 568 | 92 | 7 |
;
; HSP help managerp HELP\[Xt@C
; (檪u;vÌsÍRgƵijêÜ·)
;
%type
g£½ß
%ver
3.3
%note
llmod3.hsp,scrsvr.hspðCN[h·é
(Windows9xÌÝpÂ\Å·)
%date
2009/08/01
%author
tom
%dll
llmod3
%url
http://www5b.biglobe.ne.jp/~diamond/hsp/hsp2file.htm
%ind... | zakki/openhsp | package/hsphelp/llmod3_scrsvr.hs | bsd-3-clause | 1,685 | 707 | 16 | 214 | 1,605 | 916 | 689 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude #-}
module Control.Fay
(
ap
,foldM
,zipWithM
,zipWithM_
,replicateM
)
where
import FFI
import Prelude hiding (mapM)
ap :: Fay (a -> b) -> Fay a -> Fay b
ap f x = f >>= \f' -> x >>= \x' -> return (f' x')
foldM :: (a -> b -> Fay a) -> a... | crooney/cinder | src/Control/Fay.hs | bsd-3-clause | 677 | 0 | 11 | 202 | 350 | 190 | 160 | 21 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Ordinal.IT.Tests
( tests ) where
import Prelude
import Data.String
import Test.Tasty
import D... | facebookincubator/duckling | tests/Duckling/Ordinal/IT/Tests.hs | bsd-3-clause | 504 | 0 | 9 | 78 | 79 | 50 | 29 | 11 | 1 |
module HasTorrent
(
module HasTorrent.Types,
module HasTorrent.Types.TypesHelp,
module HasTorrent.Bencode,
module HasTorrent.Network.PeerProtocol,
module HasTorrent.Network.Communicate,
module HasTorrent.Tracker,
) where
import HasTorrent.Types
import HasTorrent.T... | vaishious/has-torrent | src/HasTorrent.hs | bsd-3-clause | 464 | 0 | 5 | 85 | 79 | 53 | 26 | 14 | 0 |
{-# LANGUAGE GADTs, TypeFamilies, TypeOperators, EmptyDataDecls, FlexibleInstances, MultiParamTypeClasses, RankNTypes, QuasiQuotes, TemplateHaskell, ViewPatterns #-}
-------------------------------------------------------------------------
-- lambda lifting for the lambda calculus with top-level declarations
----------... | eddywestbrook/hobbits | archival/LambdaLiftingDB.hs | bsd-3-clause | 14,594 | 122 | 18 | 3,324 | 4,321 | 2,247 | 2,074 | -1 | -1 |
module Print3Flipped where
myGreeting :: String
myGreeting = (++) "hello" " world"
hello::String
hello="hello"
world ::String
world = "world!"
main :: IO()
main = do
putStrLn myGreeting
putStrLn secondGreetiong
where secondGreetiong = (++) hello ((++) " " world)
| dhaneshkk/haskell-programming | print3Flippedl.hs | bsd-3-clause | 298 | 0 | 9 | 73 | 92 | 51 | 41 | 12 | 1 |
{-
(c) The AQUA Project, Glasgow University, 1993-1998
\section[SimplUtils]{The simplifier utilities}
-}
{-# LANGUAGE CPP #-}
module SimplUtils (
-- Rebuilding
mkLam, mkCase, prepareAlts, tryEtaExpandRhs,
-- Inlining,
preInlineUnconditionally, postInlineUnconditionally,
activ... | tjakway/ghcjvm | compiler/simplCore/SimplUtils.hs | bsd-3-clause | 79,475 | 0 | 18 | 24,308 | 8,336 | 4,456 | 3,880 | -1 | -1 |
module Q3Demo.Loader.Zip where
{-
Zip specification:
http://en.wikipedia.org/wiki/Zip_(file_format)
http://www.pkware.com/documents/casestudies/APPNOTE.TXT
-}
import Control.Applicative
import Data.Binary.Get
import Data.Bits
import Data.Word
import System.IO.MMap
import qualified Codec.Compression.Zlib.Raw ... | csabahruska/q3demo | src/Q3Demo/Loader/Zip.hs | bsd-3-clause | 1,705 | 0 | 14 | 374 | 506 | 263 | 243 | 43 | 4 |
{-# LANGUAGE CPP #-}
{- |
Module : $Header$
Description : reading Lib-Defns
Copyright : (c) C. Maeder, DFKI 2014
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : non-portable(DevGraph)
reading Lib-Defns for various logics, OWL ... | mariefarrell/Hets | Driver/ReadLibDefn.hs | gpl-2.0 | 3,436 | 0 | 20 | 728 | 1,038 | 553 | 485 | 82 | 11 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : $Header$
Copyright : (c) T.Mossakowski, W.Herding, C.Maeder, Uni Bremen 2004-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@informatik.uni-bremen.de
Stability : provisional
Portability : portable
Abstract syntax for hybrid logic ... | keithodulaigh/Hets | Hybrid/AS_Hybrid.der.hs | gpl-2.0 | 1,808 | 0 | 10 | 461 | 390 | 214 | 176 | 27 | 0 |
{-|
Module : Test
Description : QuickCheck tests for MaximumMatching
Licence : LGPL-2.1
Maintainer : Manuel Eberl <last name + m _at_ in.tum.de>
Stability : experimental
This module provides some QuickCheck tests for the functions related to maximal and maximum matchings.
-}
module Main where
import Data... | 3of8/haskell_playground | maximum-matching/Test.hs | gpl-2.0 | 3,106 | 2 | 20 | 612 | 998 | 527 | 471 | 50 | 2 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module Tests.Readers.RST (tests) where
import Text.Pandoc.Definition
import Test.Framework
import Tests.Helpers
import Tests.Arbitrary()
import Text.Pandoc.Builder
import Text.Pandoc
import Text.Pandoc.Error
rst :: String -> Pandoc
rst = handleError . readRST de... | alexvong1995/pandoc | tests/Tests/Readers/RST.hs | gpl-2.0 | 6,859 | 0 | 18 | 2,514 | 1,276 | 698 | 578 | 126 | 1 |
-- C->Haskell Compiler: binding generator
--
-- Author : Manuel M T Chakravarty
-- Created: 17 August 99
--
-- Version $Revision: 1.3 $ from $Date: 2005/10/17 20:41:30 $
--
-- Copyright (c) [1999..2003] Manuel M T Chakravarty
--
-- This file is free software; you can redistribute it and/or modify
-- it under the... | k0001/gtk2hs | tools/c2hs/gen/GenBind.hs | gpl-3.0 | 89,277 | 1 | 33 | 29,489 | 19,739 | 10,311 | 9,428 | 1,405 | 24 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE... | dorchard/camfort | src/Language/Fortran/Model/Op/Core/Match.hs | apache-2.0 | 7,394 | 0 | 21 | 1,902 | 2,213 | 1,108 | 1,105 | 120 | 28 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE FlexibleContexts #-}
module Pontarius.E2E.Message where
import Control.Monad
import Control.Monad.Except
import Control.Monad.State.Strict
import qualified Crypto.Random as CRandom
import qualified Data.ByteString as BS
import Data.Wo... | Philonous/pontarius-xmpp-e2e | source/Pontarius/E2E/Message.hs | apache-2.0 | 4,327 | 0 | 15 | 1,595 | 1,218 | 612 | 606 | 95 | 8 |
{-# LANGUAGE DeriveGeneric #-}
--------------------------------------------------------------------
-- |
-- Copyright : (c) Dan Doel 2014
-- License : BSD2
-- Maintainer: Dan Doel <dan.doel@gmail.com>
-- Stability : experimental
-- Portability: non-portable
-------------------------------------------------------... | PipocaQuemada/ermine | src/Ermine/Unification/Class.hs | bsd-2-clause | 1,742 | 0 | 16 | 423 | 497 | 277 | 220 | 41 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Formalize.Html
( formHtml
, pdfHtml
) where
import Control.Monad.IO.Class (MonadIO)
import Data.Text.Lazy as LT (Text)
import Formalize.Types
import System.FilePath
import Text.Hastache
import Text... | Lepovirta/Crystallize | src/Formalize/Html.hs | bsd-3-clause | 844 | 0 | 9 | 196 | 179 | 101 | 78 | 19 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeFamilyDependencies #-}
module Mimir.Types where
import Control.Lens.Lens (Lens')
import Control.Lens.TH
import Control.Monad.Except (ExceptT)
import Control.Monad.Reader (Reade... | ralphmorton/Mimir | src/Mimir/Types.hs | bsd-3-clause | 2,550 | 1 | 10 | 560 | 762 | 431 | 331 | 90 | 0 |
{-# language ViewPatterns, ScopedTypeVariables, DeriveDataTypeable #-}
module Sorts.Robots.PathRobots.Path where
import Safe
import Data.Abelian
import Data.Typeable
import Data.Data
import Data.Accessor
import Physics.Chipmunk hiding (start, end)
import Graphics.Qt hiding (scale)
import Base
import Utils hidin... | geocurnoff/nikki | src/Sorts/Robots/PathRobots/Path.hs | lgpl-3.0 | 11,279 | 0 | 13 | 2,511 | 2,938 | 1,533 | 1,405 | 212 | 10 |
module MediaWiki.API.Query.AllUsers.Import where
import MediaWiki.API.Types
import MediaWiki.API.Utils
import MediaWiki.API.Query.AllUsers
import Text.XML.Light.Types
import Control.Monad
import Data.Maybe
stringXml :: String -> Either (String,[{-Error msg-}String]) AllUsersResponse
stringXml s = parseDoc xml s
xm... | HyperGainZ/neobot | mediawiki/MediaWiki/API/Query/AllUsers/Import.hs | bsd-3-clause | 1,042 | 0 | 17 | 204 | 419 | 210 | 209 | 26 | 2 |
{-# LANGUAGE QuasiQuotes #-}
module Main where
import Control.Monad
import System.Environment
import Language.C
import Language.C.System.GCC
import Text.Printf
import Text.PrettyPrint.HughesPJ
--import Here (here)
main = do
-- this is not the prettiest, but easiest solution
let depth = 2
putStrLn "#includ... | llelf/language-c | test/harness/bug31_pp_if_else/Test.hs | bsd-3-clause | 2,083 | 0 | 15 | 532 | 817 | 407 | 410 | 54 | 1 |
{-# LANGUAGE DeriveDataTypeable, TypeFamilies, TemplateHaskell #-}
module Distribution.Server.Features.PackageCandidates.State where
import Distribution.Server.Features.PackageCandidates.Types
import Distribution.Server.Framework.MemSize
import qualified Distribution.Server.Packages.PackageIndex as PackageIndex
impo... | mpickering/hackage-server | Distribution/Server/Features/PackageCandidates/State.hs | bsd-3-clause | 2,683 | 0 | 12 | 476 | 535 | 299 | 236 | 45 | 1 |
{- $Id: AFRPTestsCOC.hs,v 1.2 2003/11/10 21:28:58 antony Exp $
******************************************************************************
* A F R P *
* *
* Module: ... | meimisaki/Yampa | tests/AFRPTestsCOC.hs | bsd-3-clause | 1,770 | 0 | 10 | 658 | 352 | 226 | 126 | 30 | 1 |
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | ajayanandgit/mbunit-v3 | tools/Thrift/src/lib/hs/src/Thrift.hs | apache-2.0 | 3,468 | 1 | 18 | 1,000 | 761 | 393 | 368 | 76 | 6 |
{-# LANGUAGE CPP #-}
#ifdef TRUSTWORTHY
{-# LANGUAGE Trustworthy #-}
#endif
#ifndef MIN_VERSION_parallel
#define MIN_VERSION_parallel(x,y,z) (defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL > 700)
#endif
-----------------------------------------------------------------------------
-- |
-- Module : Control.Paral... | rpglover64/lens | src/Control/Parallel/Strategies/Lens.hs | bsd-3-clause | 2,786 | 0 | 7 | 495 | 288 | 175 | 113 | 20 | 1 |
module Package06e where
import HsTypes
import UniqFM
| urbanslug/ghc | testsuite/tests/package/package06e.hs | bsd-3-clause | 53 | 0 | 3 | 7 | 10 | 7 | 3 | 3 | 0 |
-- !!! Infix record constructor.
module ShouldCompile where
data Rec = (:<-:) { a :: Int, b :: Float }
| urbanslug/ghc | testsuite/tests/parser/should_compile/read010.hs | bsd-3-clause | 104 | 5 | 5 | 21 | 31 | 19 | 12 | 2 | 0 |
{-# OPTIONS_GHC -funbox-strict-fields #-}
import Data.List
data Vec4 = Vec4 !Float !Float !Float !Float
main :: IO ()
main = print traceList
traceList = concatMap (\(x,y) -> let (r,g,b,a) = getPixel (x,y) in [r,g,b,a])
[(0,0)]
where
getPixel (x,y) = (red,green,blue,alpha)
where
Vec4 fr f... | sdiehl/ghc | testsuite/tests/codeGen/should_run/T1852.hs | bsd-3-clause | 448 | 0 | 13 | 134 | 216 | 116 | 100 | 21 | 1 |
{-# Language TypeFamilies #-}
module SparseMap
(SparseMap(..)
, trueList
, falseList
, fromList
, index
, insert
, constant) where
import Ersatz
import ChooseBit
import Prelude hiding ((&&), (||), not)
import Control.Applicative
import Data.Monoid ((<>))
import Data.Map (Map)
import qualified ... | glguy/5puzzle | src/SparseMap.hs | isc | 2,372 | 0 | 13 | 598 | 1,121 | 587 | 534 | 64 | 1 |
module Language.Go.Token where
import Language.Go.SrcLocation
data Token
= IdentifierToken { tokenLiteral :: !String, tokenSpan :: !SrcSpan }
-- Literals
| IntToken { tokenLiteral :: !String, tokenSpan :: !SrcSpan }
| FloatToken { tokenLiteral :: !String, tokenSpan :: !SrcSpan }
| ImaginaryToken { tokenLit... | codeq/language-go | src/Language/Go/Token.hs | mit | 4,170 | 0 | 9 | 894 | 1,060 | 639 | 421 | 250 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE CPP #-}
module Network.HTTP.ReverseProxy.Rewrite
( ReverseProxyConfig (..)
, RewriteRule (..)
, RPEntry (..)
, simpleReverseProxy
)
where
import Control.Applicative
import Control.Exception (bracket)
import Dat... | snoyberg/keter | Network/HTTP/ReverseProxy/Rewrite.hs | mit | 7,638 | 0 | 26 | 1,870 | 2,022 | 1,106 | 916 | 184 | 4 |
{-# LANGUAGE OverloadedStrings #-}
-- import Text.HTML.TagSoup
-- import Text.HTML.TagSoup.Tree
import GHC.Int
import Data.Maybe
import Control.Applicative ( (<$>) )
import Network.HTTP.Conduit
import Data.String.Conversions (cs)
import Data.Aeson
import Data.Aeson.Types
import Data.ByteString.Lazy as BL
import Data.... | begriffs/twittective | Main.hs | mit | 855 | 0 | 11 | 136 | 248 | 132 | 116 | 24 | 1 |
-- |
module Language.Imperative.C where
import Language.Imperative
import qualified Language.C as C
type CType a = C.CDeclaration a
type CLit a = C.CConstant a
type CExpr e s a = Expr (CLit a) (CType a) e s a
type CStmt e s a = Statement (CLit a) (CType a) e s a
type CCase s a = Case (CLit a) s a
type CPat a = Patte... | sinelaw/imperative | src/Language/Imperative/C.hs | mit | 1,197 | 0 | 13 | 288 | 582 | 305 | 277 | 31 | 1 |
module Main (main) where
-- Imports from 'tasty'
import Test.Tasty (defaultMain, testGroup)
-- Imports from 'jupyter'
import Jupyter.Test.Client (clientTests)
import Jupyter.Test.Install (installTests)
import Jupyter.Test.Kernel (kernelTests)
import Jupyter.Test.ZeroM... | gibiansky/jupyter-haskell | tests/Test.hs | mit | 498 | 0 | 7 | 111 | 105 | 65 | 40 | 10 | 1 |
import Control.Arrow ((&&&))
import Data.List (transpose, sort, group)
colFreq :: Ord a => [a] -> [a]
colFreq = map snd . sort . count
where count = map (length &&& head) . group . sort
decode :: Ord a => ([a] -> a) -> [[a]] -> [a]
decode f = map (f . colFreq) . transpose
main :: IO ()
main = do
input <- lin... | mattvperry/AoC_2016 | day06/haskell/day6.hs | mit | 399 | 0 | 11 | 90 | 204 | 108 | 96 | 11 | 1 |
module Language.Pal.Parser
( expr
) where
import Control.Applicative
import Text.Parsec.Char hiding (string)
import Text.Parsec.Combinator
import Text.Parsec.String
import Text.Parsec ((<?>))
import Language.Pal.Types
list :: Parser LValue
list = char '(' *> (List <$> (expr `sepBy` whitespaces)) <* char ')'
wh... | samstokes/pal | Language/Pal/Parser.hs | mit | 1,103 | 0 | 14 | 234 | 402 | 215 | 187 | 35 | 1 |
-- Harshad or Niven numbers
-- http://www.codewars.com/kata/54a0689443ab7271a90000c6/
module Codewars.Kata.Harshad where
import Control.Arrow ((&&&))
import Data.Char (digitToInt)
import Data.Maybe (fromMaybe)
isValid :: Integer -> Bool
isValid = (==0) . uncurry mod . (id &&& fromIntegral . foldr ((+) . digitToInt)... | gafiatulin/codewars | src/6 kyu/Harshad.hs | mit | 522 | 0 | 11 | 86 | 190 | 105 | 85 | -1 | -1 |
module Main where
import Control.Monad
import Control.Monad.Except
import Control.Monad.IO.Class (liftIO)
import Data.Char
import System.IO
import Language.Janus.AST
import Language.Janus.Interp
import Language.Janus.Parser
main :: IO ()... | mkaput/janus | repl/Main.hs | mit | 1,531 | 0 | 17 | 474 | 529 | 248 | 281 | 47 | 5 |
{-# htermination (fromEnumRatio :: Ratio MyInt -> MyInt) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
data Tup2 a b = Tup2 a b ;
data Double = Double MyInt MyInt ;
data Float = Float MyInt MyInt ;
data Integer = Integer MyInt ;
data MyInt = Pos Nat | Neg Nat... | ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/fromEnum_2.hs | mit | 3,161 | 0 | 9 | 625 | 1,449 | 758 | 691 | 70 | 1 |
module Main where
import Interpreter
import PowAST
import qualified Parse as P
import qualified Data.Map as M
import Text.ParserCombinators.Parsec (parse)
main :: IO ()
main = runMoreCode M.empty M.empty
runMoreCode :: SymTab -> FunTab -> IO ()
runMoreCode vtab ftab = do
putStr "> "
input <- getLine
let ast = ... | rloewe/petulant-octo-wallhack | Repl.hs | mit | 563 | 0 | 15 | 143 | 207 | 102 | 105 | 22 | 2 |
answer = length $ combinations sums
coins = [200,100,50,20,10,5,2,1]
sums = [200,0,0,0,0,0,0,0]
combinations :: [Int] -> [[Int]]
combinations ts
| next ts == [] = [ts]
| otherwise = ts : combinations(next ts)
next :: [Int] -> [Int]
next ts
| ts!!6>0 = fst' 6 ++ [ (ts!!6)-2, (ts!!... | yuto-matsum/contest-util-hs | src/Euler/031.hs | mit | 3,090 | 0 | 13 | 1,123 | 815 | 445 | 370 | 23 | 1 |
module Options (
extractOptions,
isHelp,
isVerbose,
imgOptions,
eqInlineOptions,
fontSize,
outputFile,
packages,
showHelp
) where
import System.Console.GetOpt
import qualified Data.Text as T (pack, unpack, split)
data Flag = Help | Verbose | Package String | FontSize String | Output String... | dino-r/TexErupter | src/Options.hs | mit | 2,863 | 4 | 14 | 720 | 860 | 469 | 391 | 69 | 2 |
import Network.HTTP.Server
import Network.HTTP.Server.Logger
import Network.HTTP.Server.HtmlForm as Form
import Network.URL as URL
import Text.JSON
import Text.JSON.String(runGetJSON)
import Text.XHtml
import Codec.Binary.UTF8.String
import Control.Exception(try,SomeException)
import System.FilePath
import Data.List(is... | GaloisInc/http-server | example/SimpleWeb.hs | mit | 3,778 | 0 | 26 | 1,292 | 955 | 476 | 479 | 78 | 9 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE FlexibleContexts #-}
{- |
Module : Control.Lens.SemiIso
Description : Semi-isomorphisms.
Copyright : (c) Paweł Nowak
License : MIT
Maintain... | pawel-n/semi-iso | Control/Lens/SemiIso.hs | mit | 15,262 | 0 | 14 | 3,662 | 3,960 | 2,090 | 1,870 | 221 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TemplateHaskell #-}
-- Copyright (C) 2012 John Millikin <jmillikin@gmail.com>
--
-- See license.txt for details
module OptionsTests.StringParsing
( suite_StringParsing
) where
import Control.Applicative
import Test.Chell
import Options
data StringOpt... | jmillikin/haskell-options | tests/OptionsTests/StringParsing.hs | mit | 1,981 | 24 | 15 | 324 | 429 | 222 | 207 | 43 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module AEAD.XChaCha20Poly1305Properties (
testAEADXChaCha20
) where
import Util
import Crypto.Saltine.Core.AEAD.XChaCha20Poly1305
import Crypto.Saltine.Class (decode)
import Crypto.Saltine.Internal.AEA... | tel/saltine | tests/AEAD/XChaCha20Poly1305Properties.hs | mit | 4,999 | 0 | 14 | 1,062 | 1,333 | 680 | 653 | -1 | -1 |
import Stomp
import System
main = do
args <- getArgs
client<- connect "localhost" 61613 []
send client (args !! 0) [] (args !! 1)
| akisystems/stomp-hs | src/Sender.hs | mit | 144 | 0 | 9 | 38 | 63 | 31 | 32 | 6 | 1 |
module SecretSanta.ConstraintMap
(constraintMap) where
import Control.Arrow ((&&&))
import Data.Map hiding (delete,filter,null)
import Prelude hiding (lookup)
import SecretSanta.Types
-- | Takes a list of participants,
-- | a list of arran... | recursion-ninja/SecretSanta | Constraint/ConstraintMap.hs | gpl-3.0 | 1,449 | 0 | 11 | 429 | 363 | 196 | 167 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Types where
import Control.Lens
data LPrimeConfig = LPrimeConfig
{ _dividend :: Integer
}
data LPrimeState = LPrimeState{}
$(makeLenses ''LPrimeConfig)
$(makeLenses ''LPrimeState)
| ignuki/projecteuler | 3/Types.hs | gpl-3.0 | 229 | 3 | 9 | 35 | 60 | 34 | 26 | 8 | 0 |
module CPUDefs where
import Types
import Control.Applicative
class (Monad m, Applicative m) => NesCPU m where
-- * Get registers.
getA, getX, getY, getStatus :: m Operand
getPC :: m Address
getSP :: m Word8
-- * Set registers.
setA, setX, setY, setStatus :: Operand -> m ()
setPC :: Addres... | tobsan/yane | CPUDefs.hs | gpl-3.0 | 1,428 | 0 | 10 | 379 | 394 | 231 | 163 | 28 | 1 |
module Strace.Parser
(
-- Trace file parsing
parseStrace,
Line(..),
TraceEvent(..),
TimeStamp(..),
-- Action Parsing (e.g. open() exec())
Action(..),
parseAction,
) where
import Data.Either (partitionEithers)
import Data.Int (Int64)
im... | alanfalloon/percipio | src/Strace/Parser.hs | gpl-3.0 | 4,064 | 4 | 13 | 1,066 | 1,175 | 607 | 568 | 130 | 2 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module Model.PermissionUtil
( maskRestrictedString
) where
import qualified Data.String as ST
maskRestrictedString :: ST.IsString a => a -> a
maskRestrictedString s = const (ST.fromString "") s
| databrary/databrary | src/Model/PermissionUtil.hs | agpl-3.0 | 256 | 0 | 8 | 37 | 59 | 33 | 26 | 6 | 1 |
module NestedRoots.A338271Spec (main, spec) where
import Test.Hspec
import NestedRoots.A338271 (a338271)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A338271" $
it "correctly computes the first 20 elements" $
map a338271 [1..20] `shouldBe` expectedValue where
expectedValue = [1,0,0,2,0,2,... | peterokagey/haskellOEIS | test/NestedRoots/A338271Spec.hs | apache-2.0 | 352 | 0 | 8 | 57 | 154 | 92 | 62 | 10 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
import Data.Maybe (maybe)
import Control.Monad (liftM)
newtype Reader e a = Reader { runReader :: e -> a }
instance Functor (Reader e) where
fmap f (Reader r) = Reader $ \e -> f (r e)
instance Applicat... | egaburov/funstuff | Haskell/monads/readm.hs | apache-2.0 | 2,794 | 0 | 14 | 852 | 1,048 | 541 | 507 | 56 | 2 |
-- Demonstrates of a possible solution to expression problem in Haskell.
module Main where
import Prelude hiding (print)
-- Classes
class Document a where
load :: a -> IO ()
save :: a -> IO ()
class Printable a where
print :: a -> IO ()
-- Text Document
data TextDocument = TextDocument String
-- D... | rizo/lambda-lab | expression-problem/haskell/expression-problem-1.hs | apache-2.0 | 1,307 | 0 | 9 | 271 | 373 | 186 | 187 | 29 | 1 |
module PopVox
( module X
) where
import PopVox.OpenSecrets
import PopVox.OpenSecrets.Output
import PopVox.OpenSecrets.Types
import PopVox.OpenSecrets.Utils
import PopVox.Types
import qualified PopVox.OpenSecrets as X
import qualified PopVox.OpenSecre... | erochest/popvox-scrape | src/PopVox.hs | apache-2.0 | 480 | 0 | 4 | 128 | 81 | 58 | 23 | 12 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Yesod.Session.Redis (
localRedisSessionBackend,
redisSessionBackend
) where
import qualified Web.RedisSession as R
import Yesod.Core
import qualified Network.Wai as W
import Web.Cookie
import Control.Monad.Trans (liftIO)
import Data.Maybe (fromMaybe)
import Data.Time (UTC... | scan/redissession | Yesod/Session/Redis.hs | bsd-2-clause | 2,239 | 26 | 15 | 368 | 754 | 389 | 365 | 55 | 2 |
module HEP.Physics.MSSM.Model.Common where
newtype Sign = Sign Bool
deriving (Show,Eq,Ord)
-- |
sgnplus :: Sign
sgnplus = Sign True
-- |
sgnminus :: Sign
sgnminus = Sign False
-- |
toInt :: Sign -> Int
toInt (Sign True) = 1
toInt (Sign False) = -1
-- |
fromInt :: Int -> Sign
fromInt i = Sign (i >= 0... | wavewave/MSSMType | src/HEP/Physics/MSSM/Model/Common.hs | bsd-2-clause | 323 | 0 | 7 | 80 | 128 | 72 | 56 | 12 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module Test.ZM.ADT.LeastSignificantFirst.K20ffacc8f8c9 (LeastSignificantFirst(..)) where
import qualified Prelude(Eq,Ord,Show)
import qualified GHC.Generics
import qualified Flat
import qualified Data.Model
newtype LeastSignificantFirst a = LeastSignifi... | tittoassini/typed | test/Test/ZM/ADT/LeastSignificantFirst/K20ffacc8f8c9.hs | bsd-3-clause | 496 | 0 | 7 | 53 | 122 | 75 | 47 | 10 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
module FPNLA.Operations.BLAS.Strategies.GEMV (
) where
import FPNLA.Matrix (asColumn_vm, toCols_vm)
import FPNLA.Operations.BL... | mauroblanco/fpnla-examples | src/FPNLA/Operations/BLAS/Strategies/GEMV.hs | bsd-3-clause | 873 | 0 | 9 | 274 | 224 | 127 | 97 | 16 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric #-}
module Web.ChatWork.Endpoints.My (
statusEndpoint
, MyStatus(..)
, Task(..)
, tasksEndpoint
) where
import Data.Aeson
import Data.ByteString.Char8
import GHC.Generics
import Web.ChatWork.Endpoints.Base
import Web.ChatWork.Internal as I
impo... | eiel/haskell-chatwork | src/Web/ChatWork/Endpoints/My.hs | bsd-3-clause | 1,452 | 0 | 9 | 294 | 396 | 232 | 164 | 54 | 1 |
module Examples where
import Lang.Lam.Syntax
import FP
import qualified FP.Pretty as P
import qualified Lang.Lam.Analyses as A
import Lang.Lam.Passes.B_CPSConvert
formatResults :: Doc -> Doc
formatResults = localSetL P.maxColumnWidthL 120 . localSetL P.maxRibbonWidthL 120
doConfig :: Exp -> [String] -> [String] -> [... | davdar/quals | src/Examples.hs | bsd-3-clause | 1,966 | 0 | 15 | 496 | 761 | 385 | 376 | 48 | 1 |
{-# LANGUAGE CPP #-}
-------------------------------------------------------------------------------
-- |
-- Copyright : (c) 2010 Eugene Kirpichov, Dmitry Astapov
-- License : BSD3
--
-- Maintainer : Eugene Kirpichov <ekirpichov@gmail.com>,
-- Dmitry Astapov <dastapov@... | jkff/greg | greg-clients/haskell/System/Log/Greg.hs | bsd-3-clause | 11,509 | 0 | 27 | 3,032 | 2,818 | 1,412 | 1,406 | 193 | 4 |
module Mask where
import Data.Char (toUpper)
import Data.Maybe (catMaybes, isJust)
import Data.List
newtype Mask = Mask [Maybe Char]
deriving (Eq, Show)
parseMask :: String -> Maybe Mask
parseMask = fmap Mask . mapM (aux . toUpper)
where
aux '.' = return Nothing
aux c | c `elem` alph... | glguy/vty-hangman-helper | Mask.hs | bsd-3-clause | 1,697 | 0 | 11 | 483 | 741 | 382 | 359 | 42 | 4 |
module Basil.Database.InMemory ( module Basil.Database.InMemory.Interface,
module Basil.Database.InMemory.Cache,
) where
import Basil.Database.InMemory.Cache
import Basil.Database.InMemory.Interface
| chriseidhof/Basil | src/Basil/Database/InMemory.hs | bsd-3-clause | 266 | 0 | 5 | 80 | 40 | 29 | 11 | 4 | 0 |
module GrammarLexer
( GrammarLexeme(..)
, runLexer
) where
import Data.Char
import Data.Monoid ((<>))
import Control.Applicative ((<*>), (<*), (*>))
import Text.Parsec.String (Parser)
import Text.Parsec.Char
import Text.Parsec.Prim
import Text.Parsec.Combinator
import Text.Parsec.Error (ParseError)
import ... | flyingleafe/parser-gen | src/GrammarLexer.hs | bsd-3-clause | 4,002 | 0 | 13 | 1,236 | 1,266 | 671 | 595 | 105 | 1 |
module TestTypechecker where
import Test.HUnit
import Parser
import Typechecker
intCheck :: Assertion
intCheck = parseAndTypecheck "60" "int"
if0Check :: Assertion
if0Check = parseAndTypecheck "if0 5 then <> else <>" "unit"
absCheck :: Assertion
absCheck = parseAndTypecheck "func [] (x:int) . x" "forall [] (int) -... | phillipm/mlish-to-llvm | test/TestTypechecker.hs | bsd-3-clause | 1,374 | 0 | 10 | 234 | 272 | 145 | 127 | 28 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.