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 MessageProperties where
import Data.Binary
import qualified Data.ByteString.Lazy as LBS
import Network.Linx.Gateway.Message
import Network.Linx.Gateway.Types
import Generators ()
prop_message :: Message -> Bool
prop_message message@(Message _ msgPayload) =
let encodedMessage = encode message
... | kosmoskatten/linx-gateway | test/MessageProperties.hs | mit | 598 | 0 | 11 | 123 | 155 | 85 | 70 | 14 | 1 |
-- Copyright (c) 2014 Zachary King
import System.Environment
import Data.Time
data Entry = Entry { line :: String
, time :: UTCTime
} deriving (Show)
type Index = [Entry]
emptyIndex :: Index
emptyIndex = []
main :: IO ()
main = loop emptyIndex
loop :: Index -> IO ... | zakandrewking/eightball | eightball.hs | mit | 557 | 0 | 15 | 185 | 175 | 90 | 85 | 21 | 2 |
module Grammar
( Grammar (..)
, ProductionElement (..)
, Production (..)
, isDiscardable
, isSymbol
, fromSymbol
) where
import qualified Data.Map as Map
data Grammar terminals productionNames symbols = Grammar
{ startSymbol :: symbols
, productions :: Map.Map productionNames (Prod... | mrwonko/wonkococo | wcc/Grammar.hs | mit | 2,590 | 0 | 13 | 603 | 633 | 337 | 296 | 48 | 1 |
import Test.HUnit (Assertion, (@=?), runTestTT, Test(..))
import Control.Monad (void)
import Gigasecond (fromDay)
import Data.Time.Calendar (fromGregorian)
testCase :: String -> Assertion -> Test
testCase label assertion = TestLabel label (TestCase assertion)
main :: IO ()
main = void $ runTestTT $ TestList
[ ... | tfausak/exercism-solutions | haskell/gigasecond/gigasecond_test.hs | mit | 771 | 0 | 9 | 148 | 237 | 125 | 112 | 17 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( makeApplication
, getApplicationDev
, makeFoundation
) where
import Import
import Settings
import Yesod.Auth
import Yesod.Default.Config
import Yesod.Default.Main
import Yesod.Default.Handlers
import Network.Wai.Middleware.RequestLogger
import ... | lulf/wishsys | Application.hs | mit | 2,809 | 0 | 12 | 543 | 483 | 263 | 220 | -1 | -1 |
--------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
import Control.Applicative ((<$>))
import Data.Monoid (mconcat,(<>))
import Data.Function (on)
import Data.List (sortBy,intersperse,intercalate,isInfixOf)
import ... | benkolera/blog | hs/Site.hs | mit | 3,428 | 8 | 21 | 682 | 873 | 443 | 430 | 77 | 1 |
-- |This module, and the corresponding 'Zeno.Isabellable' modules,
-- deal with the conversion a 'ProofSet' into Isabelle/HOL code, outputting this
-- code into a file and then checking this file with Isabelle.
module Zeno.Isabelle (
toIsabelle
) where
import Prelude ()
import Zeno.Prelude
import Zeno.Core
import Ze... | Gurmeet-Singh/Zeno | src/Zeno/Isabelle.hs | mit | 1,484 | 0 | 13 | 391 | 347 | 191 | 156 | 38 | 0 |
-- Simple Haskell program that generates KB clauses for the position functions.
n (x,y) = (x,y-1)
e (x,y) = (x+1,y)
s (x,y) = (x,y+1)
w (x,y) = (x-1,y)
ne (x,y) = (x+1,y-1)
se (x,y) = (x+1,y+1)
nw (x,y) = (x-1,y-1)
sw (x,y) = (x-1,y+1)
xrange = [1..4]
yrange = [1..4]
valid (x,y) = x `elem` xrange && y `elem` yrange
... | schwering/limbo | examples/tui/battleship-pos.hs | mit | 700 | 0 | 15 | 140 | 548 | 309 | 239 | 14 | 1 |
module Main where
import Day7.Main
main = run
| brsunter/AdventOfCodeHaskell | src/Main.hs | mit | 46 | 0 | 4 | 8 | 14 | 9 | 5 | 3 | 1 |
main :: IO ()
main = do
p1 <- getLine
p2 <- getLine
let [x1, y1] = map (\x -> read x :: Int) (words p1)
[x2, y2] = map (\x -> read x :: Int) (words p2)
print $ abs (x1 - x2) + abs (y1 - y2) + 1
| knuu/competitive-programming | atcoder/other/idn_qb_1.hs | mit | 208 | 0 | 13 | 65 | 143 | 72 | 71 | 7 | 1 |
{-# LANGUAGE LambdaCase #-}
module Main where
import Control.Concurrent hiding (Chan)
import Control.Concurrent.GoChan
import Control.Monad
import Data.IORef
import Test.Hspec
main :: IO ()
main =
hspec $
do describe "with buffer size 0" $
... | cstrahan/gochan | fuzz/Main.hs | mit | 5,923 | 0 | 18 | 2,272 | 1,784 | 821 | 963 | 158 | 2 |
module Problem16 where
import Data.Char (digitToInt)
main = print . sum . map digitToInt . show $ 2^1000
| DevJac/haskell-project-euler | src/Problem16.hs | mit | 107 | 0 | 9 | 20 | 42 | 23 | 19 | 3 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE StandaloneDeriving #-}
-- | /Warning/: This is an internal module and subject
-- to change without notice.
module System.ZMQ4.Internal
( Context (..)
, Socket (..)
, SocketRepr (..)
, Socket... | twittner/zeromq-haskell | src/System/ZMQ4/Internal.hs | mit | 12,198 | 0 | 18 | 2,917 | 3,892 | 1,996 | 1,896 | -1 | -1 |
{-
Copyright (C) 2017 WATANABE Yuki <magicant@wonderwand.net>
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 of the License, or
(at your option) any later version.
This program is ... | magicant/flesh | src/Flesh/Language/Syntax.hs | gpl-2.0 | 15,553 | 0 | 14 | 3,415 | 4,209 | 2,205 | 2,004 | 304 | 2 |
import qualified Data.Vector as V
import qualified Data.List as L
accSum :: Num t => [t] -> [t]
accSum xs = aux xs 0
where aux [] a = []
aux (x:xs') a = (a + x) : aux xs' (a + x)
lowerBound :: (Num a, Ord a) => V.Vector a -> a -> Int
lowerBound vec target = aux 0 ((V.length vec) - 1)
where
au... | m00nlight/hackerrank | functional/ad-hoc/Subset-Sum/main.hs | gpl-2.0 | 1,328 | 0 | 14 | 515 | 657 | 341 | 316 | 33 | 3 |
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
module ProcessPool
( Job(jobValue)
, Result(..)
... | merijn/GPU-benchmarks | benchmark-analysis/ingest-src/ProcessPool.hs | gpl-3.0 | 13,530 | 0 | 24 | 3,756 | 3,851 | 1,990 | 1,861 | 321 | 4 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE TypeFamilies #-}
module Mescaline.Pattern (
-- *Patterns
Pattern
, module Mescaline.Pattern.Ppar
, ptrace
-- *Base module
, module Sound.SC3.Lang.... | kaoskorobase/mescaline | lib/mescaline-patterns/src/Mescaline/Pattern.hs | gpl-3.0 | 1,018 | 0 | 11 | 231 | 262 | 159 | 103 | 28 | 1 |
{-# LANGUAGE NoImplicitPrelude, DeriveGeneric, DeriveFunctor, DeriveFoldable, DeriveTraversable, GeneralizedNewtypeDeriving, RecordWildCards #-}
module Lamdu.Expr.Val
( Leaf(..)
, Literal(..), litType, litData
, Body(..)
, Apply(..), applyFunc, applyArg
, GetField(..), getFieldRecord, getFieldTag
... | da-x/Algorithm-W-Step-By-Step | Lamdu/Expr/Val.hs | gpl-3.0 | 12,399 | 0 | 14 | 3,447 | 4,639 | 2,397 | 2,242 | 264 | 14 |
{- Test for Program -}
module TestProgram where
import Program
p, p1 :: Program.T
p = fromString ("\
\read k;\
\read n;\
\m := 1;\
\while n-m do\
\ begin\
\ if m - m/k*k then\
\ skip;\
\ else\
\ write m;\
\ m := m + 1;\
\ end")
p1 = fromString ("\
\read n;\
\read b;\
\m := 1;\
\s := 0;\
\p := 1... | nevvi/Declarative-D7012E | lab2/TestProgram.hs | gpl-3.0 | 720 | 19 | 8 | 222 | 144 | 85 | 59 | 10 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Versions/List.hs | mpl-2.0 | 7,481 | 0 | 24 | 1,946 | 1,203 | 692 | 511 | 171 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.YouTubeReporting.Types
-- Copyright : (c) 2015-2016 Br... | rueshyna/gogol | gogol-youtube-reporting/gen/Network/Google/YouTubeReporting/Types.hs | mpl-2.0 | 2,608 | 0 | 7 | 586 | 256 | 176 | 80 | 63 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DataKinds #-}
module Main
( main
) where
import GHC.Generics ( Generic, Generic1 )
import qualified Data.Foldable as F
import Control.Monad ( void )
import Graphics... | ghorn/dynobud | dynobud/examples/MultipleShooting.hs | lgpl-3.0 | 3,763 | 0 | 19 | 1,061 | 1,391 | 757 | 634 | 97 | 2 |
module Problems011to020 where
import Data.Char
import Data.Function
import Data.List
import Data.Time
import Data.Time.Calendar.WeekDate
import Util
-- In the 20x20 grid below, four numbers along a diagonal line have been marked in red.
--
-- 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
-- 49 ... | wey/projecteuler | Haskell/ProjectEuler/src/Problems011to020.hs | unlicense | 25,299 | 0 | 20 | 6,822 | 3,259 | 2,039 | 1,220 | 219 | 4 |
{-#LANGUAGE OverloadedStrings#-}
module Data.P440.XML.Instances.Render.ROO where
import qualified Data.P440.Domain.ROO as ROO
import Data.P440.Domain.ComplexTypes
import Data.P440.XML.Render
import qualified Data.P440.XML.Instances.Render.ComplexTypes as C
import qualified Data.P440.XML.Instances.Render.RPO
instance... | Macil-dev/p440 | src/Data/P440/XML/Instances/Render/ROO.hs | unlicense | 2,284 | 0 | 11 | 704 | 1,001 | 516 | 485 | 41 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Haste.DOM (withElems, getValue, setProp)
import Haste.Events (onEvent, MouseEvent(Click))
import Haste.Foreign (ffi)
import qualified Language.ZOWIE.Parser as Parser
import qualified Language.ZOWIE.Machine as Machine
getCh :: IO Char
getCh = ffi "(functio... | catseye/ZOWIE | impl/zowie-hs/src/HasteMain.hs | unlicense | 1,153 | 0 | 15 | 229 | 256 | 137 | 119 | 24 | 2 |
module Data.Hadoop.SequenceFile.Types
( Header(..)
, MD5(..)
, RecordBlock(..)
) where
import Data.ByteString (ByteString)
import qualified Data.ByteString as B
import Data.Text (Text)
import Text.Printf (printf)
import Data.Hadoop.Writable
--------------------... | jystic/hadoop-formats | src/Data/Hadoop/SequenceFile/Types.hs | apache-2.0 | 1,943 | 0 | 11 | 596 | 322 | 202 | 120 | 40 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Web.Actions.User where
import Web.Utils
import Model.ResponseTypes
import Model.CoreTypes
import System.Random
import Database.Persist
import Database.Persist.Sql
import Data.Word8
import Control.Monad
import Data.Time
import Control.Monad.Trans
import qualified Data.ByteStri... | agrafix/funblog | src/Web/Actions/User.hs | apache-2.0 | 2,807 | 0 | 19 | 729 | 884 | 446 | 438 | 71 | 3 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PackageImports #-}
{-
Copyright 2019 The CodeWorld Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:... | alphalambda/codeworld | codeworld-base/src/Prelude.hs | apache-2.0 | 1,393 | 0 | 5 | 246 | 107 | 72 | 35 | 17 | 0 |
-- 1533776805
import Data.List.Ordered(isect, member)
import Euler(triangular, pentagonal, hexagonal)
nn = 143
-- walk the pentagonal and triangular lists
-- check whether the hexagonal value is in them
-- also provide the remainder of each list for the next check
walkSet n ps ts = (member n $ isect ps2 ts2, ps3, ts3... | higgsd/euler | hs/45.hs | bsd-2-clause | 676 | 0 | 8 | 145 | 234 | 128 | 106 | 12 | 2 |
module Chart.Distribution (renderContinuousDistribution,
renderDiscreteDistribution,
continuousDistributionPlot,
discreteDistributionPlot) where
import Graphics.Rendering.Chart
import Graphics.Rendering.Chart.Backend.Cairo
import Data.Colo... | richardfergie/chart-distribution | Chart/Distribution.hs | bsd-3-clause | 2,929 | 0 | 15 | 805 | 891 | 484 | 407 | -1 | -1 |
module Unregister where
import InstalledPackages
import Distribution.Text
import Distribution.Package (PackageId)
import Distribution.Simple.PackageIndex
import Distribution.InstalledPackageInfo
import Distribution.Simple.GHC
import Distribution.Simple.Program.HcPkg
import Distribution.Simple.Compiler (PackageDB(..))
... | glguy/GhcPkgUtils | Unregister.hs | bsd-3-clause | 1,525 | 0 | 13 | 283 | 385 | 200 | 185 | 38 | 2 |
{-|
Module : Idris.Elab.Term
Description : Code to elaborate terms.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE LambdaCase, PatternGuards, ViewPatterns #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Idris.Elab.Term where
import Idris.AbsSyntax
import Idris.AbsSyn... | KaneTW/Idris-dev | src/Idris/Elab/Term.hs | bsd-3-clause | 132,339 | 1,239 | 18 | 57,320 | 15,601 | 12,008 | 3,593 | 2,350 | 239 |
{-# language CPP #-}
-- No documentation found for Chapter "ExternalMemoryFeatureFlagBits"
module Vulkan.Core11.Enums.ExternalMemoryFeatureFlagBits ( ExternalMemoryFeatureFlags
, ExternalMemoryFeatureFlagBits( EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT
... | expipiplus1/vulkan | src/Vulkan/Core11/Enums/ExternalMemoryFeatureFlagBits.hs | bsd-3-clause | 4,826 | 1 | 10 | 1,037 | 404 | 253 | 151 | -1 | -1 |
{-|
Module : ChainFlyer
Copyright : (c) Tatsuya Hirose, 2015
License : BSD3
Maintainer : tatsuya.hirose.0804@gmail.com
-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric #-}
module Servant.ChainFlyer.Types.Transaction
( TransactionInput(..)
, TransactionOutput(..)
, Transaction(..)
) where
... | lotz84/chainFlyer | src/Servant/ChainFlyer/Types/Transaction.hs | bsd-3-clause | 3,091 | 0 | 24 | 1,119 | 650 | 365 | 285 | 78 | 0 |
module JIT where
import Foreign.Ptr (FunPtr, castFunPtr)
import Control.Monad.Except
import qualified LLVM.General.AST as AST
import LLVM.General.Context
import qualified LLVM.General.ExecutionEngine as EE
import LLVM.General.Module as Mod
import LLVM.General.PassManager
foreign import ccall "dynamic" haskFun :: Fu... | jjingram/satori | src/JIT.hs | bsd-3-clause | 1,379 | 0 | 25 | 383 | 447 | 228 | 219 | 38 | 2 |
-- parser produced by Happy Version 1.13
{-
%
% (c) The GRASP/AQUA Project, Glasgow University, 1998
%
% @(#) $Docid: Jul. 12th 2001 10:08 Sigbjorn Finne $
% @(#) $Contactid: sof@galconn.com $
%
A grammar for OMG CORBA IDL
-}
module OmgParser ( parseIDL ) where
import LexM
import Lex
import IDLTo... | dchagniot/hdirect | src/OmgParser.hs | bsd-3-clause | 98,554 | 3,947 | 20 | 17,795 | 27,862 | 14,967 | 12,895 | 2,864 | 74 |
module Cz.MartinDobias.ChristmasKoma.PadCracker (
Message,
PossibleKeystrokes,
Passphrase(..),
crack,
decode,
zipAll
) where
import Data.Char(ord, chr)
import Data.Bits(xor)
type Message = String
type PossibleKeystrokes = [Char]
type AvailableChars = [Char]
type Passphrase = [PossibleKeystroke... | martindobias/christmass-koma | src/Cz/MartinDobias/ChristmasKoma/PadCracker.hs | bsd-3-clause | 1,989 | 0 | 12 | 381 | 790 | 427 | 363 | 40 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
module FPNLA.Operations.BLAS.Strategies.SYRK.MonadPar.DefPar () where
import Control.DeepSeq (NFData)
import Contr... | mauroblanco/fpnla-examples | src/FPNLA/Operations/BLAS/Strategies/SYRK/MonadPar/DefPar.hs | bsd-3-clause | 2,251 | 0 | 15 | 1,162 | 518 | 285 | 233 | 33 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving, ScopedTypeVariables, KindSignatures, GADTs, InstanceSigs, TypeOperators, MultiParamTypeClasses, FlexibleInstances, OverloadedStrings #-}
module Text.AFrame where
import Control.Applicative
import Data.Char (isSpace)
import Data.Generic.Diff
import Data.Map(Map)
import Data.Str... | ku-fpg/aframe | src/Text/AFrame.hs | bsd-3-clause | 13,322 | 0 | 22 | 3,737 | 4,141 | 2,129 | 2,012 | 232 | 6 |
-- | This module provides the /TcT/ monad.
module Tct.Core.Data.TctM
(
-- * Tct Monad
TctM (..)
, TctROState (..)
, TctStatus (..)
, askState
, setState
, setKvPair
, getKvPair
, askStatus
-- * Lifted IO functions
, async
, wait
, timed
, paused
, raceWith
, concurrently
) where
im... | ComputationWithBoundedResources/tct-core | src/Tct/Core/Data/TctM.hs | bsd-3-clause | 4,268 | 0 | 17 | 1,085 | 1,296 | 672 | 624 | 89 | 2 |
module Dir.CoerceType(CoerceType(..)) where
newtype CoerceType = CoerceType Int
| ndmitchell/weeder | test/foo/src/Dir/CoerceType.hs | bsd-3-clause | 81 | 0 | 5 | 9 | 23 | 15 | 8 | 2 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Rede.Workers.VeryBasic(
veryBasic
,bad404ResponseData
,bad404ResponseHeaders
) where
import qualified Data.ByteString as B
import Data.Conduit
import Data.ByteString.Char8 (pack)
import Rede.MainLoop.CoherentWorker
trivialHeaders :: ... | loadimpact/http2-test | hs-src/Rede/Workers/VeryBasic.hs | bsd-3-clause | 1,060 | 0 | 10 | 275 | 231 | 138 | 93 | 28 | 1 |
import Data.Aeson
import qualified Data.ByteString.Lazy as B
import qualified Data.Map as Map
jsonFile :: FilePath
jsonFile = "kataids.json"
hsFile :: FilePath
hsFile = "Kataids.hs"
getJSON :: IO B.ByteString
getJSON = B.readFile jsonFile
kidspref = "module Kataids where\n\
\import qualified Data.Map as ... | klpn/lablinkfix | kataidsgen.hs | bsd-3-clause | 558 | 0 | 13 | 127 | 156 | 83 | 73 | 15 | 2 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[SimplCore]{Driver for simplifying @Core@ programs}
-}
{-# LANGUAGE CPP #-}
module SimplCore ( core2core, simplifyExpr ) where
#include "HsVersions.h"
import GhcPrelude
import DynFlags
import CoreSyn
import HscTypes
import CSE ( cse... | shlevy/ghc | compiler/simplCore/SimplCore.hs | bsd-3-clause | 45,493 | 2 | 22 | 15,166 | 5,714 | 3,085 | 2,629 | 479 | 8 |
module System.Build.Access.Top where
class Top r where
top ::
Maybe String
-> r
-> r
getTop ::
r
-> Maybe String
| tonymorris/lastik | System/Build/Access/Top.hs | bsd-3-clause | 144 | 0 | 8 | 52 | 45 | 24 | 21 | 9 | 0 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
module Data.Typewriter.Data.List where
import Data.Typewriter.Core
type family Head xs :: *
type instance Head (h :*:... | isomorphism/typewriter | Data/Typewriter/Data/List.hs | bsd-3-clause | 2,383 | 0 | 12 | 616 | 1,073 | 583 | 490 | 60 | 0 |
module Events.LeaveChannelConfirm where
import Prelude ()
import Prelude.MH
import qualified Graphics.Vty as Vty
import State.Channels
import Types
onEventLeaveChannelConfirm :: Vty.Event -> MH ()
onEventLeaveChannelConfirm (Vty.EvKey k []) = do
case k of
Vty.KCh... | aisamanra/matterhorn | src/Events/LeaveChannelConfirm.hs | bsd-3-clause | 467 | 0 | 14 | 132 | 135 | 71 | 64 | 14 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Data.GraphQL.AST.Transform where
import Control.Applicative (empty)
import Control.Monad ((<=<))
import Data.Bifunctor (first)
import Data.Either (partitionEithers)
import Data.Foldable (fold, foldMap)
import qualified Data.List.NonEmpty as NonEmpty
import Data.Monoid (Alt(Alt... | jdnavarro/graphql-haskell | Data/GraphQL/AST/Transform.hs | bsd-3-clause | 4,328 | 0 | 12 | 822 | 1,357 | 707 | 650 | 90 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE Tem... | mikeplus64/trifecta | src/Text/Trifecta/Result.hs | bsd-3-clause | 5,198 | 0 | 18 | 1,076 | 1,608 | 853 | 755 | 113 | 2 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.EXT.FourTwoTwoPixels
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portabl... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/EXT/FourTwoTwoPixels.hs | bsd-3-clause | 707 | 0 | 4 | 87 | 46 | 37 | 9 | 6 | 0 |
{-# LANGUAGE DeriveDataTypeable, RecordWildCards #-}
module Main where
import Control.Monad (liftM, when)
import Data.Bits
import Data.Char
import Data.List (foldl', nub)
import Numeric
import System.Console.CmdArgs.Implicit
import System.IO
import System.Directory
import System.Exit
data Opts = Opts
{ hex :: [Strin... | listx/syscfg | script/panxor.hs | bsd-3-clause | 6,620 | 56 | 18 | 1,355 | 1,972 | 1,015 | 957 | 183 | 6 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE FlexibleContexts #-}
module EFA.Application.Simulation where
import EFA.Application.Utility (quantityTopology)
import qualified EFA.Application.Optimisation.Sweep as Sweep
import EFA.Application.Optimisation.Params ... | energyflowanalysis/efa-2.1 | src/EFA/Application/Simulation.hs | bsd-3-clause | 5,080 | 0 | 17 | 1,078 | 1,774 | 966 | 808 | 115 | 2 |
{-# LANGUAGE ViewPatterns, TupleSections #-}
-- | Easy logging of images and matrices(palnned) for CV research.
-- messages are send via TCP connection as MessagePack objects.
--
-- * ["str", utf8 string]: string
--
-- * ["uni", "u8", shape, raw]: uniform array
--
module Main where
import Control.Concurrent
import Cont... | xanxys/mmterm | Main.hs | bsd-3-clause | 7,101 | 0 | 20 | 1,984 | 2,426 | 1,164 | 1,262 | 180 | 4 |
module DTW
(
dtw, cdtw, gdtw
) where
import Data.Array
import Data.List (foldl1')
add :: (Double, Int) -> (Double, Int) -> (Double, Int)
add (a, b) (c, d) = (a+c, b+d)
quo :: (Double, Int) -> Double
quo (a, b) = a/(fromIntegral b)
-- Unconstrained DTW
dtw :: Eq a => ( a -> a -> Double ) -> [a] -> [a] -> Double... | kirel/detexify-hs-backend | src/DTW.hs | mit | 2,359 | 0 | 17 | 758 | 1,456 | 802 | 654 | 48 | 3 |
{-# LANGUAGE ScopedTypeVariables
, GADTs
#-}
{-# OPTIONS_GHC
-F
-pgmF hspec-discover
-optF --module-name=Spec
-fno-warn-implicit-prelude
#-}
| hanepjiv/make10_hs | test/spec/Spec.hs | mit | 183 | 0 | 2 | 57 | 4 | 3 | 1 | 3 | 0 |
{-# LANGUAGE PatternGuards #-}
module Lambda.Text.Reduction
( rNF
, rHNF
, reduce1
, isNF
, isHNF
) where
import Lambda.Text.Term
import Lambda.Text.InputSet
import qualified Lambda.Text.Substitution as S
reduce2NF :: NormalForm -> InputSet -> Term -> Term
reduce2NF nf ips t = undefined
seq... | jaiyalas/haha | src/Lambda/Text/Reduction.hs | mit | 2,478 | 0 | 14 | 979 | 982 | 489 | 493 | 60 | 5 |
module Dampf.ConfigFile.Pretty
( pShowDampfConfig
) where
import Control.Lens
import qualified Data.Map.Strict as Map
import qualified Data.Text as T
import Text.PrettyPrint
import Dampf.ConfigFile.Types
pShowDampfConfig :: DampfConfig -> String
pShowDampfConfig = render . hang (te... | diffusionkinetics/open | dampf/lib/Dampf/ConfigFile/Pretty.hs | mit | 1,322 | 0 | 13 | 344 | 450 | 236 | 214 | -1 | -1 |
module Main where
import Console.Options
import Data.Char (isDigit)
import Data.Monoid
data MyADT = A | B | C
deriving (Show,Eq)
main = defaultMain $ do
programName "my-simple-program"
programDescription "an optional description of your program that can be found in the help"
-- a simple boolean fla... | NicolasDP/hs-cli | examples/Simple.hs | bsd-3-clause | 1,477 | 0 | 17 | 390 | 386 | 190 | 196 | 21 | 5 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Arrays where
import Language.VHDL (Mode(..))
import Language.Embedded.Hardware
import Control.Monad.Identity
import Control.Monad.Operational.Higher
import Data.ALaCarte
i... | markus-git/imperative-edsl-vhdl | examples/Array.hs | bsd-3-clause | 1,557 | 0 | 12 | 281 | 342 | 181 | 161 | 39 | 1 |
{-# LANGUAGE CPP #-}
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702
{-# LANGUAGE Trustworthy #-}
#endif
------------------------------------------------------------------------
-- |
-- Module : Data.Hashable
-- Copyright : (c) Milan Straka 2010
-- (c) Johan Tibell 2011
-- ... | ekmett/hashable | Data/Hashable.hs | bsd-3-clause | 6,626 | 0 | 5 | 1,508 | 222 | 207 | 15 | 8 | 0 |
module WithCli.Normalize (
normalize,
matches,
) where
import Data.Char
matches :: String -> String -> Bool
matches a b =
normalize a == normalize b
normalize :: String -> String
normalize s =
if all (not . isAllowedChar) s
then s
else
slugify $
dropWhile (== '-') $
filt... | kosmikus/getopt-generics | src/WithCli/Normalize.hs | bsd-3-clause | 700 | 0 | 12 | 222 | 301 | 154 | 147 | 24 | 5 |
{-# LANGUAGE Unsafe #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : System.IO.Unsafe
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : li... | alexander-at-github/eta | libraries/base/System/IO/Unsafe.hs | bsd-3-clause | 1,363 | 0 | 10 | 242 | 161 | 96 | 65 | 19 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- | Notebook demo (include Spinner animation).
-- Author : Andy Stewart
-- Copyright : (c) 2010 Andy Stewart <lazycat.manatee@gmail.com>
module Main where
import Control.Monad
import Control.Monad.IO.Class
import Data.Maybe
import Data.Text (Text)
import Data.Monoid ((<>... | k0001/gtk2hs | gtk/demo/notebook/Notebook.hs | gpl-3.0 | 4,697 | 0 | 18 | 1,200 | 1,110 | 551 | 559 | 90 | 2 |
module MonadIn2 where
f (a, b, c)
= do let (z, y) = (a, b)
case (z, y) of
(l, m) -> return (l, m)
f_1 (a, b, c)
= do let (z, y) = (a, b)
case (z, y) of
(l, m) -> return 0
| kmate/HaRe | old/testing/simplifyExpr/MonadIn2AST.hs | bsd-3-clause | 238 | 0 | 11 | 113 | 144 | 81 | 63 | 9 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
--
-- Module : IDE.NotebookFlipper
-- Copyright : 2007-2011 Juergen Nicklisch-Franken, Hamish Mackenzie
-- License : GPL
--
-- Maintainer : <maintainer@leksah.org>
-- Stability : provision... | 573/leksah | src/IDE/NotebookFlipper.hs | gpl-2.0 | 7,399 | 0 | 33 | 2,451 | 1,708 | 863 | 845 | 146 | 5 |
{-# LANGUAGE ConstraintKinds, RankNTypes #-}
module Data.Cache
( Cache, Key
, new, peek, touch, lookup
, FuncId
, memo, memoS, unmemoS
, lookupS
-- For lower-level memoization
, KeyBS, bsOfKey
) where
import Control.Applicative ((<$>))
import Control.Lens.Operators
import Control.Monad.Trans.State (Sta... | sinelaw/lamdu | bottlelib/Data/Cache.hs | gpl-3.0 | 5,541 | 0 | 23 | 1,347 | 2,018 | 1,053 | 965 | -1 | -1 |
module DemoSpec where
import Test.Hspec
spec :: Spec
spec =
describe "demo" $
specify "trivial" $
() `shouldBe` ()
| Javran/misc | yesod-min/test/DemoSpec.hs | mit | 130 | 0 | 8 | 34 | 43 | 24 | 19 | 7 | 1 |
{-# OPTIONS -XOverloadedStrings #-}
import Network.AMQP
import qualified Data.ByteString.Lazy.Char8 as BL
main :: IO ()
main = do
conn <- openConnection "127.0.0.1" "/" "guest" "guest"
ch <- openChannel conn
declareQueue ch newQueue {queueName = "hello",
queueAut... | yepesasecas/rabbitmq-tutorials | haskell/send.hs | apache-2.0 | 625 | 1 | 13 | 220 | 141 | 72 | 69 | 15 | 1 |
-- !!! test RealFrac ops (ceiling/floor/etc.) on Floats/Doubles
--
main =
putStr $
unlines
[ -- just for fun, we show the floats to
-- exercise the code responsible.
'A' : show (float_list :: [Float])
, 'B' : show (double_list :: [Double])
-- {Float,Double} inputs, {Int,Integer} outputs... | siddhanathan/ghc | testsuite/tests/numeric/should_run/arith005.hs | bsd-3-clause | 2,533 | 23 | 10 | 583 | 872 | 503 | 369 | 42 | 1 |
-- | Test for GHC 7.10+'s @BinaryLiterals@ extensions (see GHC #9224)
{-# LANGUAGE BinaryLiterals #-}
{-# LANGUAGE MagicHash #-}
module Main where
import GHC.Types
main = do
print [ I# 0b0#, I# -0b0#, I# 0b1#, I# -0b1#
, I# 0b0000000000000000000000000000000000000000000000000000000000000000000000000000... | urbanslug/ghc | testsuite/tests/parser/should_run/BinaryLiterals1.hs | bsd-3-clause | 1,148 | 0 | 9 | 223 | 213 | 120 | 93 | 16 | 1 |
{-# LANGUAGE Trustworthy #-}
module Main where
import Prelude
import safe M_SafePkg6
main = putStrLn "test"
| urbanslug/ghc | testsuite/tests/safeHaskell/check/pkg01/ImpSafeOnly07.hs | bsd-3-clause | 111 | 1 | 5 | 19 | 20 | 13 | 7 | 5 | 1 |
module Test where
data Fun = MkFun (Fun -> Fun)
data LList a = Nill | Conss a (LList a)
g :: Fun -> Fun
g f = f
| siddhanathan/ghc | testsuite/tests/stranal/should_compile/fun.hs | bsd-3-clause | 113 | 0 | 8 | 30 | 58 | 33 | 25 | 5 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module ModelTests
( vertexFileParts
, normalFileParts
, texCoordFileParts
, vertexOnlyFaceFileParts
, vertexNormalFaceFileParts
, completeFaceFileParts
, completeModel
, splittedFileParts
, assembleVertP
, assembleVertPN
, assembleVertPNTx
... | psandahl/big-engine | test/ModelTests.hs | mit | 8,876 | 0 | 14 | 3,114 | 2,770 | 1,463 | 1,307 | 189 | 1 |
{-# LANGUAGE RecursiveDo #-}
module Widgets where
import Reflex.Dom
import qualified GHCJS.DOM.HTMLInputElement as J
import qualified GHCJS.DOM.Element as J
import Control.Lens (view, (^.))
import Data.Monoid ((<>))
import Control.Monad (forM)
--------------- a link opening on a new tab ------
linkNewTab :: Mon... | paolino/LambdaCalculus | Widgets.hs | mit | 2,506 | 0 | 22 | 608 | 946 | 471 | 475 | -1 | -1 |
module Indexing where
import Types
import Control.Monad.State
import Control.Lens ((^.), (&), (+~), (-~))
import Data.List
indexing :: UnIndexedTerm -> IndexedTerm
indexing t = evalState (indexing' t) []
indexing' :: UnIndexedTerm -> State [Name] IndexedTerm
indexing' t = case t of
TmApp t1 t2 -> TmApp <... | eliza0x/Mikan | src/Indexing.hs | mit | 2,271 | 0 | 16 | 792 | 683 | 347 | 336 | 52 | 12 |
module Rebase.Data.Vector.Mutable
(
module Data.Vector.Mutable
)
where
import Data.Vector.Mutable
| nikita-volkov/rebase | library/Rebase/Data/Vector/Mutable.hs | mit | 101 | 0 | 5 | 12 | 23 | 16 | 7 | 4 | 0 |
module Test where
import Prelude ()
import Zeno
data Nat = Zero | Succ Nat
length :: [a] -> Nat
length [] = Zero
length (x:xs) = Succ (length xs)
(++) :: [a] -> [a] -> [a]
[] ++ ys = ys
(x:xs) ++ ys = x : (xs ++ ys)
class Num a where
(+) :: a -> a -> a
instance Num Nat where
Zero + y = y
Succ x + y = Succ (... | Gurmeet-Singh/Zeno | test/test.hs | mit | 868 | 0 | 11 | 239 | 511 | 265 | 246 | 35 | 1 |
module SpecHelper where
import Control.Monad (void)
import qualified System.IO.Error as E
import System.Environment (getEnv)
import qualified Data.ByteString.Base64 as B64 (encode, decodeLenient)
import Data.CaseInsensitive (CI(..))
import qualified Data.Set as S
import qualified Data.Map.Strict as M
import Data.Lis... | begriffs/postgrest | test/SpecHelper.hs | mit | 6,950 | 0 | 15 | 1,128 | 1,619 | 898 | 721 | -1 | -1 |
module Lib
( pythagoreanTripletSummingTo
) where
pythagoreanTripletSummingTo :: Integer -> [Integer]
pythagoreanTripletSummingTo n =
head [ [a,b,c] | a <- [1..n-4], b <- [a+1..n-3], c <- [b+1..n-2], -- max. c can only be n-2, since a & b must be at least 1.
a^2 + b^2 == c^2,
a + b + c == n]... | JohnL4/ProjectEuler | Haskell/Problem009/src/Lib.hs | mit | 321 | 0 | 12 | 84 | 144 | 78 | 66 | 7 | 1 |
-- Use a partially applied function to define a function that will return half
-- of a number and another that will append \n to the end of any string.
module Main where
half x = (/ 2)
addNewline s = (++ "\n")
| ryanplusplus/seven-languages-in-seven-weeks | haskell/day2/partial.hs | mit | 215 | 0 | 5 | 48 | 30 | 19 | 11 | 3 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Grammatik.Type
( module Grammatik.Type
, module Autolib.Set
)
where
import Autolib.Set
import Autolib.Size
import Autolib.Hash
import Autolib.ToDoc
import Autolib.Reader
import Data.Typeable
data Grammatik = Grammatik
{ terminale :: Set Char
, variabl... | florianpilz/autotool | src/Grammatik/Type.hs | gpl-2.0 | 1,158 | 31 | 9 | 353 | 330 | 185 | 145 | 34 | 1 |
{- |
Module : $Header$
Description : Interface to the theorem prover e-krhyper in CASC-mode.
Copyright : (c) Jonathan von Schroeder, DFKI GmbH 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : jonathan.von_schroeder@dfki.de
Stability : provisional
Portability : needs POSIX
see <http://f... | nevrenato/Hets_Fork | QBF/ProveDepQBF.hs | gpl-2.0 | 7,769 | 0 | 15 | 2,568 | 1,289 | 700 | 589 | 134 | 6 |
-- |
-- Module : Dependencies
-- Copyright : (C) 2012-2016 Jens Petersen
--
-- Maintainer : Jens Petersen <petersen@fedoraproject.org>
-- Stability : alpha
-- Portability : portable
--
-- Explanation: Dependency info
-- This program is free software: you can redistribute it and/or modify
-- it under th... | mimi1vx/cabal-rpm | src/Dependencies.hs | gpl-3.0 | 5,996 | 0 | 15 | 1,419 | 1,576 | 841 | 735 | 113 | 4 |
module Handler.SetPhaseSpec (spec) where
import TestImport
spec :: Spec
spec = withApp $ do
describe "postSetPhaseR" $ do
error "Spec not implemented: postSetPhaseR"
| ackao/APRICoT | web/conference-management-system/test/Handler/SetPhaseSpec.hs | gpl-3.0 | 182 | 0 | 11 | 39 | 44 | 23 | 21 | 6 | 1 |
-- | A module for synthetizing real electronic circuits (soldering), the fun chapter of the book.
module Dep.Algorithms.Fun where
| KommuSoft/dep-software | Dep.Algorithms.Fun.hs | gpl-3.0 | 131 | 0 | 3 | 20 | 8 | 6 | 2 | 1 | 0 |
-- | Convert Text ToNoms to their own sugar construct
{-# LANGUAGE NoImplicitPrelude #-}
module Lamdu.Sugar.Convert.Text
( text
) where
import Control.Lens.Operators
import Control.Monad (guard, mzero)
import Control.Monad.Trans.Class (lift)
import Control.Monad.Trans.... | da-x/lamdu | Lamdu/Sugar/Convert/Text.hs | gpl-3.0 | 1,963 | 0 | 23 | 519 | 501 | 293 | 208 | -1 | -1 |
module Biobase.Fasta.Pipes where
import Control.Lens
import Control.Monad (join, unless, forM_)
import Pipes
import Data.ByteString (ByteString)
import Data.ByteString as BS
import Data.ByteString.Char8 as BS8
import Pipes.ByteString as PBS
import Pipes.Group as PG
import Data.Monoid
import Pipes as P
import Data.Sem... | choener/BiobaseFasta | _old/Pipes.hs | gpl-3.0 | 10,892 | 0 | 24 | 3,630 | 2,708 | 1,371 | 1,337 | -1 | -1 |
module TopicPart where
import Data.Text (Text)
-- | Periodic update of topics
data TopicPart =
TopicPart { tag :: ByteString -- ^ Starting tag
, update :: IO Text -- ^ Updating function
, interval :: Integer -- ^ Microseconds between updates
}
-- | Seconds in a minu... | zouppen/irc-markets | src/TopicPart.hs | gpl-3.0 | 386 | 0 | 9 | 113 | 59 | 38 | 21 | 8 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-mirror/gen/Network/Google/Resource/Mirror/Timeline/Update.hs | mpl-2.0 | 3,849 | 0 | 22 | 1,057 | 581 | 328 | 253 | 81 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/List.hs | mpl-2.0 | 7,342 | 0 | 21 | 1,851 | 1,133 | 657 | 476 | 151 | 1 |
module Hermes.Protocol
(
) where
| bbangert/hermes-hs | src/Hermes/Protocol.hs | mpl-2.0 | 41 | 0 | 3 | 13 | 9 | 6 | 3 | 2 | 0 |
-- | Parsing of objects.
module Data.GI.GIR.Object
( Object(..)
, parseObject
) where
import Data.Text (Text)
import Data.GI.GIR.Method (Method, parseMethod, MethodType(..))
import Data.GI.GIR.Property (Property, parseProperty)
import Data.GI.GIR.Signal (Signal, parseSignal)
import Data.GI.GIR.Parser
dat... | hamishmack/haskell-gi | lib/Data/GI/GIR/Object.hs | lgpl-2.1 | 1,795 | 0 | 12 | 377 | 433 | 243 | 190 | 44 | 1 |
-- contigHead("aaabbbaaa") -> "aaa"
-- chop("aaabbbaaa") -> "aaa", "bbbaaa"
-- first((a, b)) -> a
-- pack("aaabbbaaa") -> "aaa", "bbb", "aaa"
contigHead :: [Char] -> [Char]
contigHead str
| length str == 0 = ""
| otherwise =
if length ts == 0 then [h]
else
if h == head ts
... | ekalosak/haskell-practice | 9.hs | lgpl-3.0 | 728 | 0 | 9 | 241 | 296 | 154 | 142 | 21 | 3 |
{- | Support for resource pagination.
-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
module Pos.Util.Pagination (
Page(..)
, PerPage(..)
, maxPerPageEntries
, defaultPer... | input-output-hk/cardano-sl | lib/src/Pos/Util/Pagination.hs | apache-2.0 | 5,923 | 0 | 15 | 1,593 | 1,264 | 672 | 592 | -1 | -1 |
module Binary.A309576 (a309576, a309576_rows) where
import Helpers.Binary (lastBits)
-- Table read by rows: T(n, k) is the last k bits of n, 0 <= k <= A070939 n.
a309576_rows :: [[Int]]
a309576_rows = map (\n -> lastBits n ++ [n]) [1..]
a309576_list :: [Int]
a309576_list = concat a309576_rows
a309576 :: Int -> Int
a... | peterokagey/haskellOEIS | src/Binary/A309576.hs | apache-2.0 | 355 | 0 | 9 | 64 | 111 | 64 | 47 | 8 | 1 |
{-# LANGUAGE FlexibleContexts, ScopedTypeVariables, LambdaCase #-}
module HERMIT.Dictionary.Kure
( -- * KURE Strategies
externals
, anyCallR
, betweenR
, anyCallR_LCore
, testQuery
, hfocusR
, hfocusT
) where
import Control.Arrow
import Control.Monad (liftM)
import HERMIT.Core
i... | beni55/hermit | src/HERMIT/Dictionary/Kure.hs | bsd-2-clause | 11,723 | 0 | 15 | 3,014 | 2,736 | 1,408 | 1,328 | 157 | 3 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QErrorMessage.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:18
Warning : this file is machine generated - do... | uduki/hsQt | Qtc/Gui/QErrorMessage.hs | bsd-2-clause | 46,961 | 0 | 14 | 7,372 | 14,857 | 7,534 | 7,323 | -1 | -1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QStyleOptionButton.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:15
Warning : this file is machine generated... | uduki/hsQt | Qtc/Gui/QStyleOptionButton.hs | bsd-2-clause | 5,615 | 0 | 12 | 800 | 1,465 | 754 | 711 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE CPP #-}
#ifdef LANGUAGE_DeriveDataTypeable
{-# LANGUAGE DeriveDataTypeable #-}
#endif
#if __GLASGOW_HASKELL__... | ekmett/tagged-transformer | src/Data/Functor/Trans/Tagged.hs | bsd-2-clause | 12,208 | 0 | 12 | 2,496 | 3,225 | 1,758 | 1,467 | -1 | -1 |
-- |
-- Module : $Header$
-- Copyright : (c) 2013-2014 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
module Cryptol.ModuleSystem.NamingEnv where
import Cryptol.ModuleSystem.Interface
import Cryptol.Parser.AST
import Cryptol.P... | dylanmc/cryptol | src/Cryptol/ModuleSystem/NamingEnv.hs | bsd-3-clause | 7,203 | 0 | 15 | 1,897 | 2,009 | 1,032 | 977 | 137 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.