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 Main where
import ABS
(x:n:base:i:next:nn:obj:f:max_val:log_val:the_end) = [0..]
main_ :: Method
main_ [] this wb k =
Assign n (Val (I 2000)) $
Assign max_val (Val (I 10)) $
Assign x (Sync compute_logarithms [n,max_val]) $
k
compute_logarithms :: Method
compute_logarithms [pn, pmax] this wb k =
As... | abstools/abs-haskell-formal | benchmarks/4_logarithms_range/progs/2000.hs | bsd-3-clause | 1,133 | 0 | 20 | 295 | 680 | 343 | 337 | 39 | 1 |
{-
This file is part of Sarasvati.
Sarasvati is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
Sarasvati is di... | markwatkinson/luminous | tests/regression/haskell/Engine.hs | lgpl-2.1 | 23,373 | 0 | 20 | 6,685 | 4,789 | 2,503 | 2,286 | 297 | 3 |
-- Copyright (c) 2010 - Seweryn Dynerowicz
-- 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 agree... | sdynerow/Semirings-Library | haskell/Algebra/Triangular.hs | apache-2.0 | 1,219 | 0 | 11 | 298 | 354 | 189 | 165 | 17 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.PackageIndex
-- Copyright : (c) David Himmelstrup 2005,
-- Bjorn Bringert 2007,
-- Duncan Coutts 2008
--
-- Maintainer : cabal-devel@haskell.org
-- Portabil... | IreneKnapp/Faction | faction/Distribution/Client/PackageIndex.hs | bsd-3-clause | 16,965 | 0 | 16 | 4,282 | 3,725 | 2,005 | 1,720 | 262 | 5 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Prototype
import Lens.Micro.Platform ((.=))
import Yi.Boot (configMain, reload)
import Yi.Config
import Yi.Config.Default (defaultConfig)
import Yi.Config.Defa... | ethercrow/yi | example-configs/yi-vim-colemak-vty-dynamic/yi.hs | gpl-2.0 | 3,751 | 0 | 21 | 1,100 | 808 | 455 | 353 | 71 | 2 |
{- |
Module : $Header$
Description : Compute the composition table of a relational algebra
Copyright : (c) Till Mossakowski, Uni Bremen 2002-2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@informatik.uni-bremen.de
Stability : provisional
Portability : portable
Compute the compos... | mariefarrell/Hets | CASL/CompositionTable/ComputeTable.hs | gpl-2.0 | 4,781 | 0 | 21 | 1,524 | 1,153 | 591 | 562 | 85 | 7 |
--
-- API for plugin test
--
module API where
import Modules.Flags as Flags
data Interface = Interface {
dbFunc :: Flags.FlagRec -> Int
}
plugin :: Interface
plugin = Interface { dbFunc = (\x -> 1) }
| abuiles/turbinado-blog | tmp/dependencies/hs-plugins-1.3.1/testsuite/hier/hier1/api/API.hs | bsd-3-clause | 214 | 0 | 10 | 52 | 61 | 39 | 22 | 6 | 1 |
{-# LANGUAGE CPP #-}
-- ----------------------------------------------------------------------------
-- | Pretty print helpers for the LLVM Code generator.
--
module LlvmCodeGen.Ppr (
pprLlvmHeader, pprLlvmCmmDecl, pprLlvmData, infoSection, iTableSuf
) where
#include "HsVersions.h"
import Llvm
import Llv... | DavidAlphaFox/ghc | compiler/llvmGen/LlvmCodeGen/Ppr.hs | bsd-3-clause | 8,563 | 0 | 21 | 2,273 | 1,537 | 805 | 732 | 132 | 12 |
module Mod4 where
f1 0 l = take 42 l
f1 n l = take n l
f2 0 l = drop 0 l
f2 n l = drop n l
g = 42 | kmate/HaRe | old/testing/instantiate/Mod4.hs | bsd-3-clause | 101 | 0 | 5 | 37 | 69 | 34 | 35 | 6 | 1 |
-- A simple client that calls the methods in test_server.hs
import System.Environment (getArgs)
import System.Exit (exitFailure)
import System.IO (hPutStrLn, stderr)
import System.Time
import Network.XmlRpc.Client
time :: String -> IO CalendarTime
time url = remote url "examples.time"
add :: String -> Int -> Int ->... | laurencer/confluence-sync | vendor/haxr/examples/test_client.hs | bsd-3-clause | 1,041 | 0 | 13 | 341 | 330 | 163 | 167 | 28 | 2 |
{-
This is a generated file (generated by genprimopcode).
It is not code to actually be used. Its only purpose is to be
consumed by haddock.
-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Prim
--
-- Maintainer : ghc-devs@haskell.org
-- Stability : inte... | beni55/haste-compiler | libraries/ghc-7.10/ghc-prim/GHC/Prim.hs | bsd-3-clause | 211,576 | 0 | 13 | 46,421 | 45,644 | 24,665 | 20,979 | -1 | -1 |
module Subsequences(suffixes, prefixes, subsequences, permutations, subsequence, isPrefixOf, isSuffixOf, isSubsequenceOf, isPermutationOf, isPrefixOfBy, isSuffixOfBy, isSubsequenceOfBy, isPermutationOfBy, locateSubsequences) where
suffixes :: [a] -> [[a]]
suffixes [] = []
suffixes xxs@(_:xs) = xxs : suffixes x... | forste/haReFork | tools/base/tests/HbcLibraries/Subsequences.hs | bsd-3-clause | 1,977 | 4 | 11 | 384 | 948 | 512 | 436 | 39 | 3 |
{-# LANGUAGE TupleSections #-}
module Ros.Topic.Stats (sendMessageStat, recvMessageStat, statSnapshot,
StatMap, SubStats(..), PubStats(..)) where
import Control.Applicative ((<$>))
import Control.Concurrent.STM.TVar
import Control.Concurrent.STM
import Data.Map (Map)
import qualified Data.Map as... | bitemyapp/roshask | src/Ros/Topic/Stats.hs | bsd-3-clause | 2,590 | 0 | 18 | 1,037 | 614 | 319 | 295 | 52 | 3 |
import Control.Concurrent
import Control.Exception as E
-- <<main
main = do
lock <- newEmptyMVar
forkIO $ do r <- try (takeMVar lock); print (r :: Either SomeException ())
threadDelay 1000000
print (lock == lock)
-- >>
| prt2121/haskell-practice | parconc/deadlock2.hs | apache-2.0 | 228 | 0 | 13 | 45 | 89 | 44 | 45 | 7 | 1 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE PolyKinds #-}
module T14904a where
import Data.Kind
type family F (f :: forall a. g a) :: Type where
F (f :: forall a. g a) = Int
| sdiehl/ghc | testsuite/tests/typecheck/should_fail/T14904a.hs | bsd-3-clause | 205 | 0 | 10 | 42 | 58 | 36 | 22 | -1 | -1 |
-- !!! Test that length doesn't give a stack overflow
module Main (main) where
main :: IO ()
main = print $ length $ filter odd [0 .. 999999]
| beni55/ghcjs | test/pkg/base/list003.hs | mit | 145 | 0 | 7 | 32 | 44 | 25 | 19 | 3 | 1 |
{-# LANGUAGE UnboxedTuples #-}
-- This one killed GHC 6.4.1, because the pattern match on the
-- unboxed tuple generates a failure case, which defeated the
-- rather fragile code in the desugarer
-- See DsExpr.lhs, the HsCase case
module Main where
foo xs ys = case (# null xs, null ys #) of
(# True, Fa... | urbanslug/ghc | testsuite/tests/deSugar/should_run/dsrun013.hs | bsd-3-clause | 420 | 0 | 8 | 109 | 84 | 46 | 38 | 7 | 2 |
module FRP.Elerea.SDL (sdlLoop, Ticks) where
import Data.Word (Word32)
import System.IO.Unsafe
import Control.Concurrent (threadDelay)
import FRP.Elerea.Param
import qualified Graphics.UI.SDL as SDL
-- | SDL Ticks
type Ticks = Word32
-- | Main SDL event loop (with framerate)
--
-- Produces an "infinite" list of net... | singpolyma/elerea-sdl | FRP/Elerea/SDL.hs | isc | 2,164 | 16 | 19 | 453 | 721 | 375 | 346 | 57 | 4 |
module Category where
data Category = Uncategorized FilePath
| Image FilePath
| Music FilePath
| Text FilePath
| Video FilePath
deriving (Show) | MysterionRise/octo-shell | src/Model/Category.hs | mit | 219 | 0 | 6 | 97 | 40 | 24 | 16 | 7 | 0 |
module Y2017.M02.D27.Exercise where
import Data.Array
import Data.List (subsequences)
import Data.Ratio (numerator)
-- below imports available via 1HaskellADay git repository
import Analytics.Math.Combinatorics (choose)
import Control.List (takeout)
{--
So, I'm eyeing http://rosalind.info/problems/lcsq/ which is a ... | geophf/1HaskellADay | exercises/HAD/Y2017/M02/D27/Exercise.hs | mit | 1,918 | 0 | 8 | 345 | 117 | 74 | 43 | 10 | 1 |
{-# LANGUAGE OverloadedStrings
, MultiParamTypeClasses #-}
module Data.API.LinkedIn.CompanyLookup
( CompanyLookupQuery(..)
, CompanyFieldSelector(..)
, CompanyLookupResult(..)
, EmailDomains(..)
, CompanyType(..)
, CompanyStatus(..)
, EmployeeCountRange(..)
... | whittle/linkedin-api | Data/API/LinkedIn/CompanyLookup.hs | mit | 9,684 | 0 | 31 | 3,222 | 2,131 | 1,145 | 986 | 178 | 1 |
module Unison.Codebase.GitError where
import Unison.Prelude
import Unison.Codebase.ShortBranchHash (ShortBranchHash)
import qualified Unison.Codebase.Branch as Branch
import Unison.Codebase.Editor.RemoteRepo (ReadRepo, WriteRepo)
import U.Codebase.Sqlite.DbId (SchemaVersion)
type CodebasePath = FilePath
data GitErr... | unisonweb/platform | parser-typechecker/src/Unison/Codebase/GitError.hs | mit | 1,228 | 0 | 9 | 325 | 182 | 111 | 71 | 23 | 0 |
{-# htermination rangeSize :: Ix a => (a,a) -> Int #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_rangeSize_1.hs | mit | 55 | 0 | 2 | 11 | 3 | 2 | 1 | 1 | 0 |
module Hablog.Util
( mkTwo
, mkUTCTime
) where
import Data.Time
mkTwo :: a -> b -> (a, b)
mkTwo a b = (a, b)
mkUTCTime :: Integer -> Int -> Int -> Int -> Int -> Int -> UTCTime
mkUTCTime year month day hour minute second =
let utcDay = fromGregorian year month day
utcTime = secondsToDiffTime $ toInteger $ (h... | garrettpauls/Hablog | src/Hablog/Util.hs | mit | 389 | 0 | 14 | 90 | 163 | 87 | 76 | 11 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TypeFamilies #-}
module SoOSiM.Components.ProcessManager where
import SoOSiM
import SoOSiM.Components.ApplicationHandler
import SoOSiM.Components.DeploymentManager
import SoOSiM.Components.ResourceDiscovery
import SoOSiM.Components.Types
data ProcessManager = Pro... | christiaanb/SoOSiM | src-components/SoOSiM/Components/ProcessManager.hs | mit | 4,213 | 7 | 20 | 1,019 | 1,007 | 517 | 490 | -1 | -1 |
#!/usr/bin/env runhaskell
-- module MOO where
import Control.Concurrent hiding (readMVar)
import Control.Concurrent.STM
import Control.Monad
import System.IO
import Data.IORef
import System.Environment (getArgs)
import System.Random
import qualified Data.ByteString as B
import Network.HTTP
import Network.Browser
im... | UCSD-PL/230-web | static/lec-stm-lecture.hs | mit | 15,899 | 0 | 15 | 4,373 | 3,040 | 1,523 | 1,517 | 216 | 12 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Scaffolding.Scaffolder (scaffold) where
import Control.Arrow ((&&&))
import qualified Data.ByteString.Char8 as S
import Data.Conduit (yield, ($$), ($$+-))
import Control.Monad.Trans.Resource (runResourceT)... | wujf/yesod | yesod-bin/Scaffolding/Scaffolder.hs | mit | 3,544 | 0 | 15 | 950 | 989 | 510 | 479 | 83 | 6 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module AI.Funn.CL.MemSub (
MemSub, malloc, free, arg,
fromVector, toVector,
fromList, toList, size,
slice, concatenate, clone, copyInto
) where
import Control.Applicative
import Control.Monad
import Contr... | nshepperd/funn | AI/Funn/CL/MemSub.hs | mit | 3,228 | 0 | 13 | 856 | 1,114 | 579 | 535 | 69 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
-- Module : Network.Policy.Utils
-- Copyright : (c) 2014 Stefan Bühler
-- License : MIT-style (see the file COPYING)
--
-- Maintainer : stbuehler@web.de
-- Stability : experimental
-... | stbuehler/haskell-mail-policy | src/Network/Policy/Utils.hs | mit | 3,057 | 4 | 11 | 492 | 574 | 297 | 277 | 49 | 1 |
{-# LANGUAGE ForeignFunctionInterface #-}
import Foreign
import Foreign.C.Types
-- wrapper function for the nim compiled frac
foreign import ccall "fact"
c_fact :: CLong -> CLong
-- well Haskell uses no unsigned int
fact' :: Int -> Int
fact' = fromIntegral . c_fact . fromIntegral
-- Let's call it!
main :: IO ()
m... | oderwat/nim-haskell-ffi | fact.hs | mit | 459 | 0 | 8 | 92 | 85 | 47 | 38 | 11 | 1 |
module ReActMICL where
-- | so, to focus more on the interactive side of this, and really
-- make interactions first-class citizens, I want to focus on the
-- base components of interactions. to that end, there should be
-- actions and reactions, however the lines seem a little
-- blurry when it comes to disti... | abbottk/MICL | DSL/ReActMICL.hs | cc0-1.0 | 2,813 | 0 | 8 | 957 | 324 | 214 | 110 | 43 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Main
-- Copyright : (c) Ricardo Peña, January 2017
-- License : LGPL
--
-- Maintainer : ricardo@sip.ucm.es
-- Stability : provisional
-- Portability : portable
--
-- The CAVI-ART CLIR-to-Has... | ricardopenyamari/ir2haskell | clir-parser-haskell-master/app/Main.hs | gpl-2.0 | 20,959 | 0 | 21 | 6,546 | 7,490 | 3,788 | 3,702 | 313 | 17 |
import Graphics.Gloss
main :: IO ()
main = display (InWindow "Dibujo" (300,300) (20,20)) white circuloSolido
circuloSolido :: Picture
circuloSolido = circleSolid 100
| jaalonso/I1M-Cod-Temas | src/Tema_25/circulo_solido.hs | gpl-2.0 | 168 | 0 | 8 | 24 | 63 | 34 | 29 | 5 | 1 |
module Lab2(LetterTree(Root, Letter), getWords, deleteWords) where
import Data.List
data LetterTree = Root [LetterTree] | Letter Char Bool [LetterTree] deriving (Eq)
getWords :: LetterTree -> [String]
getLetterCounts :: LetterTree -> [(Char, Int)]
addWords :: LetterTree -> [String] -> LetterTree
deleteWords :: Lett... | yalpul/CENG242 | lab2.hs | gpl-3.0 | 4,750 | 0 | 26 | 1,406 | 2,259 | 1,137 | 1,122 | 58 | 5 |
module Data.Wot.ParserSpec where
-- import Data.Monoid ((<>))
-- import Data.ByteString.Lazy (ByteString)
-- import qualified Data.ByteString.Lazy as B
import Test.Hspec
-- import Test.QuickCheck
import Data.Wot.Parser
import Data.ByteString.Lazy (pack, ByteString)
import qualified Data.ByteString.Lazy as B
import Da... | gdetrez/haskell-wot | tests/Data/Wot/ParserSpec.hs | gpl-3.0 | 2,283 | 0 | 17 | 605 | 620 | 318 | 302 | 48 | 2 |
module Model where
import ClassyPrelude.Yesod
import Database.Persist.Quasi
import Data.Extension ()
import Model.RemoteTransferType
-- You can define all of your database entities in the entities file.
-- You can find more information on persistent and how to declare entities
-- at:
-- http://www.yesodweb.com/book/... | rumuki/rumuki-server | src/Model.hs | gpl-3.0 | 443 | 0 | 8 | 57 | 61 | 35 | 26 | -1 | -1 |
import Data.Tree
data Arbol a = Nulo | Nodo a (Arbol a) (Arbol a) deriving (Show,Eq)
hoja x = Nodo x Nulo Nulo
t2 = Nodo 17 (Nodo 12 (Nodo 5 Nulo (hoja 8)) (hoja 15))
(Nodo 115
(Nodo 32 (hoja 30) (Nodo 46 Nulo (hoja 57)))
(hoja 163))
pict t = putStr (pic... | SDKE/Programacion-Logica-y-Funcional | practica6.hs | gpl-3.0 | 3,687 | 2 | 15 | 1,137 | 1,885 | 923 | 962 | 78 | 2 |
module Main where
import Lib
import qualified Data.Map as M
import Control.Monad (void)
import Data.Maybe
import Text.Printf
import Safe (readMay)
import qualified Graphics.UI.Threepenny as UI
import Graphics.UI.Threepenny.Core
lookupFolder = "emails"
-- ===================================================... | simonced/haskell-kata | email-parser-stack/app/Main.hs | gpl-3.0 | 2,880 | 0 | 15 | 902 | 536 | 283 | 253 | 41 | 1 |
{-|
Description : Overall configuration
-}
module Language.Haskell.Formatter.Configuration
(Configuration, configurationStyle, configurationStreamName,
defaultConfiguration, check)
where
import qualified Language.Haskell.Formatter.Result as Result
import qualified Language.Haskell.Formatter.Source... | evolutics/haskell-formatter | src/library/Language/Haskell/Formatter/Configuration.hs | gpl-3.0 | 1,080 | 0 | 9 | 226 | 184 | 116 | 68 | 19 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-replicapool/gen/Network/Google/Resource/ReplicaPool/InstanceGroupManagers/AbandonInstances.hs | mpl-2.0 | 5,446 | 0 | 18 | 1,220 | 551 | 328 | 223 | 95 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.BigQuery
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla Pub... | rueshyna/gogol | gogol-bigquery/gen/Network/Google/BigQuery.hs | mpl-2.0 | 16,758 | 0 | 24 | 4,257 | 2,008 | 1,412 | 596 | 533 | 0 |
{-# LANGUAGE LambdaCase #-}
------------------------------------------------------------------------------
-- |
-- Module: Util
-- Copyright: (c) 2016 Leon P Smith
-- Maintainer: Leon P Smith <leon@melding-monads.com>
--
------------------------------------------------------------------------------
module Uti... | lpsmith/ftp-monitor | src/Util.hs | agpl-3.0 | 1,541 | 0 | 31 | 532 | 365 | 186 | 179 | 33 | 4 |
{-# language TypeFamilies #-}
class C a where
data family F a
instance C Int where
data F Int = D Int -- x
| lspitzner/brittany | data/Test222.hs | agpl-3.0 | 111 | 0 | 7 | 28 | 38 | 20 | 18 | 5 | 0 |
{-# LANGUAGE BangPatterns, RecordWildCards, TypeFamilies, TypeOperators #-}
module Vision.Image.HSV.Type (
HSV, HSVPixel (..), HSVDelayed
) where
import Control.Applicative ((<$>), (<*>))
import Data.Word
import Foreign.Storable (Storable (..))
import Foreign.Ptr (castPtr, plusPtr)
import Vision.Image.Inte... | TomMD/friday | src/Vision/Image/HSV/Type.hs | lgpl-3.0 | 2,163 | 0 | 12 | 599 | 546 | 302 | 244 | 47 | 0 |
{-
Created : 2014 Oct 19 (Sun) 21:07:15 by Harold Carr.
Last Modified : 2014 Oct 21 (Tue) 14:50:23 by Harold Carr.
http://www.haskellforall.com/2012/01/haskell-for-mainstream-programmers.html
-}
{-# LANGUAGE TupleSections #-}
module X_2012_01_03_ADTs where
{-
ADTs
Why are they called "algebraic"?
can be mod... | haroldcarr/learn-haskell-coq-ml-etc | haskell/topic/general/haskellforall/src/X_2012_01_03_ADTs.hs | unlicense | 7,770 | 0 | 13 | 2,306 | 796 | 434 | 362 | -1 | -1 |
-- |
-- Module : Statistics.Function.Comparison
-- Copyright : (c) 2011 Bryan O'Sullivan
-- License : BSD3
--
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portability : portable
--
-- Approximate floating point comparison, based on Bruce Dawson's
-- \"Comparing floating point numbers\":
-- ... | 00tau/statistics | Statistics/Function/Comparison.hs | bsd-2-clause | 1,366 | 0 | 14 | 319 | 250 | 135 | 115 | 18 | 1 |
module Data.Drasil.Quantities.Thermodynamics where
import Language.Drasil
import Language.Drasil.ShortHands (cT, cC, lQ, cQ, cE)
import Data.Drasil.Concepts.Thermodynamics as CT (boilPt, heatCapSpec,
htFlux, latentHeat, meltPt, sensHeat, temp)
import Data.Drasil.SI_Units (centigrade, joule)
import Data.Drasil.Units... | JacquesCarette/literate-scientific-software | code/drasil-data/Data/Drasil/Quantities/Thermodynamics.hs | bsd-2-clause | 800 | 0 | 9 | 136 | 246 | 147 | 99 | 15 | 1 |
{-# LANGUAGE CPP, OverloadedStrings #-}
module HTIG.Utils
( sendWelcome
, writeServerCommand
, writeServerError
, writeJoin
, userSpecToNickName
, (++.)
, getUserCacheDir
, makeUserCacheDir
, whenM
, joinTo
, isJoined
, createChannelForName
, lookupChannelFactory
... | nakamuray/htig | HTIG/Utils.hs | bsd-3-clause | 6,521 | 0 | 17 | 1,614 | 2,096 | 1,057 | 1,039 | 164 | 2 |
module Chat.Bot.Ping where
import Chat.Bot.Answer.Ping
import Chat.Data
{-
LEVEL: Example
USAGE: /ping
EXAMPLE:
> /ping
pong
-}
-- |
--
-- >>> pingBot "/ping"
-- JustReply "pong"
-- >>> pingBot "/pong"
-- NothingReply
pingBot :: String -> MaybeReply
pingBot message =
notImplemen... | charleso/haskell-in-haste | src/Chat/Bot/Ping.hs | bsd-3-clause | 358 | 0 | 7 | 86 | 54 | 34 | 20 | 6 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUA... | cdepillabout/ssh | src/SSH/Server/Types.hs | bsd-3-clause | 3,240 | 0 | 11 | 659 | 714 | 399 | 315 | 83 | 0 |
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeOperators #-}
module Control.Replay.Class where
import Control.Applicative
import GHC.Generics
-- | Capturing the notion that... | fizruk/replay-free | src/Control/Replay/Class.hs | bsd-3-clause | 1,899 | 0 | 14 | 454 | 964 | 483 | 481 | 39 | 0 |
-- | Simple backend based on the TCP transport which offers node discovery
-- based on UDP multicast. This is a zero-configuration backend designed to
-- get you going with Cloud Haskell quickly without imposing any structure
-- on your application.
--
-- To simplify getting started we provide special support for /mast... | haskell-distributed/distributed-process-simplelocalnet | src/Control/Distributed/Process/Backend/SimpleLocalnet.hs | bsd-3-clause | 14,485 | 0 | 24 | 3,247 | 2,555 | 1,404 | 1,151 | -1 | -1 |
{-# LANGUAGE FlexibleInstances, TypeOperators, DefaultSignatures, DeriveGeneric, FlexibleContexts, OverloadedStrings, RankNTypes, OverlappingInstances #-}
-- |
-- Module: Text.XML.Generic.ToXml
-- Copyright: 2013 Dmitry Olshansky
-- License: BSD3
--
-- Maintainer: olshanskydr@gmail.com
--
-- Define class FromXml to tra... | odr/xml-conduit-generic | Text/XML/Generic/FromXml.hs | bsd-3-clause | 8,841 | 3 | 25 | 2,686 | 3,129 | 1,591 | 1,538 | 163 | 5 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
module Inspection.API.Types
( Environment(..)
, AppError(..)
, Inspector
, inspectorToEither
, liftGithubM
, liftGithubMAuth
) where
import Prelude ()
import MyLittlePrelude
... | zudov/purescript-inspection | src/Inspection/API/Types.hs | bsd-3-clause | 2,913 | 0 | 11 | 612 | 787 | 431 | 356 | 81 | 1 |
{-# LANGUAGE BangPatterns, CPP, NondecreasingIndentation, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}
-- NB: we specifically ignore deprecations. GHC 7.6 marks the .QSem module as
-- deprecated, although it became un-deprecated later. As a result, using 7.6
-- as your bootstrap compiler ... | GaloisInc/halvm-ghc | compiler/main/GhcMake.hs | bsd-3-clause | 88,807 | 9 | 35 | 28,136 | 14,539 | 7,434 | 7,105 | -1 | -1 |
{-# LANGUAGE CPP #-}
module System.Relocated.Relocator (
relocate
) where
import System.Relocated.Records
import System.Relocated.Exec
import System.Relocated.Debug
import System.Relocated.Misc
import Control.Concurrent
import Control.Concurrent.BoundedChan as BoundedChan
import System.Path.Glob
import Data.Maybe
... | adarqui/Relocated | src/System/Relocated/Relocator.hs | bsd-3-clause | 1,872 | 0 | 15 | 321 | 646 | 313 | 333 | 54 | 2 |
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
-- | License: GPL-3.0-or-later AND BSD-3-Clause
--
module Cabal.Project (
-- * Project
Project (..),
... | hvr/multi-ghc-travis | cabal-install-parsers/src/Cabal/Project.hs | bsd-3-clause | 14,083 | 0 | 18 | 3,258 | 3,635 | 1,923 | 1,712 | 218 | 6 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
The @TyCon@ datatype
-}
{-# LANGUAGE CPP, DeriveDataTypeable #-}
module TyCon(
-- * Main TyCon data types
TyCon,
AlgTyConRhs(..), visibleDataCons,
AlgTyConFlav(..), isNoParent,
Fa... | GaloisInc/halvm-ghc | compiler/types/TyCon.hs | bsd-3-clause | 89,597 | 1 | 16 | 26,537 | 10,351 | 5,909 | 4,442 | 919 | 7 |
import HongTest (specs)
import Test.Hspec
main :: IO ()
main = hspecX $ descriptions [specs]
| Tarrasch/Hong | test.hs | bsd-3-clause | 94 | 0 | 7 | 16 | 39 | 21 | 18 | 4 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS -fno-warn-orphans #-}
module Message (
Datum
, Message(..)
) where
import Control.Applicative
import Control.Monad (liftM2)
import Data.Aeson
import qualified Data.HashMap.Strict as HashMap
import Data.Serialize
import Data.Word
import Constants
data Datum = Datu... | djoyner/hap-probe-collector | src/collector/Message.hs | bsd-3-clause | 2,398 | 0 | 11 | 652 | 569 | 299 | 270 | 64 | 2 |
{- We define a permutation as an operation that rearranges the order of the elements {1, 2, 3, ..., n}. There are n! such permutations, one of which leaves the elements in their initial order. For n = 3 we have 3! = 6 permutations:
- P1 = keep the initial order
- P2 = exchange the 1st and 2nd elements
- P3 = exchange t... | bgwines/project-euler | src/in progress/problem483.hs | bsd-3-clause | 3,055 | 10 | 12 | 537 | 552 | 311 | 241 | 52 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.SGIX.ListPriority
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
-... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/SGIX/ListPriority.hs | bsd-3-clause | 872 | 0 | 4 | 103 | 64 | 50 | 14 | 10 | 0 |
{-# OPTIONS_GHC -Wall #-}
module Euler.E020 ( e020 ) where
e020 :: Integer
e020 = sum $ map (\x -> read [x] :: Integer) $ show (fact 100)
fact :: Integer -> Integer
fact 1 = 1
fact n = n * fact (n - 1)
| ghorn/euler | Euler/E020.hs | bsd-3-clause | 205 | 0 | 11 | 49 | 98 | 53 | 45 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-|
Module : Timeout
Description : Make sure that recovery actually uses a ti... | linearray/mealstrom | test/Timeout.hs | mit | 2,436 | 0 | 14 | 463 | 592 | 309 | 283 | 52 | 2 |
--
--
--
----------------
-- Exercise 4.5.
----------------
--
--
--
module E'4''5 where
import PicturesSVG -- From Craft3e-0.1.0.10 package, see:
-- http://www.haskellcraft.com/craft3e/Start.html
(
Picture
, above
, flipV
, invertColour
, beside
, render
, horse
)
fourPics :: P... | pascal-knodel/haskell-craft | _/links/E'4''5.hs | mit | 918 | 0 | 11 | 257 | 188 | 118 | 70 | 22 | 1 |
-- | The vital tools.
module Csound.Air (
-- | The basic sound waves: pure sine, sawtooth, square, triangle, LFOs.
module Csound.Air.Wave,
-- | Envelope generators.
module Csound.Air.Envelope,
-- | Filters
module Csound.Air.Filter,
-- | Sound file playback
module Csound.... | isomorphism/csound-expression | src/Csound/Air.hs | bsd-3-clause | 1,264 | 0 | 5 | 278 | 191 | 136 | 55 | 27 | 0 |
{-# LANGUAGE RecordWildCards, ViewPatterns #-}
module Development.Bake.StepGit(
ovenStepGit
) where
import Development.Bake.Core.Type
import Development.Bake.Git
import Development.Shake.Command
import Development.Shake.FilePath
import Control.Exception.Extra
import Control.Monad.Extra
import System.Directory... | capital-match/bake | src/Development/Bake/StepGit.hs | bsd-3-clause | 5,668 | 0 | 31 | 1,989 | 1,351 | 668 | 683 | 90 | 3 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
HsImpExp: Abstract syntax: imports, exports, interfaces
-}
{-# LANGUAGE DeriveDataTypeable #-}
module HsImpExp where
import Module ( ModuleName )
import HsDoc ( HsDocString )
import OccName ... | vikraman/ghc | compiler/hsSyn/HsImpExp.hs | bsd-3-clause | 9,379 | 0 | 19 | 3,158 | 1,689 | 916 | 773 | 115 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Stack.Solver
( checkResolverSpec
, cabalPackagesCheck
, findCabalFiles
, getResolverConstraints
, mergeConstraints
, solveExtraDeps
... | harendra-kumar/stack | src/Stack/Solver.hs | bsd-3-clause | 31,016 | 0 | 26 | 9,764 | 6,591 | 3,348 | 3,243 | 535 | 9 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
{-# OPTIONS_GHC -fno-warn-overlapping-patterns #-}
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
-- The above war... | sdiehl/ghc | utils/genapply/Main.hs | bsd-3-clause | 36,394 | 0 | 29 | 11,728 | 7,634 | 4,101 | 3,533 | 668 | 11 |
{-# LANGUAGE TemplateHaskell #-}
module TemplateTestImports where
import Data.Aeson.TH
import Test.QuickCheck
import Database.Persist.TH
data Foo = Bar | Baz
deriving (Show, Eq)
deriveJSON defaultOptions ''Foo
derivePersistFieldJSON "Foo"
instance Arbitrary Foo where
arbitrary = elements [Bar, Baz]
| naushadh/persistent | persistent-template/test/TemplateTestImports.hs | mit | 314 | 0 | 7 | 50 | 81 | 45 | 36 | 11 | 0 |
{-# LANGUAGE CPP #-}
-- -----------------------------------------------------------------------------
-- | GHC LLVM Mangler
--
-- This script processes the assembly produced by LLVM, rearranging the code
-- so that an info table appears before its corresponding function.
--
module LlvmMangler ( llvmFixupAsm ) where
... | forked-upstream-packages-for-ghcjs/ghc | compiler/llvmGen/LlvmMangler.hs | bsd-3-clause | 6,150 | 0 | 18 | 1,564 | 1,561 | 817 | 744 | 94 | 2 |
{-# LANGUAGE CPP, QuasiQuotes, TupleSections, OverloadedStrings, LambdaCase, MultiWayIf, TemplateHaskell, ViewPatterns, BangPatterns #-}
{-
Main generator module
-}
module Gen2.Generator (generate) where
import Fingerprint
import ForeignCall
import CostCentre
import FastStri... | beni55/ghcjs | src/Gen2/Generator.hs | mit | 80,801 | 243 | 25 | 24,494 | 26,206 | 13,364 | 12,842 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Type subsumption and unification
-}
{-# LANGUAGE CPP #-}
module TcUnify (
-- Full-blown subsumption
tcWrapResult, tcGen,
tcSubType, tcSubType_NC, tcSubTypeDS, tcSubTypeDS_NC,
checkConstraints,
-- Various unifi... | urbanslug/ghc | compiler/typecheck/TcUnify.hs | bsd-3-clause | 52,694 | 124 | 28 | 15,200 | 7,744 | 4,055 | 3,689 | -1 | -1 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Bifoldable
-- Copyright : (C) 2011-2016 Edward Kmett
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : libraries@haskell.org
-- S... | ezyang/ghc | libraries/base/Data/Bifoldable.hs | bsd-3-clause | 13,356 | 0 | 14 | 3,216 | 3,551 | 1,945 | 1,606 | 168 | 2 |
{-# LANGUAGE CPP #-}
-- This module deliberately defines orphan instances for now (Binary Version).
{-# OPTIONS_GHC -fno-warn-orphans -fno-warn-name-shadowing #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.PackageDb
-- Copyright : (c) The University of Gl... | urbanslug/ghc | libraries/bin-package-db/GHC/PackageDb.hs | bsd-3-clause | 15,157 | 0 | 16 | 4,110 | 2,760 | 1,471 | 1,289 | 284 | 4 |
{-# LANGUAGE PatternSynonyms #-}
module Main where
pattern ReqNoProv :: Show a => a -> Maybe a
pattern ReqNoProv{j} = Just j
data A = A deriving Show
p1 = Just True
p6 = p1 {j = A}
main = print p6
| olsner/ghc | testsuite/tests/patsyn/should_fail/records-poly-update.hs | bsd-3-clause | 202 | 0 | 8 | 47 | 82 | 44 | 38 | 8 | 1 |
import Data.Word
fib :: Word -> Word
fib 0 = 1
fib 1 = 1
fib n = l + r
where l = fib (n-2); r = fib (n-1)
main = print (fib 20)
| forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/ghci/should_run/T2881.hs | bsd-3-clause | 132 | 3 | 7 | 39 | 105 | 48 | 57 | 7 | 1 |
module PlayerManipulation(
createPlayerQueue,
giveCardsToPlayers,
calculatePlayerPos,
calculatePosList,
getCardFromPlayer
) where
import Cards
import CardManipulation
import Players
import DataModels
createPlayerQueue :: Player -> Queue Player
createPlayerQueue player = createQueue [player]
-- Function che... | MFire30/haskellPresidentCardgame | app/src/PlayerManipulation.hs | mit | 2,439 | 0 | 12 | 443 | 590 | 302 | 288 | 55 | 1 |
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE DeriveGeneric, ScopedTypeVariables #-}
module SimulateT6 where
import LI11718
import OracleT4
import OracleT3
import OracleT2
import System.Environment
import System.Timeout
import Test.QuickCheck.Gen
import Data.List
import Data.Maybe
import Safe
import Data.Char
import G... | hpacheco/HAAP | examples/plab/oracle/SimulateT6.hs | mit | 12,148 | 0 | 18 | 3,114 | 5,035 | 2,639 | 2,396 | 256 | 3 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
module Bot.Component (
Bot
, BotState (..)
, Component (..)
, ComponentPart
, HelpMessage (..)
, BotMonad (..)
, liftIO
, mkComponent
, mkComponentT
, withHelp... | numberten/zhenya_bot | Bot/Component.hs | mit | 3,628 | 0 | 11 | 853 | 657 | 379 | 278 | 59 | 1 |
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
-- | TODO
module Web.TSBot.ClientQuery.Parse (responseP) where
import Control.Applicative ((*>), (<*), (<*>), (<|>))
import Control.Monad (MonadPlus (..))
... | taktoa/TSBot | library/Web/TSBot/ClientQuery/Parse.hs | mit | 1,848 | 0 | 11 | 614 | 562 | 313 | 249 | 46 | 1 |
--A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
--Find the largest palindrome made from the product of two 3-digit numbers.
import Data.Map (fromListWith, toList)
is_div x y = x `mod` y == 0
evenly_divisible_by n m = and [... | stefan-j/ProjectEuler | q5.hs | mit | 1,245 | 15 | 15 | 321 | 539 | 276 | 263 | 26 | 2 |
module GetOpt.Declarative.Interpret (
ParseResult(..)
, parseCommandLineOptions
, parse
, interpretOptions
) where
import Prelude ()
import Test.Hspec.Core.Compat
import Data.Maybe
import System.Console.GetOpt (OptDescr, ArgOrder(..), getOpt)
import qualified System.Console.G... | hspec/hspec | hspec-core/src/GetOpt/Declarative/Interpret.hs | mit | 3,996 | 0 | 16 | 799 | 1,459 | 761 | 698 | 67 | 6 |
module CFDI.Types.Partiality where
import CFDI.Chainable
import CFDI.Types.Type
import Data.Text (pack)
import Text.Regex (mkRegex)
import Text.Regex.Posix (matchTest)
newtype Partiality = Partiality Int deriving (Eq, Show)
instance Chainable Partiality where
chain (Partiality p) = pack $ show p
inst... | yusent/cfdis | src/CFDI/Types/Partiality.hs | mit | 569 | 0 | 9 | 113 | 178 | 93 | 85 | 15 | 0 |
{-# LANGUAGE DeriveGeneric #-}
module Network.CryptoNote.Transaction where
import Network.CryptoNote.Identifiable
import Network.CryptoNote.Crypto.Types (Signature)
import Network.CryptoNote.Transaction.Input (TransactionInput)
import Network.CryptoNote.Transaction.Output (TransactionOutput)
import Network.CryptoNote... | nvmd/hs-cryptonote | src/Network/CryptoNote/Transaction.hs | mit | 1,393 | 0 | 10 | 246 | 326 | 197 | 129 | 37 | 0 |
module Network.Hubbub.Internal.Test (internalSuite) where
import Network.Hubbub.Internal
( doDistributionEvent
, doSubscriptionEvent
, doPublicationEvent )
import Network.Hubbub.SubscriptionDb
( Callback
, Secret(Secret)
, Subscription(Subscription)
, SubscriptionDbApi
, Topic
, addSubscription
,... | benkolera/haskell-hubbub | test/Network/Hubbub/Internal/Test.hs | mit | 8,281 | 0 | 14 | 1,525 | 1,878 | 999 | 879 | 193 | 1 |
{-# LANGUAGE OverloadedStrings, DeriveGeneric #-}
module Types where
import Data.Aeson (FromJSON, ToJSON)
import Data.Text (Text)
import GHC.Generics (Generic)
type Hash = Int
type ID = String
type SourcePos = (Int, Int)
type SourceRange = (SourcePos, ... | evansb/sacred | sacred/Types.hs | mit | 1,521 | 0 | 9 | 393 | 430 | 240 | 190 | 50 | 0 |
-- Copyright 2015 Mitchell Kember. Subject to the MIT License.
-- Project Euler: Problem 31
-- Coin sums
module Problem31 where
changes :: [Int] -> Int -> Int
changes [] 0 = 1
changes [] _ = 0
changes denoms@(d:ds) x
| x >= d = changes denoms (x - d) + changes ds x
| otherwise = changes ds x
solve :: Int
sol... | mk12/euler | haskell/Problem31.hs | mit | 369 | 0 | 9 | 87 | 151 | 82 | 69 | 9 | 1 |
module Options
( Options(..)
, run
, run'
) where
import Control.Monad
import Data.Semigroup ((<>))
import Options.Applicative
import qualified Data.Text as T
import GPL
-- |HASCAR runtime options
data Options = Options
{ -- | Filename of the SAPCAR archive
oFilename :: !FilePa... | VirtualForgeGmbH/hascar | app/Options.hs | gpl-2.0 | 2,233 | 0 | 17 | 742 | 510 | 262 | 248 | 74 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE RecordWildCards, OverloadedStrings, RankNTypes #-}
module Buildsome.Slave
( Slave, newWithUnmask
, target
, str
, wait, waitCatch
, cancel
) where
import Prelude.Compat hiding (show, FilePath)
import qualified Buildsome.Color as Color
... | sinelaw/buildsome | src/Buildsome/Slave.hs | gpl-2.0 | 2,485 | 0 | 14 | 547 | 496 | 283 | 213 | 44 | 1 |
module Behaviour(Animation, Combine, getFrame, time,
translateTime, lift0, lift1, lift2) where
import Data.Functor
newtype Animation a = Animation{animation :: Time -> a}
type Time = Float
getFrame :: Animation a -> Time -> a
getFrame (Animation f) t = f(t)
time :: Animation Time
time = Animation(\t -> t)
tran... | abdulrahman86/haskellsoe | src/Behaviour.hs | gpl-2.0 | 1,275 | 0 | 11 | 239 | 553 | 295 | 258 | 35 | 1 |
module Sivi.Operation.ProbingSpec (
spec
) where
import Test.Hspec
import Linear
import Sivi
import Sivi.IR
spec :: SpecWith ()
spec =
describe "Probing operations" $ do
let margin = 5
let td = 3 -- tool diameter
let pbr = 10 -- probe rate
... | iemxblog/sivi-haskell | tests/Sivi/Operation/ProbingSpec.hs | gpl-2.0 | 2,404 | 6 | 16 | 1,303 | 678 | 358 | 320 | 37 | 1 |
module Network.OAuth2.Types
where
import Network.OAuth2.Token
import Network.OAuth2.CSRFToken
import Network.HTTP.Conduit
import Control.Monad.Except
import Control.Monad.State
data OAuth2WebServerFlow = OAuth2WebServerFlow
{ token :: !CSRFToken,
clientSecret :: !String,
scope :: ![String],
re... | limaner2002/OAuth2 | src/Network/OAuth2/Types.hs | gpl-3.0 | 723 | 0 | 10 | 171 | 171 | 103 | 68 | 43 | 0 |
module Main
(
main
) where
import Data.List
import FRP.Chimera
import FRP.Yampa
import Init
import Model
import Sir
dt :: DTime
dt = 0.01
t :: DTime
t = 150
main :: IO ()
main = writeSirDynamicsFile fileName dt 0 dynamics
where
sdDefs = createSysDynSIR
sdObs = runSD sdDefs dt t
... | thalerjonathan/phd | coding/libraries/chimera/examples/SD/SDSir/Main.hs | gpl-3.0 | 1,347 | 0 | 13 | 332 | 314 | 181 | 133 | 27 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DeriveDataTypeable #-}
-- | Unsupervized construction of RNA family models
-- For more information on RNA family models consult <http://>
-- Usage example: RNAlien -i /path/input.fa -c 5 -o /outdir/
-- Usage example offline mode: RNAlien -i /path/input.fa -b /backup/... | eggzilla/RNAlien | Biobase/RNAlien.hs | gpl-3.0 | 13,339 | 39 | 17 | 2,507 | 2,342 | 1,193 | 1,149 | 177 | 6 |
module Control.Monad.LLVM
( L.File (..)
, runL
, context
, moduleFromAst
, moduleFromLLVMAssembly
, hostTargetMachine
, getTargetMachineDataLayout
, getTargetLibraryInfo
, getDefaultTargetTriple
, linkModules
, runPasses
, writeTargetAssemblyToFile
, writeLLVMAssemblyToFile
)
where
import ... | HMPerson1/soiie | app/Control/Monad/LLVM.hs | gpl-3.0 | 2,606 | 0 | 11 | 510 | 874 | 465 | 409 | 53 | 1 |
module Puzzle where
import qualified Data.Set as Set
import qualified Data.Map as Map
data Mark = None | One | Two | Three | Four | Five | Six | Seven | Eight | Nine
deriving Eq
instance Show Mark where
show None = " "
show One = "1"
show Two = "2"
show Three = "3"
show Four = "4"... | m0baxter/sudoku-solver | hsklVersion/src/Puzzle.hs | gpl-3.0 | 639 | 1 | 10 | 188 | 248 | 138 | 110 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/TargetHTTPSProxies/SetURLMap.hs | mpl-2.0 | 4,233 | 0 | 16 | 953 | 468 | 279 | 189 | 80 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-cloudiot/gen/Network/Google/Resource/CloudIOT/Projects/Locations/Registries/GetIAMPolicy.hs | mpl-2.0 | 6,230 | 0 | 16 | 1,352 | 784 | 459 | 325 | 124 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.