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(main) where
import Paths_js_jquery
import qualified Language.Javascript.JQuery as JQuery
import Data.Version
import Network.HTTP
main :: IO ()
main = do
length (versionBranch JQuery.version) === 3
show JQuery.version === show version{versionBranch = take 3 $ versionBranch version}
a <- wget ... | ndmitchell/js-jquery | src/Test.hs | mit | 791 | 0 | 16 | 220 | 317 | 153 | 164 | 22 | 2 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.SVGFEComponentTransferElement (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.SVGFEComponentTransferElement
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBK... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/SVGFEComponentTransferElement.hs | mit | 400 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
{-
-
- Copyright (c) 2009-2010 Johnny Morrice
-
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use, copy,
- modif... | ozataman/shpider | Network/Shpider/Options.hs | mit | 4,758 | 0 | 15 | 1,466 | 669 | 347 | 322 | 73 | 4 |
{-# LANGUAGE Safe #-}
module Text.Show.Html
( HtmlOpts(..), defaultHtmlOpts
, valToHtml, valToHtmlPage, htmlPage
, Html(..)
) where
import Text.Show.Value
import Prelude hiding (span)
-- | Make an Html page representing the given value.
valToHtmlPage :: HtmlOpts -> Value -> String
valToHtmlPage opts = htmlPag... | yav/pretty-show | Text/Show/Html.hs | mit | 6,977 | 0 | 19 | 2,461 | 2,645 | 1,321 | 1,324 | 155 | 33 |
{-# LANGUAGE OverloadedStrings #-}
module Y2021.M02.D26.Exercise where
{--
Okay, we've uploaded metaphones to the graph-store. Now, today, let's match
metaphones from the cleaned-wikidata-set (remember cleaning the wikidata set?)
to the metaphones in the graph store.
How many 'good' matches do we have? How many matc... | geophf/1HaskellADay | exercises/HAD/Y2021/M02/D26/Exercise.hs | mit | 1,806 | 1 | 8 | 322 | 254 | 154 | 100 | -1 | -1 |
module Model where
import Prelude
import Yesod
import Data.Text (Text)
import Data.Time (UTCTime)
import Database.Persist.Quasi
import Data.Typeable (Typeable)
import SharedTypes (BrowserFeaturesList)
-- You can define all of your database entities in the entities file.
-- You can find more information on persisten... | mostalive/yesod-splittest | Model.hs | mit | 516 | 0 | 8 | 67 | 87 | 51 | 36 | -1 | -1 |
-- source: https://github.com/begriffs/haskell-postgres-examples/blob/master/postgresql-simple/two-and-two.hs
{-# LANGUAGE OverloadedStrings #-}
module Basics where
import Database.PostgreSQL.Simple
connection :: IO (Connection)
connection = connectPostgreSQL "postgresql://natxo@localhost/helloworld"
main :: IO ()
m... | keoko/postgresql-simple-examples | Basics.hs | mit | 539 | 0 | 11 | 86 | 139 | 71 | 68 | 12 | 1 |
import Control.Category
import Prelude hiding ((.), id)
newtype Op a b = Op (b -> a)
instance Category Op where
id = Op id
(Op f) . (Op g) = Op (g . f)
| riwsky/wiwinwlh | src/dual.hs | mit | 158 | 0 | 7 | 40 | 86 | 48 | 38 | 6 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-nodeproperties.html
module Stratosphere.ResourceProperties.BatchJobDefinitionNodeProperti... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/BatchJobDefinitionNodeProperties.hs | mit | 3,129 | 0 | 13 | 274 | 359 | 207 | 152 | 36 | 1 |
-- failed
-- merge [] ys = ys
-- merge xs [] = xs
-- merge (x : xs) (y : ys)
-- = if x <= y then x : merge xs ys else y : merge xs ys
-- failed
-- merge xs [] = xs
-- merge (x : xs) (y : ys)
-- merge [] ys = ys
-- = if x <= y then y : merge xs (y : ys) else x : merge (x : xs) ys
-- failed
-- merge [] ys = ys
-- mer... | AlexMckey/FP101x-ItFP_Haskell | Sources/merge.hs | cc0-1.0 | 567 | 1 | 9 | 174 | 112 | 64 | 48 | 4 | 2 |
-- correct
--ad [] = True
--ad (b : bs) = b && ad bs
-- correct
--ad [] = True
--ad (b : bs)
-- | b = ad bs
-- | otherwise = False
-- failed
--ad [] = False
--ad (b : bs) = b && ad bs
-- failed
--ad [] = False
--ad (b : bs) = b || and bs
-- correct
--ad [] = True
--ad (b : bs)
-- | b == False = False
-- | otherwise... | AlexMckey/FP101x-ItFP_Haskell | Sources/and.hs | cc0-1.0 | 501 | 1 | 7 | 146 | 68 | 46 | 22 | 4 | 1 |
module GUI.Utils where
import Control.Monad
import Data.Maybe ( catMaybes, fromJust )
import Graphics.UI.Gtk
import GUI.Data
import IO.Utils
import Files.Manager ( obtainContents, isHidden)
import Files.Data
import System.Directory
-- |Return list of selected items in TreeView model
getSelectedItems :: MyGui ->
... | DronovIlya/filemanager-hs | src/GUI/Utils.hs | gpl-2.0 | 1,994 | 0 | 11 | 543 | 479 | 240 | 239 | 49 | 1 |
import Test.Tasty
import TestConnectFour
import TestAI
main = defaultMain tests
-- | Entire test suite
tests :: TestTree
tests = testGroup "Tests" $ concat [
connectFourTests
, aiTests
]
| RyanBeatty/Falcon | test/test.hs | gpl-2.0 | 199 | 4 | 7 | 41 | 51 | 28 | 23 | 8 | 1 |
-- Handles all ABS related functions.
{-
Copyright 2012, 2013, 2014
Colin Woodbury <colingw@gmail.com>
Nicholas Clarke <nicholas.clarke@sanger.ac.uk>
This file is part of Aura.
Aura is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free ... | vigoos/Farrago-OS | aura-master/aura-master/src/Aura/Packages/ABS.hs | gpl-2.0 | 6,261 | 0 | 18 | 1,647 | 1,549 | 829 | 720 | 127 | 2 |
{-# LANGUAGE NoImplicitPrelude, FlexibleContexts, RecordWildCards, OverloadedStrings, TypeFamilies #-}
module Lamdu.GUI.ExpressionEdit.HoleEdit.SearchArea
( makeStdWrapped
) where
import Prelude.Compat
import Control.Applicative ((<|>))
import Control.Lens (Lens')
import qualifie... | rvion/lamdu | Lamdu/GUI/ExpressionEdit/HoleEdit/SearchArea.hs | gpl-3.0 | 21,806 | 347 | 26 | 6,057 | 4,581 | 2,575 | 2,006 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings, RecordWildCards #-}
module Lamdu.GUI.ExpressionEdit.HoleEdit.EventMap
( blockDownEvents, disallowChars
, makeOpenEventMaps
) where
import Prelude.Compat
import qualified Control.Lens as Lens
import Control.Lens.Operators
import ... | rvion/lamdu | Lamdu/GUI/ExpressionEdit/HoleEdit/EventMap.hs | gpl-3.0 | 6,959 | 0 | 14 | 1,716 | 1,661 | 900 | 761 | -1 | -1 |
module Filter.TreeDeduction (makeTreeDeduction) where
import Text.Pandoc
import Filter.Util (splitIt, intoChunks,formatChunk, unlines', exerciseWrapper)
import Data.Map (fromList, toList, unions)
import Prelude
makeTreeDeduction :: Block -> Block
makeTreeDeduction cb@(CodeBlock (_,classes,extra) contents)
| "Tree... | gleachkr/Carnap | Carnap-Server/Filter/TreeDeduction.hs | gpl-3.0 | 2,326 | 0 | 16 | 740 | 873 | 471 | 402 | 40 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module LanguageDef.Data.SyntFormIndex where
import Utils.All
import LanguageDef.Utils.LocationInfo
import Data.List as L
type SyntForm = FQName
data SyntFormIndex = SyntFormIndex
{ _syntIndForm :: SyntForm
, _syntIndChoice :: Int -- To what choice does it correspond?
, _sy... | pietervdvn/ALGT2 | src/LanguageDef/Data/SyntFormIndex.hs | gpl-3.0 | 1,779 | 49 | 15 | 303 | 585 | 312 | 273 | 36 | 1 |
{- |
Module : Postmaster.FSM.MailID
Copyright : (c) 2004-2008 by Peter Simons
License : GPL2
Maintainer : simons@cryp.to
Stability : provisional
Portability : Haskell 2-pre
-}
module Postmaster.FSM.MailID where
import Postmaster.Base
import Text.ParserCombinators.Parsec.Rfc2821... | richardfontana/postmaster | Postmaster/FSM/MailID.hs | gpl-3.0 | 825 | 0 | 13 | 198 | 165 | 91 | 74 | 15 | 3 |
#!/usr/bin/env stack
{- stack runghc --verbosity info
--package hledger-lib
--package hledger
--package here
--package text
-}
{-# OPTIONS_GHC -Wno-missing-signatures -Wno-name-shadowing #-}
{-# LANGUAGE QuasiQuotes #-}
import Hledger
import Hledger.Cli
import Text.Printf (printf)
-- import System.Environ... | mstksg/hledger | bin/hledger-check-dupes.hs | gpl-3.0 | 1,872 | 0 | 13 | 336 | 451 | 250 | 201 | 34 | 1 |
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable, RecordWildCards, ViewPatterns #-}
-- | Translation from the Functional FO to PolyFOL,
-- the only thing that needs to be done is getting rid of case,
-- and translating some types.
module Lang.ToPolyFOL where
import Data.Foldable (Foldable)
import Data.Tra... | danr/tfp1 | Lang/ToPolyFOL.hs | gpl-3.0 | 7,705 | 0 | 26 | 2,544 | 3,110 | 1,590 | 1,520 | 167 | 7 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module FaceIx where
import Test.QuickCheck
import System.Random
import Control.Applicative
newtype FaceIx = FI Int
deriving(Num,Enum,Show,Eq,Ord,Arbitrary,Random)
runFI :: FaceIx -> Int
runFI (FI i) = i
genFaceIx n = FI <$> choose (0,n)
| DanielSchuessler/hstri | FaceIx.hs | gpl-3.0 | 289 | 0 | 7 | 44 | 103 | 57 | 46 | 10 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.KnowledgeGraphSearch
-- Copyright : (c) 2015-2016 Brendan Hay
-- License :... | brendanhay/gogol | gogol-kgsearch/gen/Network/Google/KnowledgeGraphSearch.hs | mpl-2.0 | 1,439 | 0 | 5 | 268 | 100 | 78 | 22 | 20 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-servicenetworking/gen/Network/Google/Resource/ServiceNetworking/Services/Validate.hs | mpl-2.0 | 5,712 | 0 | 16 | 1,274 | 789 | 464 | 325 | 113 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-cognito-sync/gen/Network/AWS/CognitoSync/ListRecords.hs | mpl-2.0 | 10,004 | 0 | 27 | 2,445 | 1,493 | 881 | 612 | 153 | 1 |
-- file: ch07/tempfile.hs
import System.IO
import System.Directory (getTemporaryDirectory, removeFile)
--import System.IO.Error (catch)
import Control.Exception (catch, finally, IOException)
-- The main entry point. Work with a temp file in myAction.
main :: IO ()
main = withTempFile "mytemp.txt" myAction
... | caiorss/Functional-Programming | haskell/rwh/ch07/tempfile.hs | unlicense | 4,092 | 0 | 12 | 1,111 | 422 | 216 | 206 | 37 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RecordWildCards #-}
module Network.Haskoin.Block.Headers where
import Control.DeepSeq (NFData, rnf)
import Control.Monad (unless, when)
import Control.Monad.Except (Except... | plaprade/haskoin | haskoin-core/src/Network/Haskoin/Block/Headers.hs | unlicense | 18,172 | 0 | 21 | 5,992 | 4,952 | 2,476 | 2,476 | 424 | 4 |
--Final Project ALP.
--Student: Marcos Pividori
-- | Here I show 4 clear examples. These are programs written with the EDSL.
import Principal
import Server
-- The following program, every so often will get the position of the associated mobile device and the rest of the recorded mobile devices.
-- If it is close to ... | MarcosPividori/Yesod-server-for-GCM | Programs_EDSL.hs | apache-2.0 | 4,133 | 35 | 26 | 1,624 | 924 | 474 | 450 | 90 | 5 |
import qualified Data.Map as Map
| EricYT/Haskell | src/chapter-7-8.hs | apache-2.0 | 36 | 0 | 4 | 8 | 9 | 6 | 3 | 1 | 0 |
{-# LANGUAGE OverloadedStrings,TemplateHaskell,TypeSynonymInstances,FlexibleInstances,DeriveGeneric #-}
module LLVM.Slicing.Static.SDG.SDGType (
-- * Types
SDGEdge(..),
SDGNode(..), SDGNode2(..),
SDGGraphType, SDGGraphType2(..),
-- * Constructor
getUID,
convertNode, convertNode2,
insEdges2,
-- * Visu... | zhangyz/llvm-slicing | src/LLVM/Slicing/Static/SDG/SDGType.hs | apache-2.0 | 9,438 | 0 | 17 | 2,528 | 3,091 | 1,586 | 1,505 | 205 | 23 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QPolygon.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:31
Warning : this file is machine generated - do not ... | keera-studios/hsQt | Qtc/Core/QPolygon.hs | bsd-2-clause | 10,402 | 0 | 16 | 1,799 | 3,541 | 1,822 | 1,719 | -1 | -1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
... | dalaing/type-systems | src/Fragment/Variant/Ast/Type.hs | bsd-3-clause | 3,012 | 0 | 17 | 660 | 1,056 | 559 | 497 | 74 | 0 |
{-# LANGUAGE MonadComprehensions #-}
{-# LANGUAGE OverloadedStrings #-}
module Domain
where
import Control.Lens (element, (&), (.~))
import qualified Data.List as List
import qualified Data.Map as Map
import Data.Maybe
import qualified Data.Ord ... | vipo/TicTacToe | src/Domain.hs | bsd-3-clause | 8,388 | 0 | 17 | 2,427 | 3,673 | 1,954 | 1,719 | 202 | 9 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.NV.RegisterCombiners
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portabl... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners.hs | bsd-3-clause | 2,395 | 0 | 4 | 289 | 250 | 174 | 76 | 72 | 0 |
{-|
Module : Numeric.ER.Real.Arithmetic.Taylor
Description : implementation of Taylor series
Copyright : (c) Amin Farjudian, Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portable
Taylor series related functi... | michalkonecny/polypaver | src/Numeric/ER/Real/Arithmetic/Taylor.hs | bsd-3-clause | 6,276 | 0 | 17 | 2,181 | 1,134 | 621 | 513 | 95 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module MyMonad ( MyMonad
, runMyMonad
, indentMessages
, debug
, info
, trace
, warning
, finally
, throwError
, catchError
, ... | Paczesiowa/virthualenv | src/MyMonad.hs | bsd-3-clause | 2,663 | 0 | 14 | 740 | 885 | 464 | 421 | 70 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Diffbot
(
-- * Examples
-- $examples
-- * Perform a request
diffbot
-- * API
-- ** Article
, Article(..)
, defArticle
-- ** Front Page
, FrontPage(..)
, defFrontPage
-- ** Image
, Imag... | tymmym/diffbot | src/Diffbot.hs | bsd-3-clause | 3,518 | 0 | 11 | 849 | 317 | 226 | 91 | 40 | 1 |
-- | Functions to load bitmap data from various places.
module Graphics.Gloss.Data.Bitmap
( BitmapData
, bitmapOfForeignPtr
, bitmapOfByteString
, bitmapOfBMP
, loadBMP)
where
import Graphics.Gloss.Rendering
| ardumont/snake | deps/gloss/Graphics/Gloss/Data/Bitmap.hs | bsd-3-clause | 250 | 0 | 4 | 66 | 32 | 22 | 10 | 7 | 0 |
--
-- Copyright (c) 2009-2011, ERICSSON AB
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list... | rCEx/feldspar-lang-small | src/Feldspar/Core/Frontend/Trace.hs | bsd-3-clause | 2,143 | 0 | 8 | 373 | 121 | 82 | 39 | 8 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Text
import Network.Colchis
import Network.Colchis.Protocol.JSONRPC20(jsonRPC20)
import Network.Colchis.Transport.TCP (runTcp,tcp)
import Control.Monad.IO.Class
import Control.Monad.Trans
import Control.Monad.Trans.Reader
import Control.Concurrent(th... | danidiaz/colchis | examples/Main.hs | bsd-3-clause | 1,453 | 0 | 14 | 365 | 439 | 222 | 217 | 38 | 3 |
module Prime
( isPrimeNaive
, isPrimeNaiveGeneral
, getPrimesUpto
, isPrimeMillerRabin
) where
import Control.Monad
import Data.Array.ST
import Data.Array.Unboxed
import Data.Int
import Data.WideWord
import Modular
import System.Random
isPrimeNaive :: Int -> Bool
isPrimeNaive = isPrimeNaiveGenera... | adityagupta1089/Project-Euler-Haskell | src/util/Prime.hs | bsd-3-clause | 1,982 | 0 | 20 | 673 | 845 | 438 | 407 | 60 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.OrgMode.Parse.Attoparsec.Document
-- Copyright : © 2014 Parnell Springmeyer
-- License : All Rights Reserved
-- Maintainer : Parnell Springmeyer <parnell@digitalmentat.com>
-- Stability : stable
--
-- ... | digitalmentat/orgmode-parse | src/Data/OrgMode/Parse/Attoparsec/Document.hs | bsd-3-clause | 1,815 | 0 | 10 | 364 | 205 | 136 | 69 | 19 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
module Evaluator where
import LispTypes
import Control.Monad.Except
import System.IO
import MyParser
eval :: Env -> LispVal -> IOThrowsError LispVal
eval env val@(String _) = return val
eval env val@(Number _) = return val
eval env val@(Bool _) = return val
eval env (Atom i... | zhengqm/scheme | src/Evaluator.hs | bsd-3-clause | 9,711 | 0 | 15 | 2,623 | 3,735 | 1,931 | 1,804 | 203 | 3 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-|
Module : Game.GoreAndAsh.Network.State
Description : Internal state of core module
Copyright : (c) Anton Gushcha, 2015-2016
License : BSD3
Maintainer : ncrashed@gmail.com
Stability : experimental
Portability : POSIX
-}
module Game.GoreAndAsh.Network.State(
-- * ... | Teaspot-Studio/gore-and-ash-network | src/Game/GoreAndAsh/Network/State.hs | bsd-3-clause | 5,051 | 0 | 15 | 1,062 | 895 | 510 | 385 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE UnboxedTuples #-}
-- |Encoding Primitives
module Flat.Encoder.Prim
( eBits16... | tittoassini/flat | src/Flat/Encoder/Prim.hs | bsd-3-clause | 11,986 | 0 | 19 | 3,097 | 3,518 | 1,859 | 1,659 | 55 | 0 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE GADTs #-}
module SAWScript.Prover.What4 where
import Control.Lens ((^.))
import Data.Set (Set)
import qualified Data.Map as Map
import qualified Dat... | GaloisInc/saw-script | src/SAWScript/Prover/What4.hs | bsd-3-clause | 8,293 | 0 | 21 | 2,014 | 2,042 | 1,084 | 958 | -1 | -1 |
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
-- | Benchmarking tool for core performance characteristics of the Haxl monad.
{-# LANGUAGE CPP, OverloadedStrings #-}
module MonadBench (main) whe... | jiayuanmark/Haxl | tests/MonadBench.hs | bsd-3-clause | 4,297 | 0 | 19 | 1,264 | 1,400 | 706 | 694 | 106 | 17 |
module Rewriter where
import Data.Data
import Data.Generics.Uniplate.Data
-- Perform a set of rewrite rules until fixpoint
perform_rewrite rules expression = rewrite (\x -> toMby $ filter isJ (map ($x) rules)) expression
where
isJ (Just _) = True
isJ _ = False
toMby [] = Nothing
... | patrikja/GRACeFUL | ConstraintModelling/Rewriter.hs | bsd-3-clause | 342 | 0 | 13 | 95 | 110 | 59 | 51 | 8 | 3 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE Ra... | kylcarte/string-typelits | src/Type/Family/String.hs | bsd-3-clause | 2,467 | 2 | 19 | 652 | 769 | 430 | 339 | 74 | 4 |
{-# LANGUAGE RankNTypes, ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell, ViewPatterns, DeriveGeneric #-}
{-|
This analysis identifies functions that are allocators (in the style
of malloc).
An function @f@ is an allocator if it always returns the result of an
allocator or NULL, but must be able to return non-NU... | travitch/foreign-inference | src/Foreign/Inference/Analysis/Allocator.hs | bsd-3-clause | 15,495 | 0 | 22 | 3,560 | 3,445 | 1,809 | 1,636 | 248 | 6 |
module Program.Sample1 where
import Syntax
query = Program fAndS $ fresh ["x"] (call "fAndS" [x])
x = V "x"
fAndS :: [Def]
fAndS = fAndSDef : f ++ s
fAndSDef :: Def
fAndSDef =
(Def "fAndS" ["x"]
(call "f" [x] &&& call "s" [x])
)
f :: [Def]
f = [fDef]
fDef :: Def
fDef =
(Def "f" ["x"]
(x... | kajigor/uKanren_transformations | test/resources/Program/Sample1.hs | bsd-3-clause | 468 | 0 | 11 | 148 | 245 | 135 | 110 | 22 | 1 |
Level
{ levelPre =
NameT
"p_galois'rows_width'P"
[ TyCon "map" [ TyCon "int" [] , TyCon "int" [] ]
, TyCon "map" [ TyCon "addr" [] , TyCon "addr" [] ]
, TyCon "map" [ TyCon "addr" [] , TyCon "int" [] ]
, TyCon "map" [ TyCon "addr" [] , TyCon "int" [] ]
, TyCon "ad... | GaloisInc/verification-game | web-prover/demo-levels/rows_width/safety/tasks/0/level.hs | bsd-3-clause | 23,248 | 0 | 23 | 12,186 | 7,457 | 3,867 | 3,590 | -1 | -1 |
{-# LANGUAGE NoMonomorphismRestriction #-}
import Diagrams.Prelude
import Diagrams.Backend.SVG.CmdLine
import Diagrams.TwoD.Boolean
main = mainWith (example :: Diagram B)
example = strokePath $ union Winding $
(square 1) <> circle 0.5 # translate (V2 0.5 (-0.5))
| kuribas/diagrams-boolean | samples/union.hs | bsd-3-clause | 276 | 0 | 10 | 47 | 86 | 46 | 40 | 7 | 1 |
{-# LANGUAGE FlexibleInstances #-}
-- {-# LANGUAGE RankNTypes #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
-- {-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- {-# OPTIONS_GHC -fno-warn-orphans #-}
-- {-# OPTIONS_GHC -fno-warn-missing-signatures #... | reuleaux/pire | src/Pire/Traversal.hs | bsd-3-clause | 7,526 | 0 | 14 | 1,934 | 1,587 | 846 | 741 | 61 | 1 |
module LocalRef where
-- - @go ref FunGo
f = go
-- - @go defines/binding FunGo
where go = undefined
| robinp/haskell-indexer | kythe-verification/testdata/basic/LocalRef.hs | apache-2.0 | 105 | 0 | 6 | 25 | 18 | 12 | 6 | 3 | 1 |
{-# OPTIONS -Wall -fno-warn-orphans #-}
-- | Basic operations on distributed types.
module Data.Array.Parallel.Unlifted.Distributed.Basics
(eqD, neqD, toD, fromD)
where
import Data.Array.Parallel.Unlifted.Distributed.Primitive
import Data.Array.Parallel.Unlifted.Distributed.Combinators
import Data.Array.Para... | mainland/dph | dph-prim-par/Data/Array/Parallel/Unlifted/Distributed/Basics.hs | bsd-3-clause | 1,588 | 0 | 11 | 350 | 419 | 234 | 185 | 24 | 1 |
module Distribution.Nixpkgs.Haskell.FromCabal.Flags ( configureCabalFlags ) where
import Distribution.Package
import Distribution.PackageDescription
configureCabalFlags :: PackageIdentifier -> FlagAssignment
configureCabalFlags (PackageIdentifier (PackageName name) _)
| name == "accelerate-examples"= [disable "openc... | psibi/cabal2nix | src/Distribution/Nixpkgs/Haskell/FromCabal/Flags.hs | bsd-3-clause | 1,732 | 0 | 9 | 420 | 561 | 278 | 283 | 30 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- from <http://www.ietf.org/rfc/rfc6070.txt>
module KAT_PBKDF2 (tests) where
import Crypto.Hash (SHA1(..), SHA256(..), SHA512(..))
import qualified Crypto.KDF.PBKDF2 as PBKDF2
import Data.ByteString (ByteString)
import Data.ByteString.Char8 ()
import Test.Tasty
import Test.Tasty.... | vincenthz/cryptonite | tests/KAT_PBKDF2.hs | bsd-3-clause | 4,260 | 0 | 13 | 707 | 818 | 480 | 338 | 57 | 1 |
module B1.Program.Chart.Button
( ButtonState(..)
, drawButton
) where
import Control.Monad
import Graphics.Rendering.OpenGL
import Graphics.UI.GLFW
import B1.Graphics.Rendering.OpenGL.Box
import B1.Graphics.Rendering.OpenGL.Utils
import B1.Program.Chart.Colors
import B1.Program.Chart.MouseUtils
import B1.Progra... | madjestic/b1 | src/B1/Program/Chart/Button.hs | bsd-3-clause | 1,706 | 0 | 16 | 361 | 544 | 284 | 260 | 41 | 1 |
{-# OPTIONS_GHC -fwarn-missing-exported-sigs #-}
module Bug (Data.List.intercalate, x) where
import qualified Data.List
intercalate = True
x :: Bool
x = intercalate
| nushio3/ghc | testsuite/tests/warnings/should_compile/T10908.hs | bsd-3-clause | 169 | 0 | 5 | 25 | 37 | 24 | 13 | 6 | 1 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="fa-IR">
<title>AMF Support</title>
<maps>
<homeID>amf</homeID>
<mapref location="map.jh... | kingthorin/zap-extensions | addOns/amf/src/main/javahelp/help_fa_IR/helpset_fa_IR.hs | apache-2.0 | 956 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.BinarySpacePartition
-- Copyright : (c) 2013 Ben Weitzman ... | pjones/xmonad-test | vendor/xmonad-contrib/XMonad/Layout/BinarySpacePartition.hs | bsd-2-clause | 34,759 | 0 | 21 | 8,021 | 12,352 | 6,293 | 6,059 | 567 | 5 |
module Recursive9 where
f1 :: Int -> [a] -> [a]
f1 _ [] = []
f1 0 xs = (x:ls)
where
ls = f1 (n - 1) xs
f2 :: Int -> [a] -> [a]
f2 _ [] = []
f2 0 xs = xs
f2 n (x:xs) = rs
where
rs = f2 (n - 1) xs
| SAdams601/HaRe | old/testing/merging/Match1.hs | bsd-3-clause | 255 | 0 | 9 | 118 | 152 | 82 | 70 | 10 | 1 |
module System.IO.Continuation(IOCont(),newContinuation,callContinuation) where
import Jhc.JumpPoint
import Jhc.Hole
data IOCont s a = IOCont (Hole a) JumpPoint
newContinuation :: (forall s . IOCont s a -> IO b) -> (a -> IO b) -> IO b
newContinuation act cc = do
ref <- newHole
withJumpPoint__ $ \jp r -> case ... | m-alvarez/jhc | lib/haskell-extras/System/IO/Continuation.hs | mit | 533 | 0 | 16 | 125 | 220 | 111 | 109 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.CommandReader
-- Copyright : (c) John Goerzen
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Jose A. Ortega Ruiz <jao@gnu.org>
-- Stability : unstable
-- Portability : unportable
--
-- A p... | tsiliakis/xmobar | src/Plugins/CommandReader.hs | bsd-3-clause | 1,257 | 0 | 13 | 337 | 228 | 118 | 110 | 21 | 0 |
{-# LANGUAGE MagicHash #-}
module T10600 where
import GHC.Prim
-- This shouldn't compile as unlifted bindings aren't allowed at top-level.
-- However, #10600 described the situation where an error isn't throw when we
-- compile with -fno-code.
foo :: Int#
foo = 10600#
| ezyang/ghc | testsuite/tests/driver/T10600.hs | bsd-3-clause | 271 | 0 | 4 | 45 | 23 | 16 | 7 | 5 | 1 |
module MyLibrary where
import qualified Data.ByteString.Char8 as C
import System.Time
myLibFunc :: IO ()
myLibFunc = do
getClockTime
let text = "myLibFunc internal"
C.putStrLn $ C.pack text
| jwiegley/ghc-release | libraries/Cabal/cabal/tests/PackageTests/BuildDeps/InternalLibrary4/MyLibrary.hs | gpl-3.0 | 204 | 0 | 9 | 41 | 59 | 32 | 27 | 8 | 1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-deprecations #-} -- to suppress deprecation warning for ErrorT
module System.Logging.Facade.Class where
import Control.Monad.Trans.Class
import Control.Monad.Trans.Cont
import Control.Monad.Trans.Identity
import Control.Monad.Trans.... | sol/logging-facade | src/System/Logging/Facade/Class.hs | mit | 2,760 | 0 | 9 | 519 | 693 | 398 | 295 | 49 | 0 |
module Allergies (Allergen(..), allergies, isAllergicTo) where
import qualified Data.Map.Strict as M
import Data.Bits ((.&.))
data Allergen = Eggs
| Peanuts
| Shellfish
| Strawberries
| Tomatoes
| Chocolate
| Pollen
| Ca... | c19/Exercism-Haskell | allergies/src/Allergies.hs | mit | 1,154 | 0 | 9 | 371 | 365 | 212 | 153 | 32 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Monoid (mappend)
import Hakyll
feedConfiguration :: FeedConfiguration
feedConfiguration =
FeedConfiguration { feedTitle = "Code and Co"
, feedDescription = "Articles on functional programming, PLT, types, and other geekery"
... | jozefg/blog | site.hs | mit | 4,176 | 0 | 23 | 1,370 | 938 | 436 | 502 | 99 | 1 |
{-
HAAP: Haskell Automated Assessment Platform
This module provides a generic interface for HAAP plugins.
HAAP follows a 'configuration-as-an-application' architecture, common in Haskell web frameworks such as Happstack.
The plugins abstraction is defined to be reusable and composable, and each feature of HAAP is prov... | hpacheco/HAAP | src/HAAP/Plugin.hs | mit | 6,649 | 4 | 12 | 1,302 | 2,423 | 1,291 | 1,132 | 100 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module ZoomHub.Email
( Email (..),
From (..),
To (..),
send,
)
where
import Control.Lens ((&), (.~), (?~))
import Data.Text (Text)
import qualified Network.AWS as AWS
import qualified Network.AWS.SES as SES
import qualified ZoomHub.AW... | zoomhub/zoomhub | src/ZoomHub/Email.hs | mit | 999 | 0 | 10 | 209 | 324 | 195 | 129 | 30 | 1 |
myGCD :: Int -> Int -> Int
myGCD n 0 = n
myGCD n m = gcd m $ n `mod` m
coprime :: Int -> Int -> Bool
coprime n m = 1 == myGCD n m
| cjhveal/H-99 | 33.hs | mit | 133 | 0 | 7 | 41 | 79 | 40 | 39 | 5 | 1 |
import qualified Data.Csv as Csv
import qualified Data.ByteString.Lazy as BS
import qualified Data.Text as Text
import qualified Data.Vector as Vector
import qualified Data.Set as Set
import Data.Maybe
import Fizz.Core
type Text = Text.Text
type ByteString = BS.ByteString
type Vector = Vector.Vector
data BankEntryTyp... | josuf107/Fizzckle | src/Resolver.hs | gpl-3.0 | 1,801 | 0 | 15 | 432 | 608 | 329 | 279 | 43 | 3 |
-- -*-haskell-*-
-- Vision (for the Voice): an XMMS2 client.
--
-- Author: Oleg Belozeorov
-- Created: 6 Sep. 2010
--
-- Copyright (C) 2010, 2011 Oleg Belozeorov
--
-- 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 ... | upwawet/vision | src/About.hs | gpl-3.0 | 2,998 | 0 | 20 | 676 | 453 | 230 | 223 | -1 | -1 |
module Filter.Util (splitIt, intoChunks,formatChunk, unlines',sanatizeHtml, exerciseWrapper) where
import Prelude
import Text.Pandoc
import Data.Char (isDigit)
import Text.Blaze.Html
import Text.Blaze.Html.Renderer.String
splitIt [] = ([],[])
splitIt l = case break (== '\n') l of
(h,t@(_:x:xs)) -> if ... | gleachkr/Carnap | Carnap-Server/Filter/Util.hs | gpl-3.0 | 1,278 | 3 | 12 | 416 | 554 | 306 | 248 | 29 | 4 |
module Jacobi where
jacobi :: Integer -> Integer -> Int
jacobi 1 n = 1
jacobi a n | a > n = jacobi (a `mod` n) n
| gcd a n /= 1 = 0
| a == 2 = case n `mod` 8 of
1 -> 1
3 -> -1
5 -> -1
... | maugier/cctk | src/CCTK/Jacobi.hs | gpl-3.0 | 505 | 0 | 12 | 281 | 223 | 115 | 108 | 12 | 5 |
{-# LANGUAGE TemplateHaskell #-}
import Control.Monad
import Data.List (nub, sort)
import Data.Set.Diet
import qualified Data.Set as S
import Prelude hiding (null)
import System.Exit
import Test.QuickCheck
instance (Integral a, Arbitrary a) => Arbitrary (Interval a) where
arbitrary = do
l <- arbitrary
... | sivertb/diet-set | tests/test.hs | gpl-3.0 | 4,646 | 36 | 11 | 1,247 | 1,916 | 945 | 971 | -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/BackendServices/Insert.hs | mpl-2.0 | 3,824 | 0 | 15 | 851 | 399 | 242 | 157 | 65 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-cognito-sync/gen/Network/AWS/CognitoSync/Types.hs | mpl-2.0 | 23,562 | 0 | 21 | 6,279 | 4,453 | 2,509 | 1,944 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/Groups/Update.hs | mpl-2.0 | 5,705 | 0 | 17 | 1,304 | 864 | 505 | 359 | 123 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Settings/GetPop.hs | mpl-2.0 | 2,976 | 0 | 14 | 690 | 310 | 192 | 118 | 52 | 1 |
-- Implicit CAD. Copyright (C) 2011, Christopher Olah (chris@colah.ca)
-- Copyright (C) 2016, Julia Longtin (julial@turinglace.com)
-- Released under the GNU AGPLV3+, see LICENSE
module Graphics.Implicit.Export.Render.GetSegs (getSegs) where
import Prelude(Bool(True, False), sqrt, (+), (*), (/=), map, (.), filter, ($... | krakrjak/ImplicitCAD | Graphics/Implicit/Export/Render/GetSegs.hs | agpl-3.0 | 4,040 | 2 | 14 | 1,361 | 1,003 | 610 | 393 | 41 | 19 |
-- 10001st prime
-- By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13,
-- we can see that the 6th prime is 13.
-- What is the 10 001st prime number?
isPrime :: (Integral a) => a -> Bool
isPrime x =
notElem True [x `mod` y == 0 | y <- [2.. round(sqrt (fromIntegral x))]]
getPrimes :: (Int... | m3mitsuppe/haskell | projecteuler/pr007.hs | unlicense | 619 | 9 | 14 | 179 | 265 | 130 | 135 | 15 | 3 |
module Render
( render )
where
import Control.Concurrent
import Control.Monad
import Data.Time.Clock
import Foreign.C.Types
import Linear (V4(..), V2(..))
import Linear.Affine (Point(..))
import SDL.Video.Renderer
import SDL (($=))
import Time
import Types
makeRect :: (Num a) => Point V2 a -> a -> Rectangle a
m... | mbernat/sdl | main/Render.hs | unlicense | 917 | 0 | 12 | 204 | 401 | 203 | 198 | 28 | 1 |
module Main where
import Prelude
data Trivial =
Trivial'
instance Eq Trivial where
Trivial' == Trivial' = True
-- instance Eq Trivial where
-- (==) Trivial' Trivial' = True
data DayOfWeek =
Mon | Tue | Weds | Thu | Fri | Sat | Sun
data Date =
Date DayOfWeek Int
instance Eq DayOfWeek where
Mon == Mon ... | prt2121/haskell-practice | hb-chap06/src/Main.hs | apache-2.0 | 3,182 | 0 | 8 | 829 | 1,389 | 735 | 654 | 100 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
module Spark.Core.CollectSpec where
import Test.Hspec
import qualified Data.Text
import Data.List(sort)
import Spark.Core.Context
import Spark.Core.Types
import Spark.Core.Row
import Spark.Core.Functions
import Spark.Core.Column
import Spark.C... | krapsh/kraps-haskell | test-integration/Spark/Core/CollectSpec.hs | apache-2.0 | 2,007 | 0 | 19 | 421 | 640 | 329 | 311 | 50 | 1 |
{-# LANGUAGE LambdaCase, OverloadedStrings #-}
-- | The precisely-typed version of Hawk's command-line arguments.
module System.Console.Hawk.Args.Spec where
import Data.ByteString (ByteString)
data HawkSpec
= Help
| Version
| Eval ExprSpec OutputSpec
| Apply ExprSpec InputSpec OutputSpec
... | gelisam/hawk | runtime/System/Console/Hawk/Args/Spec.hs | apache-2.0 | 3,091 | 0 | 8 | 625 | 572 | 330 | 242 | 75 | 2 |
module FFMpegCommand (generateCommand) where
import Control.Monad
import Data.List
import Data.Maybe
import HMSTime
import Utilities
import Command
-- Common aliases
type StartTime = HMSTime
type EndTime = HMSTime
type HMSTuple = (StartTime, EndTime)
type... | connrs/ffsplitgen | src/FFMpegCommand.hs | apache-2.0 | 1,720 | 0 | 9 | 375 | 441 | 246 | 195 | 32 | 1 |
{-# LANGUAGE DeriveFunctor, TemplateHaskell, TypeOperators #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances, IncoherentInstances #-}
-- | This module contains the definition of our logo right turn command, along
-- with an instance for evaluation, and p... | alexandersgreen/hoodlums | Logo_compdata/RightLogo.hs | apache-2.0 | 1,267 | 0 | 12 | 207 | 241 | 137 | 104 | 24 | 0 |
module Drasil.DocLang.SRS (appendix, assumpt, assumptLabel, charOfIR, datCon,
datConLabel, dataDefn, dataDefnLabel, doc, doc', funcReq, funcReqLabel, genDefn,
genDefnLabel, genSysDes, goalStmt, inModel, inModelLabel, indPRCase,
indPRCaseLabel, intro, likeChg, likeChgLabel, nonfuncReq, offShelfSol, orgOfDoc,
phy... | JacquesCarette/literate-scientific-software | code/drasil-docLang/Drasil/DocLang/SRS.hs | bsd-2-clause | 8,048 | 0 | 10 | 1,457 | 2,047 | 1,131 | 916 | 100 | 3 |
module Bar where
bar = "Beara"
| lukexi/halive | test/TestFileBar.hs | bsd-2-clause | 32 | 0 | 4 | 7 | 9 | 6 | 3 | 2 | 1 |
module Matterhorn.Draw.SaveAttachmentWindow
( drawSaveAttachmentWindow
)
where
import Prelude ()
import Matterhorn.Prelude
import Brick
import Brick.Focus
import Brick.Widgets.Border
import Brick.Widgets.Center
import Brick.Widgets.Edit
import... | matterhorn-chat/matterhorn | src/Matterhorn/Draw/SaveAttachmentWindow.hs | bsd-3-clause | 1,402 | 0 | 14 | 441 | 300 | 160 | 140 | -1 | -1 |
-- #hide
--------------------------------------------------------------------------------
-- |
-- Module : Sound.OpenAL.AL.QueryUtils
-- Copyright : (c) Sven Panne 2003-2005
-- License : BSD-style (see the file libraries/OpenGL/LICENSE)
--
-- Maintainer : sven.panne@aedion.de
-- Stability : provisio... | FranklinChen/hugs98-plus-Sep2006 | packages/OpenAL/Sound/OpenAL/AL/QueryUtils.hs | bsd-3-clause | 3,563 | 2 | 9 | 594 | 588 | 346 | 242 | -1 | -1 |
{-# LANGUAGE
PatternGuards,
OverloadedStrings, FlexibleContexts, PackageImports #-}
module Network.XmlPush.Xmpp.Server.Common (
XmppServerArgs(..),
retrieves,
initXSt, user,
setIds,
makeMpi,
) where
import "monads-tf" Control.Monad.State
import "monads-tf" Control.Monad.Error
import Control.Monad.Base
impor... | YoshikuniJujo/xml-push | src/Network/XmlPush/Xmpp/Server/Common.hs | bsd-3-clause | 5,084 | 111 | 17 | 967 | 2,180 | 1,153 | 1,027 | 131 | 3 |
module L1_x86.Tests where
| mhuesch/scheme_compiler | test/L1Tox86/Tests.hs | bsd-3-clause | 27 | 0 | 3 | 4 | 6 | 4 | 2 | 1 | 0 |
{-# LANGUAGE CPP, RecordWildCards, NamedFieldPuns, RankNTypes #-}
-- | Planning how to build everything in a project.
--
module Distribution.Client.ProjectPlanning (
-- * elaborated install plan types
ElaboratedInstallPlan,
ElaboratedConfiguredPackage(..),
ElaboratedPlanPackage,
ElaboratedSharedCon... | kolmodin/cabal | cabal-install/Distribution/Client/ProjectPlanning.hs | bsd-3-clause | 101,149 | 0 | 28 | 28,964 | 12,857 | 7,031 | 5,826 | 1,356 | 7 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Reading from external processes.
module System.Process.Read
(readProcessStdout
,readProcessStderrStdout
... | MichielDerhaeg/stack | src/System/Process/Read.hs | bsd-3-clause | 17,604 | 0 | 30 | 5,261 | 3,770 | 1,988 | 1,782 | 334 | 8 |
-- -*- Mode: Haskell -*-
-- Copyright 1996 by Peter Thiemann
-- EbnfOutput.hs --- produce EBNF output for yacc/happy input
-- Initial revision
--
-- Last Modified By: M. Walter
--
module EbnfOutput (genEbnfFile) where
import Version
import AbstractSyntax
import GrammarUnfold (GrammarInfo(... | FranklinChen/Ebnf2ps | src/EbnfOutput.hs | bsd-3-clause | 4,959 | 148 | 17 | 1,405 | 1,482 | 725 | 757 | 139 | 17 |
-- Copyright: 2007-2012 Dino Morelli
-- License: BSD3 (see LICENSE)
-- Author: Dino Morelli <dino@ui3.info>
module Photoname.Opts
( Options (..)
, parseOpts, usageText
)
where
import Control.Applicative
import System.Console.GetOpt
import System.Directory
data Options = Options
{ optConfig :: String
... | tkawachi/photoname | src/Photoname/Opts.hs | bsd-3-clause | 7,477 | 0 | 12 | 2,108 | 1,163 | 682 | 481 | 146 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.