_id
stringlengths
64
64
repository
stringlengths
6
84
name
stringlengths
4
110
content
stringlengths
0
248k
license
null
download_url
stringlengths
89
454
language
stringclasses
7 values
comments
stringlengths
0
74.6k
code
stringlengths
0
248k
437726b589c06d8ac1c7a3b1fa08aeffd5abe63824965e4d78d192822bf2f9f5
Liqwid-Labs/plutus-extra
Extra.hs
# OPTIONS_GHC -fno - omit - interface - pragmas # module PlutusTx.List.Extra (zip3, unzip, unzip3) where -------------------------------------------------------------------------------- import Data.Kind (Type) -------------------------------------------------------------------------------- import PlutusTx.Prelude ...
null
https://raw.githubusercontent.com/Liqwid-Labs/plutus-extra/347dd304e9b580d1747439a888bfaa79f1c5a25e/plutus-extra/src/PlutusTx/List/Extra.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
# OPTIONS_GHC -fno - omit - interface - pragmas # module PlutusTx.List.Extra (zip3, unzip, unzip3) where import Data.Kind (Type) import PlutusTx.Prelude (Foldable (foldMap), foldr) # INLINEABLE zip3 # | ' zip3 ' takes three lists and returns a list of triples , analogous to ' zip ' . zip3 :: forall (a :: Ty...
9e2c8df727612e3fb8cf0d50d592657897adfe694f72735070b47f28dcfa7682
janestreet/base
map.mli
* @inline
null
https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/src/map.mli
ocaml
* @inline
0a31da7eefecf380d597831515576b115049d51cd9169d7d62c3ea56921c4136
jackfirth/lens
applicable.rkt
#lang racket/base (require reprovide/reprovide lens/private/common/applicable) (reprovide lens) (module+ test (require rackunit) (check-equal? (first-lens '(a b c)) 'a) (check-equal? (lens-view first-lens '(a b c)) 'a) (check-equal? (lens-set first-lens '(a b c) 97) '(97 b c)))
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-lib/lens/applicable.rkt
racket
#lang racket/base (require reprovide/reprovide lens/private/common/applicable) (reprovide lens) (module+ test (require rackunit) (check-equal? (first-lens '(a b c)) 'a) (check-equal? (lens-view first-lens '(a b c)) 'a) (check-equal? (lens-set first-lens '(a b c) 97) '(97 b c)))
69edde229f5646a0842609a2a6289fc07f930449d769e58d3f988cdb9593b2e3
jacius/lispbuilder
init.lisp
(in-package #:lispbuilder-sdl) ;;;; Functions (defmacro with-init (flags &body body) "`WITH-INIT` is a convenience macro that will attempt to initialise the SDL library and SDL subsystems prior to executing the forms in `BODY`. Upon exit `WITH-INIT` will uninitialize the SDL library and SDL subsystems. The lispbu...
null
https://raw.githubusercontent.com/jacius/lispbuilder/e693651b95f6818e3cab70f0074af9f9511584c3/lispbuilder-sdl/sdl/init.lisp
lisp
Functions Close only specified subsystems, if specified Quit SDL if *quit-on-exit*, otherwise quit each subsystem Close only specified subsystems Or close all subsystems
(in-package #:lispbuilder-sdl) (defmacro with-init (flags &body body) "`WITH-INIT` is a convenience macro that will attempt to initialise the SDL library and SDL subsystems prior to executing the forms in `BODY`. Upon exit `WITH-INIT` will uninitialize the SDL library and SDL subsystems. The lispbuilder-sdl initi...
16f19518552381dad9280c98434af0507589efa6da8947aa2dcdb9f9aa5bd096
well-typed/cborg
PkgBinary.hs
# OPTIONS_GHC -fno - warn - orphans -fsimpl - tick - factor=500 # module Macro.PkgBinary where import Macro.Types import Data.Binary as Binary import Data.Binary.Get as Binary import Data.ByteString.Lazy as BS serialise :: [GenericPackageDescription] -> BS.ByteString serialise pkgs = Binary.encode pkgs deserialise :...
null
https://raw.githubusercontent.com/well-typed/cborg/9be3fd5437f9d2ec1df784d5d939efb9a85fd1fb/serialise/bench/versus/Macro/PkgBinary.hs
haskell
# OPTIONS_GHC -fno - warn - orphans -fsimpl - tick - factor=500 # module Macro.PkgBinary where import Macro.Types import Data.Binary as Binary import Data.Binary.Get as Binary import Data.ByteString.Lazy as BS serialise :: [GenericPackageDescription] -> BS.ByteString serialise pkgs = Binary.encode pkgs deserialise :...
02b34b63ed48943f7e24a8edf4a35de0d85400e1ecb613a4953eb868270b90b2
ledger/cl-ledger
totals.lisp
This is a Ledger transform whose sole job is to walk through a binder and ;; calculate running totals for all the transactions in it, in order. The ;; total is stored in the `xact-data' element of each transaction, just lookup ;; the :running-total key in that alist. ;; This is a good example of an Annotate Transfo...
null
https://raw.githubusercontent.com/ledger/cl-ledger/e25d5f9f721bcf3b30d6569363e723f22d19a3a0/transforms/totals.lisp
lisp
calculate running totals for all the transactions in it, in order. The total is stored in the `xact-data' element of each transaction, just lookup the :running-total key in that alist. This is a good example of an Annotate Transform, which does not modify the structure of the binder or its primary data fields, bu...
This is a Ledger transform whose sole job is to walk through a binder and (declaim (optimize (safety 3) (debug 3))) (in-package :ledger) (defun get-computed-amount (xact &optional amount lots lot-prices lot-dates lot-tags) (strip-annotations (etypecase amount (function (funcall amount xact)) ...
d861341a145a1a24ab51a498e7c346b83bcf069b05a62b2194dd9842ca5b54fa
samrocketman/home
time_change.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Time Change ;; by noclayto <www.gimptalk.com> Will change the time of all layers eg Frame 1 ( 100ms ) ( combine ) ... ;; This script is mainly for learning. Use at your own risk. ;; ALL RIGHTS RESERVED ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/samrocketman/home/63a8668a71dc594ea9ed76ec56bf8ca43b2a86ca/dotfiles/.gimp/scripts/time_change.scm
scheme
Time Change by noclayto <www.gimptalk.com> This script is mainly for learning. Use at your own risk. ALL RIGHTS RESERVED _"<Image>/Script-Fu/Animators/Time Change" SF-STRING _"Mode" "combine"
Will change the time of all layers eg Frame 1 ( 100ms ) ( combine ) ... (define (script-fu-time-change img drawable req-mode time) Frame 14 ( 200ms ) ( combine ) (let* ( (num (car (gimp-image-get-layers img))) (layers (cadr (gimp-image-get-layers img))) (str) (str-temp) (l-num (+ num 1)) (str-nu...
ede5c0f54be8de7be37561a0ba8235fd90d2d62e3eb629163a4bf44ca6bcbc35
Odinodin/data-frisk-reagent
core.cljs
(ns datafrisk.core (:require [datafrisk.view :as view] [datafrisk.shell :as shell])) (defn DataFriskShell [& data] (apply shell/DataFriskShell data)) (defn DataFriskView [& data] (apply view/DataFriskView data)) ;; Deprecated (defn FriskInline [& data] (apply view/DataFriskView data))
null
https://raw.githubusercontent.com/Odinodin/data-frisk-reagent/5b143e38674e09f89481826b80d5add879a7e255/src/datafrisk/core.cljs
clojure
Deprecated
(ns datafrisk.core (:require [datafrisk.view :as view] [datafrisk.shell :as shell])) (defn DataFriskShell [& data] (apply shell/DataFriskShell data)) (defn DataFriskView [& data] (apply view/DataFriskView data)) (defn FriskInline [& data] (apply view/DataFriskView data))
ddbcf0317f97f8d4f5e42147a53ef5f82b89ce601d4749778e4fe7f7a76faa44
rmloveland/scheme48-0.53
weak.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define (make-weak-pointer x) (cons '<weak> x)) (define weak-pointer-ref cdr) (define (weak-pointer? x) (and (pair? x) (eq? (car x) '<weak>)))
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/alt/weak.scm
scheme
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define (make-weak-pointer x) (cons '<weak> x)) (define weak-pointer-ref cdr) (define (weak-pointer? x) (and (pair? x) (eq? (car x) '<weak>)))
51046727d0bee4d0dd98b47b78a2632adf8320d7dca58d00cde885727506bec5
PhDP/Akarui
Term.hs
| Type and functions for terms : the objects of first - order logic . module Akarui.FOL.Term where import Data.Set (Set) import qualified Data.Set as Set import Data.List (foldl') import qualified Data.Text as T import Data.Monoid ((<>), mconcat) import qualified Akarui.Text as FT import Akarui.ShowTxt -- | A term ...
null
https://raw.githubusercontent.com/PhDP/Akarui/4ad888d011f7115677e8f9ba18887865f5150746/Akarui/FOL/Term.hs
haskell
| A term represents an object. Terms are not atoms, they are found in Warning: for Term String, several algorithms assume the string of variables start with a lowercase character, while constants start with an uppercase distinguish variables from constants. | Variables range over objects. For example the variable...
| Type and functions for terms : the objects of first - order logic . module Akarui.FOL.Term where import Data.Set (Set) import qualified Data.Set as Set import Data.List (foldl') import qualified Data.Text as T import Data.Monoid ((<>), mconcat) import qualified Akarui.Text as FT import Akarui.ShowTxt predicates...
a4e877e479ce897231ea73c90d2fd0f2b9b35d8d3ca475d9bbfa6d4e516fb8f4
gar1t/psycho
psycho_mime.erl
-module(psycho_mime). -export([init/0, init/1, load_types/1, type_from_path/1, type_from_path/2, type_from_extension/1, type_from_extension/2]). -define(TABLE, psycho_mime_types). -define(MIME_TYPES_FILE, "mime.types"). init() -> init_table(load_types(priv_mi...
null
https://raw.githubusercontent.com/gar1t/psycho/6335b9c27559f417e613372776edbea760720559/src/psycho_mime.erl
erlang
-module(psycho_mime). -export([init/0, init/1, load_types/1, type_from_path/1, type_from_path/2, type_from_extension/1, type_from_extension/2]). -define(TABLE, psycho_mime_types). -define(MIME_TYPES_FILE, "mime.types"). init() -> init_table(load_types(priv_mi...
93f51d964667180be41cac6ee9d849b98610cc62b52b54f9f5eadedc16eb2fcd
fission-codes/fission
Class.hs
module Fission.CLI.GitHub.Class (MonadGitHub (..)) where import Fission.Prelude import Servant.Client class Monad m => MonadGitHub m where sendRequest :: ClientM a -> m (Either ClientError a)
null
https://raw.githubusercontent.com/fission-codes/fission/e07965d911c05f79b01f47aff7b76cd92d21e290/fission-cli/library/Fission/CLI/GitHub/Class.hs
haskell
module Fission.CLI.GitHub.Class (MonadGitHub (..)) where import Fission.Prelude import Servant.Client class Monad m => MonadGitHub m where sendRequest :: ClientM a -> m (Either ClientError a)
a1a3332ec78820b39db6df65ba3d52e63e3a028207cbb2d3d6f5f722e68c6688
dgiot/dgiot
dgiot_log_channel.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. 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...
null
https://raw.githubusercontent.com/dgiot/dgiot/4305eaa059d6bb63fadd5526d3c4cc8cf76a3239/apps/dgiot_bridge/src/channel/dgiot_log_channel.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_log_channel). -behavior(dgiot_channelx). -include("dgiot_bridge.hrl"). -include_l...
a8700e5c5ca7b7086b01dbf8fd6b5df409691ba5204b0e2754c6b20df3246f32
aryx/xix
check.mli
(* Make sure there is no reference to undefined symbols. *) val check: Types.symbol_table -> unit
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/linker/check.mli
ocaml
Make sure there is no reference to undefined symbols.
val check: Types.symbol_table -> unit
d08ed1f3c14663e3dd0a3bdc2d2ed539eb96bbbcda9287173afe89f2adac7000
DHSProgram/DHS-Indicators-SPSS
HV_TEST_COVG.sps
* Encoding: windows-1252. ***************************************************************************************************** Program: HK_TEST_COVG.sps Purpose: Code for coverage of HIV testing Data inputs: PR file merged with AR file Data outputs: coded variables Author: Shireen Assaf and translated to ...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/5de4f2b032646a99fe144a1adeaf09a82d8026a6/Chap14_HV/HV_TEST_COVG.sps
scheme
* Encoding: windows-1252. ***************************************************************************************************** Program: HK_TEST_COVG.sps Purpose: Code for coverage of HIV testing Data inputs: PR file merged with AR file Data outputs: coded variables Author: Shireen Assaf and translated to ...
97406005d3e2a373d3a3ef0f7109b40a24e342955fff8d964d478b43bef325d6
ocaml/ocamlfind
ppx.ml
Toploop.preprocess_phrase;;
null
https://raw.githubusercontent.com/ocaml/ocamlfind/678148e559cf207bee5d3836ac4d18ed4dffda6c/itest-aux/ppx.ml
ocaml
Toploop.preprocess_phrase;;
955c6e34e178fb6113f9c8cf828449e6d96417201a79ae009a29baa252edd8d2
esl/MongooseIM
privacy_SUITE.erl
%%============================================================================== Copyright 2010 Erlang Solutions Ltd. %% 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 %% %% -2.0 %% ...
null
https://raw.githubusercontent.com/esl/MongooseIM/997ce8cc01dacf8bf1f1f4e3a984ee10f0ce5dd6/big_tests/tests/privacy_SUITE.erl
erlang
============================================================================== you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex...
Copyright 2010 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(privacy_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("exml/include/exml.hrl"). -include_lib("escalus/include/...
59f77bf9cff52a696c5fe7a5509ad3f87a9ef933f637352c86d104a0f637eafc
dimitaruzunov/fp-2018
sum.scm
(require rackunit rackunit/text-ui) (define (sum start end) (if (> start end) 0 (+ start (sum (+ start 1) end)))) (define sum-tests (test-suite "Tests for sum" (check = (sum 1 1) 1) (check = (sum 1 2) 3) (check = (sum 1 3) 6) (check = (sum 0 4) 10) (check = (sum -4 2) -7))) (run-te...
null
https://raw.githubusercontent.com/dimitaruzunov/fp-2018/f75f0cd009cc7f41ce55a5ec71fb4b8eadafc4eb/exercises/01/sum.scm
scheme
(require rackunit rackunit/text-ui) (define (sum start end) (if (> start end) 0 (+ start (sum (+ start 1) end)))) (define sum-tests (test-suite "Tests for sum" (check = (sum 1 1) 1) (check = (sum 1 2) 3) (check = (sum 1 3) 6) (check = (sum 0 4) 10) (check = (sum -4 2) -7))) (run-te...
7fc1c631a42d6cf0b93fa9e1f0c134a1e92d6070ad6c83cbf0856d59fe1b8b0a
RedPRL/algaett
Eff.ml
open Bwd open Bwd.Infix module S = NbE.Syntax module D = NbE.Domain module UL = NbE.ULvl type _ Effect.t += Resolve : Yuujinchou.Trie.path -> ResolveData.t Effect.t module type Handler = sig val resolve : Yuujinchou.Trie.path -> ResolveData.t end module Run (H : Handler) = struct let run f = Effect.Deep.try...
null
https://raw.githubusercontent.com/RedPRL/algaett/f3a1c5e89ea4821441f6e5436c2041b3653fb917/src/refiner/Eff.ml
ocaml
Get the local environment, but chop off the blessed universe level.
open Bwd open Bwd.Infix module S = NbE.Syntax module D = NbE.Domain module UL = NbE.ULvl type _ Effect.t += Resolve : Yuujinchou.Trie.path -> ResolveData.t Effect.t module type Handler = sig val resolve : Yuujinchou.Trie.path -> ResolveData.t end module Run (H : Handler) = struct let run f = Effect.Deep.try...
7f047ca6592d641958f4c0046c8f0064ebb04b0b63ecf58f4611b8f090530648
anwarmamat/cmsc330spring19-public
student.ml
open OUnit2 open Disc.Lexer open Disc.Parser open Disc.Interpreter let test_sanity ctxt = assert_equal 1 1 let suite = "student" >::: [ "sanity" >:: test_sanity ] let _ = run_test_tt_main suite
null
https://raw.githubusercontent.com/anwarmamat/cmsc330spring19-public/98af1e8efc3d8756972731eaca19e55fe8febb69/discussions/discussion9/test/student.ml
ocaml
open OUnit2 open Disc.Lexer open Disc.Parser open Disc.Interpreter let test_sanity ctxt = assert_equal 1 1 let suite = "student" >::: [ "sanity" >:: test_sanity ] let _ = run_test_tt_main suite
fdad1a9391b3594049929ff7d281645fa60fb702f32a879957b5cd5ba0385bad
erlang/otp
beam_ssa_bsm.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2018 - 2022 . 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 %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/4915b2d8ccf93ab4709ed762c9744ad544013f1a/lib/compiler/src/beam_ssa_bsm.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2018 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , < < 0,B / bits > > = A , D. D. -module(beam_ssa_bsm). -export([module/2, format_error/1]). -includ...
9fd9e040b6c118dbcccaa86de47e8909aac0d5485e83ebeb904422c5fdf3884c
hopbit/sonic-pi-snippets
tut01.sps
# key: tut1 # point_line: 0 # point_index: 0 # -- # TUT 01 ------------------------------------------- # Zagraj nute o numerze 60. Liczby mozna zmieniac play 60 # 65 # 50 # 34 # 64.2 # 68.75
null
https://raw.githubusercontent.com/hopbit/sonic-pi-snippets/2232854ac9587fc2f9f684ba04d7476e2dbaa288/tutorial/tut01.sps
scheme
# key: tut1 # point_line: 0 # point_index: 0 # -- # TUT 01 ------------------------------------------- # Zagraj nute o numerze 60. Liczby mozna zmieniac play 60 # 65 # 50 # 34 # 64.2 # 68.75
105677a7bed8cac4334a8a2ff3f9d46e25533fd3a68214a6ed8ff80691620b26
VincentToups/racket-lib
state-commands.rkt
#lang racket (require pure-lands/utilities/dict-state-monad pure-lands/utilities/partial-application pure-lands/chapter-01/agrilex/parameters) (define (+/false amount) (lambda (old-amount) (if old-amount (+ old-amount amount) amount))) (define get-stamina (get 'stamina)) (define get-field (ge...
null
https://raw.githubusercontent.com/VincentToups/racket-lib/d8aed0959fd148615b000ceecd7b8a6128cfcfa8/pure-lands/chapter-01/agrilex/state-commands.rkt
racket
#lang racket (require pure-lands/utilities/dict-state-monad pure-lands/utilities/partial-application pure-lands/chapter-01/agrilex/parameters) (define (+/false amount) (lambda (old-amount) (if old-amount (+ old-amount amount) amount))) (define get-stamina (get 'stamina)) (define get-field (ge...
363385777e6beb27204e884ee61f9f6cb01094e1174c01cd3dcd084b7dcc88d0
mirage/decompress
apply_bindings.ml
include Gen_decompress_bindings.Stubs (Decompress_bindings)
null
https://raw.githubusercontent.com/mirage/decompress/e7e4804047e796b1da6e5181857b49f9ac1c9d1c/bindings/stubs/apply_bindings.ml
ocaml
include Gen_decompress_bindings.Stubs (Decompress_bindings)
c35c378c36b1e7126bfd6e81db48ddbdc4f1e1c172c6b4960221d449e1212b2a
fugue/fregot
Extended.hs
| Copyright : ( c ) 2020 Fugue , Inc. License : Apache License , version 2.0 Maintainer : Stability : experimental Portability : POSIX Copyright : (c) 2020 Fugue, Inc. License : Apache License, version 2.0 Maintainer : Stability : experimental Portability : POSIX -} {-# LANGUAGE Rank...
null
https://raw.githubusercontent.com/fugue/fregot/c3d87f37c43558761d5f6ac758d2f1a4117adb3e/lib/Data/HashSet/Extended.hs
haskell
# LANGUAGE Rank2Types #
| Copyright : ( c ) 2020 Fugue , Inc. License : Apache License , version 2.0 Maintainer : Stability : experimental Portability : POSIX Copyright : (c) 2020 Fugue, Inc. License : Apache License, version 2.0 Maintainer : Stability : experimental Portability : POSIX -} module Data.HashS...
174b22d8efb930f603384e04e11d7cdb62721eef131121c0bc6a4588bb0ab14a
TerrorJack/ghc-alter
showDouble.hs
module Main (main) where main :: IO () main = do let xs = [p0, p01, p3, p31, n0, n01, n3, n31, pinf, ninf, nan] mapM_ print xs mapM_ (print . Just) xs p0 :: Double p0 = 0 p01 :: Double p01 = 0.1 p3 :: Double p3 = 3 p31 :: Double p31 = 3.1 n0 :: Double n0 = -0 n01 :: Double n01 = -0.1 n3 :: ...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/showDouble.hs
haskell
module Main (main) where main :: IO () main = do let xs = [p0, p01, p3, p31, n0, n01, n3, n31, pinf, ninf, nan] mapM_ print xs mapM_ (print . Just) xs p0 :: Double p0 = 0 p01 :: Double p01 = 0.1 p3 :: Double p3 = 3 p31 :: Double p31 = 3.1 n0 :: Double n0 = -0 n01 :: Double n01 = -0.1 n3 :: ...
4c0e363fa7be8aa7eeb95108242a98e7eab77762a57cb2a4a80ad300fa33af94
haskell-suite/base
Version.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , DeriveDataTypeable # ----------------------------------------------------------------------------- -- | -- Module : Data.Version Copyright : ( c ) The University of Glasgow 2004 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer :...
null
https://raw.githubusercontent.com/haskell-suite/base/1ee14681910c76d0a5a436c33ecf3289443e65ed/Data/Version.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Version License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : non-portable (local universal quantification in ReadP) A general library for repre...
# LANGUAGE Trustworthy # # LANGUAGE CPP , DeriveDataTypeable # Copyright : ( c ) The University of Glasgow 2004 provide implementations of ' Eq ' , ' ' and conversion to\/from ' String ' module Data.Version ( Version(..), showVersion, parseVersion, ) where import Text.ParserCombinators.R...
cf55ae39368bf04d98eac19bddfb5ccc924e89d37dc3e5a705038549c2aec515
Metaxal/rascas
collect-terms.rkt
#lang racket/base This file has been changed from its original dharmatech / mpl version . (provide collect-terms) (require (only-in srfi/1 iota) "misc.rkt" "arithmetic.rkt" "coeff-var-monomial.rkt") (define (collect-terms u S) (cond ( (not (sum? u)) u ) ( (member u S) u ) ...
null
https://raw.githubusercontent.com/Metaxal/rascas/540530c28689de50c526abf36079c07fd0436edb/collect-terms.rkt
racket
#lang racket/base This file has been changed from its original dharmatech / mpl version . (provide collect-terms) (require (only-in srfi/1 iota) "misc.rkt" "arithmetic.rkt" "coeff-var-monomial.rkt") (define (collect-terms u S) (cond ( (not (sum? u)) u ) ( (member u S) u ) ...
70fd89faf7d947a3aa833fb4a8b9da0c6b34aab62242514d1fa6aa537aa74694
robrix/starlight
C.hs
{-# LANGUAGE DeriveTraversable #-} # LANGUAGE TypeOperators # module Data.Functor.C ( (:.:)(..) ) where import Control.Applicative newtype (f :.: g) a = C { getC :: f (g a) } deriving (Eq, Foldable, Functor, Ord, Show, Traversable) instance (Applicative f, Applicative g) => Applicative (f :.: g) where pure = C ....
null
https://raw.githubusercontent.com/robrix/starlight/ad80ab74dc2eedbb52a75ac8ce507661d32f488e/src/Data/Functor/C.hs
haskell
# LANGUAGE DeriveTraversable # # INLINE (<*>) #
# LANGUAGE TypeOperators # module Data.Functor.C ( (:.:)(..) ) where import Control.Applicative newtype (f :.: g) a = C { getC :: f (g a) } deriving (Eq, Foldable, Functor, Ord, Show, Traversable) instance (Applicative f, Applicative g) => Applicative (f :.: g) where pure = C . pure . pure # INLINE pure # C f...
aedaa37cc5e117a08de9952084174ce62da9f8720e499c9a9ff5dca01cb23da3
idream-build/idream
Fetch.hs
module Idream.Command.Fetch ( fetchImpl , PkgMissingInPkgSetErr (..) , DisableRefreshErr (..) , MissingLocalPathErr (..) ) where import qualified Data.Map as Map import Idream.Command.Common (PackageGroup, pkgGroupToText, readPkgSetFile, readResolvedProject, reposForGroup) import Idream.Effects.FileSystem (f...
null
https://raw.githubusercontent.com/idream-build/idream/61af6ef68abe6d4f9b67c10f1a3efde9bd93827b/src/Idream/Command/Fetch.hs
haskell
| Top level error type, models all errors that can occur during fetching of dependencies. | Top level function that tries to fetch all dependencies. | Fetches a project as specified in the top level package set file.
module Idream.Command.Fetch ( fetchImpl , PkgMissingInPkgSetErr (..) , DisableRefreshErr (..) , MissingLocalPathErr (..) ) where import qualified Data.Map as Map import Idream.Command.Common (PackageGroup, pkgGroupToText, readPkgSetFile, readResolvedProject, reposForGroup) import Idream.Effects.FileSystem (f...
780ace0f1e7858c78bb6e36c004fe76075b20f9a3191ba37d4fe0bc600da4bd1
mput/sicp-solutions
2_61.test.rkt
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_61.rkt") (define test-set '(1 4 5 6 9)) (define test-set-2 '(3 5 7 9)) (define tests (test-suite "Test for exercise 2_59 (Sets)" (test-case "Element of set" (check-true (element-of-s...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/tests/2_61.test.rkt
racket
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_61.rkt") (define test-set '(1 4 5 6 9)) (define test-set-2 '(3 5 7 9)) (define tests (test-suite "Test for exercise 2_59 (Sets)" (test-case "Element of set" (check-true (element-of-s...
b1fa5d4df837d8f837c27a91f43bac1fc81637d9c11f7b68e60d640e1c7008f8
Decentralized-Pictures/T4L3NT
shell_test_helpers.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2020 Nomadic Labs . < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_shell/test/shell_test_helpers.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2020 Nomadic Labs . < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
e55702f52f606be223c8f3981d0c1d20aace2f4ea139a9f6cba6c0fb37e83fe3
Copilot-Language/copilot
External.hs
# LANGUAGE ExistentialQuantification # | Represent information about externs needed in the generation of C99 code -- for stream declarations and triggers. module Copilot.Compile.C99.External where import Data.List (unionBy) import Copilot.Core import Copilot.Compile.C99.Util -- | Representation of external varia...
null
https://raw.githubusercontent.com/Copilot-Language/copilot/17a9b45eea4e95a465d6e773c6fbcf9bf810b6cc/copilot-c99/src/Copilot/Compile/C99/External.hs
haskell
for stream declarations and triggers. | Representation of external variables. extname's. | Collect all external variables from the streams and triggers. Although Copilot specifications can contain also properties and theorems,
# LANGUAGE ExistentialQuantification # | Represent information about externs needed in the generation of C99 code module Copilot.Compile.C99.External where import Data.List (unionBy) import Copilot.Core import Copilot.Compile.C99.Util data External = forall a. External { extname :: String , extcpyname :: ...
531968a10d84f55c5dcd5fbcf1be45883d83600ec532714d691cab56f4d7150d
boxer-project/boxer-sunrise
xfns.lisp
-*- Mode : Lisp ; rcs - header : " $ Header : /hope / lwhope1 - cam / hope.0 / compound/61 / LISPopengl / RCS / xfns.lisp , v 1.6.4.1 2017/01/19 11:51:03 martin Exp $ " -*- Copyright ( c ) 1987 - -2017 LispWorks Ltd. All rights reserved . (in-package "OPENGL") ;; Names for attributes to glXGetConfig. support ...
null
https://raw.githubusercontent.com/boxer-project/boxer-sunrise/1ef5d5a65d00298b0d7a01890b3cd15d78adc1af/src/opengl/xfns.lisp
lisp
rcs - header : " $ Header : /hope / lwhope1 - cam / hope.0 / compound/61 / LISPopengl / RCS / xfns.lisp , v 1.6.4.1 2017/01/19 11:51:03 martin Exp $ " -*- Names for attributes to glXGetConfig. depth of the color buffer */ level in plane stacking */ true if RGBA mode */ double buffering supported */ stereo buffer...
Copyright ( c ) 1987 - -2017 LispWorks Ltd. All rights reserved . (in-package "OPENGL") support GLX rendering * / (defconstant *glx-get-config-attributes* `((,*GLX-USE-GL* *GLX-USE-GL* "~[Does NOT support~;Supports~] OpenGL rendering") (,*GLX-BUFFER-SIZE* *GLX-BUF...
d65c7eb1e804fd564d6c56bebe14edb60e133ced28b0e91658c28925a68efb45
informatimago/lisp
ieee-754-test.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** FILE : ieee-754-test.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; ;;;; Test ieee-754.lisp. ;;;; < PJB ...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/common-lisp/data-encoding/ieee-754-test.lisp
lisp
coding : utf-8 -*- ************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION Test ieee-754.lisp. LEGAL This program is free software: you can redistribute it and/or modify (at your option) any later version. ...
FILE : ieee-754-test.lisp USER - INTERFACE : < PJB > < > MODIFICATIONS 2015 - 02 - 25 < PJB > Extracted from ieee-754.lisp AGPL3 Copyright 2015 - 2016 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , ei...
669325ce1d704a97a8ae916de73b6ebe6a1336b59370ba292be967fc57b53edc
rm-hull/wireframes
color.clj
(ns wireframes.renderer.color (:require [wireframes.renderer.lighting :refer [default-position positional-lighting-decorator]] [inkspot.color :refer [coerce red green blue alpha]] [inkspot.color-chart :refer [spectrum color-mapper]])) (defn tee [f] (fn [x] (f x) x)) (defn dup [x] ...
null
https://raw.githubusercontent.com/rm-hull/wireframes/7df78cc6e2040cd0de026795f2e63ad129e4fee5/src/clj/wireframes/renderer/color.clj
clojure
more efficient to store this as a vector rather than coerce to native format, as we know it will get later coerced into a color by the positional lighting decorator. Doing it prematurely will cause unnecessary string->color parsing
(ns wireframes.renderer.color (:require [wireframes.renderer.lighting :refer [default-position positional-lighting-decorator]] [inkspot.color :refer [coerce red green blue alpha]] [inkspot.color-chart :refer [spectrum color-mapper]])) (defn tee [f] (fn [x] (f x) x)) (defn dup [x] ...
29bc8e4a3e012f41cb3811613f95d5f6ad2efddea99e4a64fbf2729a93373ceb
thierry-martinez/refl
tree.mli
type 'a t = | Leaf | Node of { left : 'a t; label : 'a; right : 'a t } [@@deriving refl]
null
https://raw.githubusercontent.com/thierry-martinez/refl/64e7c86f25c47c29aeeaa581a751ef37e138a42f/tests/tree/tree.mli
ocaml
type 'a t = | Leaf | Node of { left : 'a t; label : 'a; right : 'a t } [@@deriving refl]
d8e41e292166c2efdef6d9e5c3773e7c1e5425cf22bcbf5058ff59817a2076a4
rufus-lang/rufus
rufus_expr_try_catch_after_test.erl
-module(rufus_expr_try_catch_after_test). -include_lib("eunit/include/eunit.hrl"). %% typecheck_and_annotate tests typecheck_and_annotate_function_with_bare_catch_block_test() -> RufusText = "func MaybeDivideBy(n int) atom {\n" " try {\n" " 1 / n\n" " :ok\n" ...
null
https://raw.githubusercontent.com/rufus-lang/rufus/c144a8db0c36fd270593234e5509dcc1beec4d04/rf/test/rufus_expr_try_catch_after_test.erl
erlang
typecheck_and_annotate tests typecheck_and_annotate scope tests Throw tests Failure mode tests
-module(rufus_expr_try_catch_after_test). -include_lib("eunit/include/eunit.hrl"). typecheck_and_annotate_function_with_bare_catch_block_test() -> RufusText = "func MaybeDivideBy(n int) atom {\n" " try {\n" " 1 / n\n" " :ok\n" " } catch {\n" " ...
63516bf718c43383cd02cc95accc63d2f6fda01dc8261ad2e5320ac3cb758969
janestreet/base_quickcheck
clause_syntax.mli
include Clause_syntax_intf.Clause_syntax
null
https://raw.githubusercontent.com/janestreet/base_quickcheck/b3dc5bda5084253f62362293977e451a6c4257de/ppx_quickcheck/expander/clause_syntax.mli
ocaml
include Clause_syntax_intf.Clause_syntax
e35da5142b89c57e40ee9f8c20a8a3301c003a080a3b14ab9d9f9ce7ea16d2af
schibsted/spid-tech-docs
routes.clj
(ns spid-docs.routes "A library of path generating functions. Knows how to generate paths to every kind of page in the application. These functions where extracted from their respective page namespaces as this caused cyclic dependencies (e.g. endpoint pages links to API pages, so it requires api-pages, which...
null
https://raw.githubusercontent.com/schibsted/spid-tech-docs/ee6a4394e9732572e97fc3a55506b2d6b9a9fe2b/src/spid_docs/routes.clj
clojure
(ns spid-docs.routes "A library of path generating functions. Knows how to generate paths to every kind of page in the application. These functions where extracted from their respective page namespaces as this caused cyclic dependencies (e.g. endpoint pages links to API pages, so it requires api-pages, which...
fc120968a571cdfcfeccc6786a93927c71059cf2d429d13ecaebffe7f6c42f7c
jaspervdj/hakyll
Trim.hs
-------------------------------------------------------------------------------- -- | Module for trimming whitespace from tempaltes. module Hakyll.Web.Template.Internal.Trim ( trim ) where -------------------------------------------------------------------------------- import Data.Char ...
null
https://raw.githubusercontent.com/jaspervdj/hakyll/af9e29b5456c105dc948bc46c93e989a650b5ed1/lib/Hakyll/Web/Template/Internal/Trim.hs
haskell
------------------------------------------------------------------------------ | Module for trimming whitespace from tempaltes. ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------------------------...
module Hakyll.Web.Template.Internal.Trim ( trim ) where import Data.Char (isSpace) import Data.List (dropWhileEnd) import Hakyll.Web.Template.Internal.Element trim :: [TemplateElement] -> [TemplateElement] trim = cleanse ....
5d9fffb401e651251e64876b325234b1988a04ed1a9862d65265f93500252b14
budu/lobos
analyzer.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 which can be found in the file ; epl-v10.html at the root of this distribution. By using this software ; in any fashion, you are agreeing to be bound by the terms of this ; lice...
null
https://raw.githubusercontent.com/budu/lobos/6704f285a7870e84a838fe2e63307730e9d89443/src/lobos/analyzer.clj
clojure
The use and distribution terms for this software are covered by the epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. ----------------------------------...
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 which can be found in the file (ns lobos.analyzer "Analyze a database's meta-data to contruct an abstract schema." (:refer-clojure :exclude [defonce replace]) (:require (lobos [connectivity :as conn] [schema :as schema]))...
38169c835aa3ce3e49e44a4741c952f52f01b1dc8042a5be17979656f5431d47
hammerlab/biokepi
region.ml
(**************************************************************************) Copyright 2014 , < > (* *) Licensed under the Apache License , Version 2.0 ( the " License " ) ; (* you may not use this file except i...
null
https://raw.githubusercontent.com/hammerlab/biokepi/d64eb2c891b41bda3444445cd2adf4e3251725d4/src/run_environment/region.ml
ocaml
************************************************************************ you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
Copyright 2014 , < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , open Common * Positions are 1 - based type t = [ | `Chromosome of string | `Chromosome_interval of string * ...
25b22a49b2acc395cb5680db53f13c2a2f852ce0506e90aa74de402dd75da537
agda/agda
InteractionTop.hs
# LANGUAGE NondecreasingIndentation # # OPTIONS_GHC -fno - cse # # OPTIONS_GHC -fno - warn - orphans # module Agda.Interaction.InteractionTop ( module Agda.Interaction.InteractionTop ) where import Prelude hiding (null) import Control.Concurrent import Control.Concurrent.Async import Control.Concurrent.STM.TCh...
null
https://raw.githubusercontent.com/agda/agda/4f3899c597792fa4455e0f8134dfd63bc89b1c07/src/full/Agda/Interaction/InteractionTop.hs
haskell
---------------------------------------------------------------------- | Build an opposite action to 'lift' for state monads. ^ run ^ lift ^ reverse lift in double negative position ^ run ^ lift ^ reverse lift in double negative position | Opposite of 'liftIO' for 'CommandM'. This function should only be appl...
# LANGUAGE NondecreasingIndentation # # OPTIONS_GHC -fno - cse # # OPTIONS_GHC -fno - warn - orphans # module Agda.Interaction.InteractionTop ( module Agda.Interaction.InteractionTop ) where import Prelude hiding (null) import Control.Concurrent import Control.Concurrent.Async import Control.Concurrent.STM.TCh...
34ed79d30d7ee4def78bc337a1d04663a3f4b49f197bff15d0293fe46a445190
esl/erlang-web
e_logger_viewer.erl
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the Erlang Web Public License along with this software . If not , it can be %% retrieved via the world...
null
https://raw.githubusercontent.com/esl/erlang-web/2e5c2c9725465fc5b522250c305a9d553b3b8243/lib/eptic-1.4.1/src/e_logger_viewer.erl
erlang
compliance with the License. You should have received a copy of the retrieved via the world wide web at -consulting.com/. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ---------------------------------...
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in Erlang Web Public License along with this software . If not , it can be Software distributed under the License is distributed on an " AS IS " The Initial Developer o...
cdd640d15564e3be0b3ca4a7316136410f1f1db12c720047e5ff0aba267b1564
emqx/emqx
emqx_gateway_gw_sup.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_gateway/src/emqx_gateway_gw_sup.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_gateway_gw_sup). -behaviour(supervisor). -include("include/emqx_gateway.hrl"). -...
69e453e9064acc0449e59009df2486035404d7cec4c8d041a97bacb860e420d4
Decentralized-Pictures/T4L3NT
RPC_service.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_rpc/RPC_service.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
b2222acb36fb501f22059a7406a755970032c0d027a2992d3286dee71c6cadcc
DSiSc/why3
extmap.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/util/extmap.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with This file originates from the OCaml v...
f055002521838c4cb2f364f371c76585fd88bcae56a37c391de822c9d806d9f8
openweb-nl/kafka-graphql-examples
schema.clj
(ns nl.openweb.graphql-endpoint.schema "Contains custom resolvers and a function to provide the full schema." (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [com.walmartlabs.lacinia.util :as util] [com.walmartlabs.lacinia.schema :as schema] [com.stuartsierra.component :as com...
null
https://raw.githubusercontent.com/openweb-nl/kafka-graphql-examples/a404a265b5b0f13968a24d00c6494981063937fe/graphql-endpoint/src/nl/openweb/graphql_endpoint/schema.clj
clojure
Create an object for the subscription. Return a function to cleanup the subscription
(ns nl.openweb.graphql-endpoint.schema "Contains custom resolvers and a function to provide the full schema." (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [com.walmartlabs.lacinia.util :as util] [com.walmartlabs.lacinia.schema :as schema] [com.stuartsierra.component :as com...
9c9e2621f6cf62cbbc4ba2c091252a116bf719eb93e9b456feb442bf36581f3d
braidchat/braid
hljs.cljs
(ns braid.core.client.ui.styles.hljs) (def foreground "#eaeaea") (def background "#000000") (def selection "#424242") (def line "#2a2a2a") (def comment-color "#969896") (def red "#d54e53") (def orange "#e78c45") (def yellow "#e7c547") (def green "#b9ca4a") (def aqua "#70c0b1") (def blue "#7aa6da") (def purple "#c397d8...
null
https://raw.githubusercontent.com/braidchat/braid/2e44eb6e77f1d203115f9b9c529bd865fa3d7302/src/braid/core/client/ui/styles/hljs.cljs
clojure
(ns braid.core.client.ui.styles.hljs) (def foreground "#eaeaea") (def background "#000000") (def selection "#424242") (def line "#2a2a2a") (def comment-color "#969896") (def red "#d54e53") (def orange "#e78c45") (def yellow "#e7c547") (def green "#b9ca4a") (def aqua "#70c0b1") (def blue "#7aa6da") (def purple "#c397d8...
96cb75c62beb26adccd8ebefaed2343a2bfcb57db107eebfb19ef695c3fb7bd1
mtnygard/datoms-say-what
project.clj
(defproject mtnygard/datoms-say-what "1.0.3-SNAPSHOT" :description "Visualize the results of a Datomic transaction" :url "-say-what" :license {:name "Eclipse Public License" :url "-v10.html"} :repositories {"my.datomic.com" {:url "" :cred...
null
https://raw.githubusercontent.com/mtnygard/datoms-say-what/d352efde39dfc3d3a1a40b1d4a1d4493c835c1ae/project.clj
clojure
(defproject mtnygard/datoms-say-what "1.0.3-SNAPSHOT" :description "Visualize the results of a Datomic transaction" :url "-say-what" :license {:name "Eclipse Public License" :url "-v10.html"} :repositories {"my.datomic.com" {:url "" :cred...
423a4b5e84e5f4173b12420de8231e6c16d4cd22412ecbfdcb9289d9fa806c59
uim/sigscheme
test-srfi28.scm
;; Filename : test-srfi28.scm About : unit test for SRFI-28 ;; Copyright ( C ) 2006 YAMAMOTO Kengo < yamaken AT > Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > ;; ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modifi...
null
https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/test/test-srfi28.scm
scheme
Filename : test-srfi28.scm All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the fol...
About : unit test for SRFI-28 Copyright ( C ) 2006 YAMAMOTO Kengo < yamaken AT > Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright ...
37d9aad92953ced4c2747203cc24339a52197ac597e340013abfe805e24a8da8
weavejester/hashp
core_test.clj
(ns hashp.core-test (:require [clojure.test :refer :all] [hashp.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/weavejester/hashp/45e1c532c5394a691f68094b55d8a2dae7896d3a/test/hashp/core_test.clj
clojure
(ns hashp.core-test (:require [clojure.test :refer :all] [hashp.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
1f913f6aede6157ee981f81bd90c7fd690cfcfeea734116e8e321372f1085927
donaldsonjw/bigloo
feffect.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Effect / feffect.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Effect/feffect.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The effect of the functions (i.e. does a function read a pair, */ * does it set a vector or...
* serrano / prgm / project / bigloo / comptime / Effect / feffect.scm * / * Author : * / * Creation : Fri Sep 26 08:48:52 2003 * / * Last change : Mon Nov 11 09:58:23 2013 ( serrano ) * / * Copy...
3a86745760bf4639b482aba448246fa76c77671211390dc4005ad62174401bbf
google/proto-lens
Setup.hs
import Data.ProtoLens.Setup main = defaultMainGeneratingProtos "proto-src"
null
https://raw.githubusercontent.com/google/proto-lens/081815877430afc1db669ca5e4edde1558b5fd9d/proto-lens-protobuf-types/Setup.hs
haskell
import Data.ProtoLens.Setup main = defaultMainGeneratingProtos "proto-src"
adfac5d8c768990c5c44602777bf093dfa608d75b273555af7ce93ac5d2e7f6a
tnelson/Forge
client.rkt
#lang racket/base ;; Demonstrates the ws-connect interface. ;; Public Domain. (module+ main (require "../../rfc6455.rkt") (require net/url) (define (recv/print c) (printf "Got message: ~a\n" (ws-recv c))) (define (do-connection protocol) (printf "Connecting using protocol ~a...\n" protocol) (defi...
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/racket-rfc6455/net/rfc6455/examples/client.rkt
racket
Demonstrates the ws-connect interface. Public Domain.
#lang racket/base (module+ main (require "../../rfc6455.rkt") (require net/url) (define (recv/print c) (printf "Got message: ~a\n" (ws-recv c))) (define (do-connection protocol) (printf "Connecting using protocol ~a...\n" protocol) (define c (ws-connect (string->url "ws:8081/test?foo=bar") #:prot...
d764b4129ac94a7f00536714151daf098dff0d7120c065c8ae610d25e437c91c
magnars/optimus-angular
templates.clj
(ns optimus-angular.templates (:require [clojure.string :as str] [optimus.homeless :refer [assoc-non-nil]])) (defn- escaped-js-string [s] (-> s (str/replace "\\" "\\\\") (str/replace "\"" "\\\"") (str/replace "\n" "\\n"))) (defn- template-cache-put [template] (let [escaped-cont...
null
https://raw.githubusercontent.com/magnars/optimus-angular/d955c20f63813b3f31e345a27a1d960a282f8f74/src/optimus_angular/templates.clj
clojure
(ns optimus-angular.templates (:require [clojure.string :as str] [optimus.homeless :refer [assoc-non-nil]])) (defn- escaped-js-string [s] (-> s (str/replace "\\" "\\\\") (str/replace "\"" "\\\"") (str/replace "\n" "\\n"))) (defn- template-cache-put [template] (let [escaped-cont...
ec25d8a1d7bfa39e395822a7e0fb02916cca9aecb0cc45459e6753207dd22979
dbuenzli/serialk
serialk_json.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/dbuenzli/serialk/8894ca7ff9ab46585e9a8e506ae75907038f8a23/src/serialk_json.ml
ocaml
JSON text Constructors Decode (* See #section-4 first byte already checked not fully compliant combine high and low surrogate into scalar value. '\' '"' '}' '"' ':' ',' '}' ']' ',' ']' '"' 't' 'f' 'n' '{' '[' '-' '0' '9' eoi JSON generation Derived generators ...
--------------------------------------------------------------------------- Copyright ( c ) 2016 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
c8eba6630ac06899d197a3f2ff8231b02d05f30fe5109342f64c069ce4706d02
jgoerzen/hpodder
Download.hs
hpodder component Copyright ( C ) 2006 - 2008 < > 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 ...
null
https://raw.githubusercontent.com/jgoerzen/hpodder/bd08d07cc29893177efe8ef0e8be368657d56bbf/Commands/Download.hs
haskell
Now force the DB to be read so that we don't maintain a lock FIXME: this never terminates, but at present, that may not hurt anything Do not consider Ctrl-C a trackable error Given an episode and an environment, call the external command that determines the MIME type of that episode. If the command returns the em...
hpodder component Copyright ( C ) 2006 - 2008 < > 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 ...
2545a4c294105b5afed8b45ba9cdb71e0b16a27876c19a330a748d970b2045d9
ocaml/oloop
test_error.ml
open Core_kernel.Std open Async.Std let phrases = [ "1 +"; "1 +. 1."; "type t = 'a"; "let rec loop() = 1 + loop() in loop()"; ] let eval_phrases t = Deferred.Or_error.List.iter phrases ~f:(fun phrase -> Format.printf "# %s;;@\n%!" phrase; Oloop.eval t phrase >>| f...
null
https://raw.githubusercontent.com/ocaml/oloop/d0dc99fdfb9d1a88d1f45cfaa41422254951b0a8/tests/test_error.ml
ocaml
open Core_kernel.Std open Async.Std let phrases = [ "1 +"; "1 +. 1."; "type t = 'a"; "let rec loop() = 1 + loop() in loop()"; ] let eval_phrases t = Deferred.Or_error.List.iter phrases ~f:(fun phrase -> Format.printf "# %s;;@\n%!" phrase; Oloop.eval t phrase >>| f...
42f9e4ea75689e6aea6669cb9dbc61deb52441a3bbb3c773f09f40392b46904d
blindglobe/clocc
xml.lisp
;;; XML parsing ;;; Copyright ( C ) 2000 - 2005 , 2007 - 2008 by This is Free Software , covered by the GNU GPL ( v2 + ) ;;; See ;;; $ I d : xml.lisp , v 2.56 2008/06/16 16:02:34 sds Exp $ ;;; $Source: /cvsroot/clocc/clocc/src/cllib/xml.lisp,v $ (eval-when (:compile-toplevel :load-toplevel :execute) (requir...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/cllib/xml.lisp
lisp
XML parsing See $Source: /cvsroot/clocc/clocc/src/cllib/xml.lisp,v $ `+whitespace+', `whitespace-char-p' `substitute-subseq-if' `with-timing', `mesg' `read-from-stream' `open-url' `required-argument' `socket' Entities . `nsubstitute'? finish reading - till #\> from ~s to ~s val def seq :start beg ...
Copyright ( C ) 2000 - 2005 , 2007 - 2008 by This is Free Software , covered by the GNU GPL ( v2 + ) $ I d : xml.lisp , v 2.56 2008/06/16 16:02:34 sds Exp $ (eval-when (:compile-toplevel :load-toplevel :execute) (require :cllib-base (translate-logical-pathname "clocc:src;cllib;base")) (require :cllib-witht...
d52e802b51aa70d15013e8865e111f0de5b16ba5df6d4a1a41cf0cc50db12140
xapi-project/xen-api
gpg.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/48cc1489fff0e344246ecf19fc1ebed6f09c7471/ocaml/xapi/gpg.ml
ocaml
no need to close the 'tmp_oc' -> closing the fd is enough make sure I close all my open fds in the end Capture stderr output for logging parent always waitpid eventually
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking describe...
983cce78c6d076f37b494a3e9d43b114325df2f41aa556505d45595d4544fad6
lingnand/VIMonad
Monitor.hs
{-# LANGUAGE TypeSynonymInstances, MultiParamTypeClasses, DeriveDataTypeable, PatternGuards #-} ----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.Monitor Copyright : ( c ) Roman Cheplyaka -- License : BSD-style (see LICENSE) -- -- Maintainer ...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Layout/Monitor.hs
haskell
# LANGUAGE TypeSynonymInstances, MultiParamTypeClasses, DeriveDataTypeable, PatternGuards # --------------------------------------------------------------------------- | Module : XMonad.Layout.Monitor License : BSD-style (see LICENSE) Maintainer : Roman Cheplyaka <> Stability : unstable Portabili...
Copyright : ( c ) Roman Cheplyaka module XMonad.Layout.Monitor ( Monitor(..), monitor, Property(..), MonitorMessage(..), doHideIgnore, manageMonitor $ todo ) where import XMonad import XMonad.Layout.LayoutModifier import XMonad.Util.WindowProperties import XMonad.Hooks.ManageHe...
2f1b78c593b9ea80a8eea21ae18d73687e7f98119be499dab0872ca504da9c2c
agda/agda
FromAbstract.hs
-- | Extract highlighting syntax from abstract syntax. -- Implements one big fold over abstract syntax . { - # OPTIONS_GHC -fwarn - unused - imports # - } -- Data . Semigroup is redundant in later GHC versions # OPTIONS_GHC -fwarn - unused - binds # module Agda.Interaction.Highlighting.FromAbstract ( runHi...
null
https://raw.githubusercontent.com/agda/agda/c71e83595629789b963fa5a8a1c42180f05a6956/src/full/Agda/Interaction/Highlighting/FromAbstract.hs
haskell
| Extract highlighting syntax from abstract syntax. Data . Semigroup is redundant in later GHC versions Range is ambiguous Entry point: | Create highlighting info for some piece of syntax. ^ The current top-level module's name. | Environment of the highlighter. ^ Function mapping qualified names to their kind....
Implements one big fold over abstract syntax . # OPTIONS_GHC -fwarn - unused - binds # module Agda.Interaction.Highlighting.FromAbstract ( runHighlighter , NameKinds ) where import Prelude hiding (null) import Control.Applicative import Control.Monad ( (<=<) ) import Control.Monad.Reader ( Monad...
81efd430e5c6e7bfc0a208e5f1f34c0653a756b3dcf3669c0677395d0eb43dfd
weeezes/plot
Spec.hs
# OPTIONS_GHC -F -pgmF htfpp # import Test.Framework import {-@ HTF_TESTS @-} Tests.Braille import {-@ HTF_TESTS @-} Tests.PointParser.Parser main :: IO () main = htfMain htf_importedTests
null
https://raw.githubusercontent.com/weeezes/plot/e2f3dd486d1d20c6be68682d84096e8ef5574da7/test/Spec.hs
haskell
@ HTF_TESTS @ @ HTF_TESTS @
# OPTIONS_GHC -F -pgmF htfpp # import Test.Framework main :: IO () main = htfMain htf_importedTests
c96bc4062256182d1a6a86c868987e5798d623711e8364449bf2bba76aa3c840
djs55/ocaml-fd-send-recv
test.ml
open Unix open Fd_send_recv let t_receivefd fd = Printf.printf "[receiver] t_receivedfd thread started!\n%!"; let buf = "**" in let nb_read, remote_saddr, fd_recv = recv_fd fd buf 0 2 [] in Printf.printf "[receiver] Received %d bytes, received fd = %d\n%!" nb_read (int_of_fd fd_recv); let message = "[receive...
null
https://raw.githubusercontent.com/djs55/ocaml-fd-send-recv/f05e338db2b425710566482112c8c45ec2c7df06/test/test.ml
ocaml
Entry point
open Unix open Fd_send_recv let t_receivefd fd = Printf.printf "[receiver] t_receivedfd thread started!\n%!"; let buf = "**" in let nb_read, remote_saddr, fd_recv = recv_fd fd buf 0 2 [] in Printf.printf "[receiver] Received %d bytes, received fd = %d\n%!" nb_read (int_of_fd fd_recv); let message = "[receive...
468abf66ca5e3f5c4829edcac8c2cf06c4f42e6fdaad97120631443300b942f6
minikN/dots
geekcave.scm
(define-module (config geekcave) #:use-module (config base) #:use-module (config features games) #:use-module (config features wm) #:use-module (config packages) #:use-module (gnu home-services wm) #:use-module (gnu packages audio) #:use-module (gnu packages engineering) #:use-module (gnu services) #...
null
https://raw.githubusercontent.com/minikN/dots/c303bbd6fd5a355dc013904f588d5646ca56cf1a/config/geekcave.scm
scheme
Browser Terminal Code Agenda Chat System partition System partition Boot partition Host info Kernel File systems Packages Services HiDPI nix-env -iA nixpkgs.docker-compose
(define-module (config geekcave) #:use-module (config base) #:use-module (config features games) #:use-module (config features wm) #:use-module (config packages) #:use-module (gnu home-services wm) #:use-module (gnu packages audio) #:use-module (gnu packages engineering) #:use-module (gnu services) #...
c766ced940d3046ff3576bb15e9e637d0d15b367c4711038392d00c3c05df7af
michaelballantyne/syntax-spec
pattern-var-reflection.rkt
#lang racket/base (provide ;; (rebind-pattern-vars (v ...) e b) ;; Rebind the pattern variables ` v ... ` to the values returned by ` e ` , for use in ` b ` . ;; Pattern vars must be bound as syntax parse attributes, not just syntax-case pattern vars. ;; `e` must return a value for each pattern variable `v`, wh...
null
https://raw.githubusercontent.com/michaelballantyne/syntax-spec/8cf463e0a8386c79014f1f42b241f47cd78483c6/private/syntax/compile/pattern-var-reflection.rkt
racket
(rebind-pattern-vars (v ...) e b) Pattern vars must be bound as syntax parse attributes, not just syntax-case pattern vars. `e` must return a value for each pattern variable `v`, where the value has nested list structure matching the depth associated with the pattern variable. Have templates always check the cont...
#lang racket/base (provide Rebind the pattern variables ` v ... ` to the values returned by ` e ` , for use in ` b ` . rebind-pattern-vars) (require (for-syntax racket/base syntax/parse racket/syntax (only-in racket/private/sc ...
fa2b17f8b96556281e24b8738bdb74ca318e5706416dba3bd39c2d1df13782b3
gvolpe/types-matter
Class.hs
# LANGUAGE FunctionalDependencies , TypeOperators # module Control.Parallel.Class where import Control.Applicative ( ZipList(..) ) import Control.Concurrent.Async ( Concurrently(..)) import Control.Natural ( (:~>)(..) ) import Data.Validation ...
null
https://raw.githubusercontent.com/gvolpe/types-matter/166d56ad551d90138d7e293ba1ce76a756ccb856/src/Control/Parallel/Class.hs
haskell
- The `Parallel` class abstracts over monads which support - parallel composition via some related `Applicative`.
# LANGUAGE FunctionalDependencies , TypeOperators # module Control.Parallel.Class where import Control.Applicative ( ZipList(..) ) import Control.Concurrent.Async ( Concurrently(..)) import Control.Natural ( (:~>)(..) ) import Data.Validation ...
4734a48928876549cbabe4d3cb40652961811db9c78071a53229a8d4cc57dc37
jmgimeno/okasaki-clojure
list_tests.clj
(ns okasaki.list-tests (:refer-clojure :exclude [split-at]) (:use okasaki.list clojure.test)) (deftest list-append (let [l1 (->Cons 1 (->Cons 2 Nil)) l2 (->Cons 3 (->Cons 4 Nil)) l3 (->Cons 1 (->Cons 2 (->Cons 3 (->Cons 4 Nil))))] (is (= l1 (append l1 Nil))) (i...
null
https://raw.githubusercontent.com/jmgimeno/okasaki-clojure/f3e8031d490f5505b74f4a7593f0f9e2e5fe79f3/test/okasaki/list_tests.clj
clojure
(ns okasaki.list-tests (:refer-clojure :exclude [split-at]) (:use okasaki.list clojure.test)) (deftest list-append (let [l1 (->Cons 1 (->Cons 2 Nil)) l2 (->Cons 3 (->Cons 4 Nil)) l3 (->Cons 1 (->Cons 2 (->Cons 3 (->Cons 4 Nil))))] (is (= l1 (append l1 Nil))) (i...
7c8ec2659429759f8e17fc19f15cab918058f06705bff8557e5972b9dfa5e9b0
GlideAngle/flare-timing
MaskLeadCoef.hs
module MaskLeadCoef (maskLeadCoef) where import Data.Maybe (catMaybes) import Data.UnitsOfMeasure (KnownUnit, Unpack, u, convert, toRational') import Data.UnitsOfMeasure.Internal (Quantity(..)) import Flight.Comp ( Pilot(..) , TaskRouteDistance(..) , MadeGoal(..) , LandedOut(..) ) import Flight.D...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/34873946be9b93c37048ed118ef5b4649c71d630/lang-haskell/flare-timing/prod-apps/mask-common/MaskLeadCoef.hs
haskell
NOTE: This is the sum of distance over minimum distance.
module MaskLeadCoef (maskLeadCoef) where import Data.Maybe (catMaybes) import Data.UnitsOfMeasure (KnownUnit, Unpack, u, convert, toRational') import Data.UnitsOfMeasure.Internal (Quantity(..)) import Flight.Comp ( Pilot(..) , TaskRouteDistance(..) , MadeGoal(..) , LandedOut(..) ) import Flight.D...
d56d4ee86c2a1975370f7aab02150b9d40c35fefb077893c3ecee09d2cbb7fec
facebook/flow
asserter.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/hack_forked/test/utils/asserter/asserter.ml
ocaml
Shortcut by comparing the canonical string representation. * List of key-value pairs. We perform these key to value * substitutions in-order. * * For example, consider the substitions: * [ ("foo", "bar"); ("bar", "world"); ] * * being appied to the string: * "hello {{foo}}" * * which ge...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
bf33b5e6fa5d3b4037a0c06d1889a3b980f33358d260de7946e2bf61573d776d
tfausak/blunt
System.hs
# LANGUAGE TypeFamilies # module Blunt.Component.System where import qualified Bento import qualified Blunt.Component.Environment as Environment import qualified Blunt.Component.Logs as Logs import qualified Blunt.Component.Metrics as Metrics import qualified Blunt.Component.Server as Server import Data.Function ((&)...
null
https://raw.githubusercontent.com/tfausak/blunt/a44af0e06138bae94d7fd51330eb5602e7f3d5a3/library/Blunt/Component/System.hs
haskell
# LANGUAGE TypeFamilies # module Blunt.Component.System where import qualified Bento import qualified Blunt.Component.Environment as Environment import qualified Blunt.Component.Logs as Logs import qualified Blunt.Component.Metrics as Metrics import qualified Blunt.Component.Server as Server import Data.Function ((&)...
12e67008785134925c17587d270870450cfccaebc3927c0317faad85a5442500
ml4tp/tcoq
kindops.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/library/kindops.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Operations about types defined in ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Decl_kinds let logical...
c85003c3436b6880005e85e617e0df1e9e8598dda18278c0d57b5d376e155ed4
ghcjs/ghcjs-boot
Map.hs
{-# LANGUAGE BangPatterns #-} -- This is a non-exposed internal module -- The code in this module has been ripped from containers-0.5.5.1 : Data . Map . Base [ 1 ] almost -- verbatimely to avoid a dependency of 'template-haskell' on the containers package. -- [ 1 ] see -0.5.5.1 -- The original code is BSD - lice...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/template-haskell/Language/Haskell/TH/Lib/Map.hs
haskell
# LANGUAGE BangPatterns # This is a non-exposed internal module verbatimely to avoid a dependency of 'template-haskell' on the containers package. # UNPACK # # INLINE empty #
The code in this module has been ripped from containers-0.5.5.1 : Data . Map . Base [ 1 ] almost [ 1 ] see -0.5.5.1 The original code is BSD - licensed and copyrighted by , , et al . module Language.Haskell.TH.Lib.Map ( Map , empty , insert , Language.Haskell.TH.Lib.Map.lookup ) where ...
9202297b26f59648db750aa61f91cb36c02d36b751d558b8b042888f2a2ef763
exercism/clojure
difference_of_squares.clj
(ns difference-of-squares) (defn difference [] ;; <- arglist goes here ;; your code goes here ) (defn sum-of-squares [] ;; <- arglist goes here ;; your code goes here ) (defn square-of-sum [] ;; <- arglist goes here ;; your code goes here )
null
https://raw.githubusercontent.com/exercism/clojure/7ed96a5ae3c471c37db2602baf3db2be3b5a2d1a/exercises/practice/difference-of-squares/src/difference_of_squares.clj
clojure
<- arglist goes here your code goes here <- arglist goes here your code goes here <- arglist goes here your code goes here
(ns difference-of-squares) ) ) )
948aeecb26ac1c968bae838df1dcdfbc449053bd85afc6c2bd6e2503ec7fe5f9
slyrus/abcl
abcl-asdf.lisp
The ABCL specific overrides in ASDF . ;;;; Extensions to ASDF for use by ABCL (require :asdf) (in-package :asdf) (defclass iri (component) ((schema :initform nil) (authority :initform nil) (path :initform nil) (query :initform nil) (fragment :initform nil))) (defclass mvn (iri) ((group-id :ini...
null
https://raw.githubusercontent.com/slyrus/abcl/881f733fdbf4b722865318a7d2abe2ff8fdad96e/contrib/abcl-asdf/abcl-asdf.lisp
lisp
We intercept compilation to ensure that load-op will succeed A Maven URI has the form "mvn:group-id/artifact-id/version" Sometimes people write "group-id:artifact-id:version" to refer to serialized references to artifacts of this form. Currently we "stuff" the group-id/artifact-id into the 'name' and use the c...
The ABCL specific overrides in ASDF . Extensions to ASDF for use by ABCL (require :asdf) (in-package :asdf) (defclass iri (component) ((schema :initform nil) (authority :initform nil) (path :initform nil) (query :initform nil) (fragment :initform nil))) (defclass mvn (iri) ((group-id :initarg ...
abf675d2d1eb85e93f758a3f49ee1feafb426f696ec828848462d5885611e7be
khibino/haskell-relational-record
Config.hs
-- | -- Module : Database.Relational.Schema.IBMDB2.Config Copyright : 2014 - 2019 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown module Database.Relational.Schema.IBMDB2.Config (config) where import Database.Relational (Config (..), ProductUnitSupport (..)...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-schemas/src/Database/Relational/Schema/IBMDB2/Config.hs
haskell
| Module : Database.Relational.Schema.IBMDB2.Config License : BSD3 Maintainer : Stability : experimental Portability : unknown
Copyright : 2014 - 2019 module Database.Relational.Schema.IBMDB2.Config (config) where import Database.Relational (Config (..), ProductUnitSupport (..), defaultConfig) | Configuration parameter against IBM DB2 . config :: Config config = defaultConfig { productUnitSupport = PUNotSupported }
7d2fa71a030d3b469358cfca9050a3f1efa6814ee243f35fc19b5f4c606a031c
jgertm/lang
typeclasses.clj
(ns lang.desugar.typeclasses (:require [clojure.core.match :refer [match]] [clojure.string :as str] [clojure.walk :as walk] [lang.module :as module] [lang.term :as term] [lang.type :as type] [lang.utils :as utils :refer [undefined]] [...
null
https://raw.githubusercontent.com/jgertm/lang/5a4d73f01d93d7615e44f8ce2dfe8a237dd80766/src/lang/desugar/typeclasses.clj
clojure
FIXME? :type-checker/instance-chains deref
(ns lang.desugar.typeclasses (:require [clojure.core.match :refer [match]] [clojure.string :as str] [clojure.walk :as walk] [lang.module :as module] [lang.term :as term] [lang.type :as type] [lang.utils :as utils :refer [undefined]] [...
498be71be74bb9e8b69b7435a4c27764ae94b8538f30bfda5c35033d068aef29
kbaird/consensus
gallagher_index_test.erl
-module('gallagher_index_test'). -author('Kevin C. Baird'). -include_lib("eunit/include/eunit.hrl"). Index gallagher_index_setup() -> ok. gallagher_index_teardown(_) -> ok. gallagher_index_test_() -> Cf . Lijphart , Arend , _ Patterns of Democracy _ , 1999 . pg158 . % measure of disproportionality: ...
null
https://raw.githubusercontent.com/kbaird/consensus/37a8e1e502435c8537e5dd3d3dff23bec5b95e2f/test/gallagher_index_test.erl
erlang
measure of disproportionality: G = √(1/2 * Σ(Vi - Si)^2) at index i at index i PRIVATE FUNCTIONS counting "faithless" electors as if they were not counting "faithless" electors as if they were not
-module('gallagher_index_test'). -author('Kevin C. Baird'). -include_lib("eunit/include/eunit.hrl"). Index gallagher_index_setup() -> ok. gallagher_index_teardown(_) -> ok. gallagher_index_test_() -> Cf . Lijphart , Arend , _ Patterns of Democracy _ , 1999 . pg158 . {setup, fun gallagher_index_setup/0,...
82ab5611686f200d7adc25bdb1f8063de2b814d0bcd674649de57fbd2b1a0d73
mayconamaro/ringell
Unroll.hs
module Unroll where import Semantic inline :: ExpS -> Context -> String -> ExpS -> ExpS inline (VarS v) env s ex | v == s = ex | otherwise = VarS v inline (ZeroS) env s ex = ZeroS inline (SucS e) env s ex = SucS (inline e env s ex) inline (AbsS v t e) env s ...
null
https://raw.githubusercontent.com/mayconamaro/ringell/4bca3d89188d775f1089575552588630710276b2/Compiler%20first%20version/src/Unroll.hs
haskell
module Unroll where import Semantic inline :: ExpS -> Context -> String -> ExpS -> ExpS inline (VarS v) env s ex | v == s = ex | otherwise = VarS v inline (ZeroS) env s ex = ZeroS inline (SucS e) env s ex = SucS (inline e env s ex) inline (AbsS v t e) env s ...
7cf52bfc5f9acabdd7b0431bbe298b6e25d02261a9bf5a93ccd4863a6118ad40
juspay/atlas
OneWay.hs
| Copyright 2022 Juspay Technologies Pvt Ltd 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 -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/app-backend/src/Domain/Action/UI/Search/OneWay.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd 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 -2.0 Unless required by applicable law or agreed to in writing , software dis...
4944f98714fc49918df7275f461cae0bdc7516e7b9dcb5d960a56065b9139134
heraldry/heraldicon
gyronny_n.cljs
(ns heraldicon.heraldry.field.type.gyronny-n (:require [heraldicon.context :as c] [heraldicon.heraldry.field.environment :as environment] [heraldicon.heraldry.field.interface :as field.interface] [heraldicon.heraldry.line.core :as line] [heraldicon.heraldry.option.position :as position] [heraldicon....
null
https://raw.githubusercontent.com/heraldry/heraldicon/71126cfd7ba342dea0d1bb849be92cbe5290a6fd/src/heraldicon/heraldry/field/type/gyronny_n.cljs
clojure
(ns heraldicon.heraldry.field.type.gyronny-n (:require [heraldicon.context :as c] [heraldicon.heraldry.field.environment :as environment] [heraldicon.heraldry.field.interface :as field.interface] [heraldicon.heraldry.line.core :as line] [heraldicon.heraldry.option.position :as position] [heraldicon....
3a5e5c9d1561dec90b627cd69099ffb738a7cb072e003903b903fecd084e4717
ferd/vmstats
vmstats_sink.erl
-module(vmstats_sink). -type collect_type() :: counter | gauge | timing. -callback collect(Type :: collect_type(), Key :: iodata(), Value :: term()) -> ok.
null
https://raw.githubusercontent.com/ferd/vmstats/ffc45cf52881c26ed11422f076700d57b46201f8/src/vmstats_sink.erl
erlang
-module(vmstats_sink). -type collect_type() :: counter | gauge | timing. -callback collect(Type :: collect_type(), Key :: iodata(), Value :: term()) -> ok.
fe6b19b90e3d34ffe2062ff90eebdf6a0976d1c1186baa9b9dac22b576fa49d4
zorkow/MaxTract
synt.ml
(***********************************************************************) (* *) (* Holds synt&treeypes for use in linearize along with utility methods *) (* *) (**********************...
null
https://raw.githubusercontent.com/zorkow/MaxTract/cb0b46792bb22d9d30996ae8c9e54a9819d740f9/src/linearize/synt.ml
ocaml
********************************************************************* Holds synt&treeypes for use in linearize along with utility methods ****************************************...
type synt = {name: string; font: string; size: float; x1: int; x2: int; x3: int; y1: int; y2: int; y3: int};; type iTree = {tleft:int; tright:int; ttop:int; tbot:int; tbase:int;} type tree = Null | ITree of iTree * @edited : 21 - JUL-2012 @author : Josef Baker @input : list of synts ...
e91bd52004fd7a93cccaaff02e1c36ff95550222d3d73da1fb95da08ccb11856
alanz/ghc-exactprint
T10942.hs
module Main where import DynFlags import GHC import Control.Monad.IO.Class (liftIO) import System.Environment import HeaderInfo import Outputable import StringBuffer main :: IO () main = do [libdir] <- getArgs runGhc (Just libdir) $ do dflags <- getSessionDynFlags let dflags' = dflags `gopt_set` Opt_Keep...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T10942.hs
haskell
module Main where import DynFlags import GHC import Control.Monad.IO.Class (liftIO) import System.Environment import HeaderInfo import Outputable import StringBuffer main :: IO () main = do [libdir] <- getArgs runGhc (Just libdir) $ do dflags <- getSessionDynFlags let dflags' = dflags `gopt_set` Opt_Keep...
91ede0adc213c06c73422fee343f38a728d548336b7c60ca1c4ca8d6c76ef4ec
ladderlife/om-fullstack-example
driver.clj
(ns om-fullstack-example.driver (:require [clojure.walk :as walk] [clojure.set :refer [map-invert]] [cellophane.next :as om] [om-fullstack-example.api :as api] [om-fullstack-example.client :as client])) (defn next-local-state "Transition to next local state via mutations" [state query] (let...
null
https://raw.githubusercontent.com/ladderlife/om-fullstack-example/d54d0515676ffb842b30cc2a8a9d8eaf69b142fe/test/server/om_fullstack_example/driver.clj
clojure
(ns om-fullstack-example.driver (:require [clojure.walk :as walk] [clojure.set :refer [map-invert]] [cellophane.next :as om] [om-fullstack-example.api :as api] [om-fullstack-example.client :as client])) (defn next-local-state "Transition to next local state via mutations" [state query] (let...
7c5767da494805727785750ac374460aa9b2160fd60786c9cadb186cf3f11b04
janestreet/incr_dom
app.ml
open Core open Async_kernel open Incr_dom module Js = Js_of_ocaml.Js module Model = struct type t = { last_key_code : int ; text_box_content : string } [@@deriving fields, compare] let cutoff t1 t2 = compare t1 t2 = 0 end module State = struct type t = unit end module Action = struct type t = ...
null
https://raw.githubusercontent.com/janestreet/incr_dom/f2dfcf932d252aec523ccbe3da02b5d264e4a1a2/example/keyboard_events/app.ml
ocaml
Note that we don't include [on_display] or [update_visibility], since these are optional arguments
open Core open Async_kernel open Incr_dom module Js = Js_of_ocaml.Js module Model = struct type t = { last_key_code : int ; text_box_content : string } [@@deriving fields, compare] let cutoff t1 t2 = compare t1 t2 = 0 end module State = struct type t = unit end module Action = struct type t = ...
6d422254fad764973b4b22fbbd4a4fdb1e7e459dc6d100a41edc3dd89ce56fff
cgohla/pureshell
Fin.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} # LANGUAGE InstanceSigs # {-# LANGUAGE KindSignatures #-} # LANGUAGE LambdaCase # # LANGUAGE StandaloneDeriving # {-# LANGUAGE TypeOperators #-} module Data.Fin where import Data.Nat (Add, Mult, N, Nat (.....
null
https://raw.githubusercontent.com/cgohla/pureshell/ddaa9956dd4eb04a68eee39ae65395aaeeeb0b50/pureshell/Data/Fin.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE KindSignatures # # LANGUAGE TypeOperators # finDivMod :: Fin (m `Mult` n) -> Sing m -> (Fin m, Fin n) finDivMod = undefined
# LANGUAGE InstanceSigs # # LANGUAGE LambdaCase # # LANGUAGE StandaloneDeriving # module Data.Fin where import Data.Nat (Add, Mult, N, Nat (..), SNat (..)) import Data.Singletons (Sing) data Fin (n :: Nat) where FinZ :: Sing n -> Fin n FinS :: Fin n -> Fin ((N 1) `Add` ...
2ac1336c44ee5dbe0aa7d180b454c1105102c8ab6efa7c92507c901baf13fbc2
logseq/deprecated-github-backend
slack.clj
(ns app.slack (:require [clj-http.client :as client] [cheshire.core :refer [generate-string]] [clojure.string :as str] [taoensso.timbre :as t] [app.config :as config])) Replaced httpkit with clj - http because of a dokku weird bug Unsupported record version Unknown-0.0 (defn slack-escape [message] ...
null
https://raw.githubusercontent.com/logseq/deprecated-github-backend/7aa2f187f0f2d7b1e9c3f6a057bede939b4790b7/src/main/app/slack.clj
clojure
:api-latency {:webhook (:slack-hook config)}
(ns app.slack (:require [clj-http.client :as client] [cheshire.core :refer [generate-string]] [clojure.string :as str] [taoensso.timbre :as t] [app.config :as config])) Replaced httpkit with clj - http because of a dokku weird bug Unsupported record version Unknown-0.0 (defn slack-escape [message] ...
0408245642dfd2f7cfc23dd11d612f64eab179bf0f815b85165f2671f9eda615
chef/chef-server
chef_metrics.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92-*- %% ex: ts=4 sw=4 et Copyright Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License ....
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_erchef/apps/chef_objects/src/chef_metrics.erl
erlang
ex: ts=4 sw=4 et Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. @doc Utilit...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92-*- Copyright Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an ...
ba7b15d5fa3c553bf90234debdbc33dff5d6146a882f285117ad6e690e94d992
voxoz/mtx
mtx_sup.erl
-module(mtx_sup). -behaviour(supervisor). -export([start_link/0,init/1]). -define(CHILD(I, Type, Opts), {I, {I, start_link, [Opts]}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, get_hostport()). init([Host, Port]) -> {ok, { {one_for_one, 5, 10}, [?CHILD(mtx, worker, [H...
null
https://raw.githubusercontent.com/voxoz/mtx/6b9f1444a9ee2e99f2e37f4ba8bcffb4e2b37877/src/mtx_sup.erl
erlang
-module(mtx_sup). -behaviour(supervisor). -export([start_link/0,init/1]). -define(CHILD(I, Type, Opts), {I, {I, start_link, [Opts]}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, get_hostport()). init([Host, Port]) -> {ok, { {one_for_one, 5, 10}, [?CHILD(mtx, worker, [H...
445eebe86036de39ff59ee2740d14f2c1402647e0bc5bc9f83fedabbafbcd093
deadpendency/deadpendency
GoMod.hs
module DD.Effect.DetermineDependencies.Backend.LanguageFiles.Golang.GoMod ( GoModInput (..), ) where import Common.Model.Dependency.Basic.BasicDependency import Common.Model.Dependency.DependencyIdentifier import Common.Model.Dependency.DependencyName import Common.Model.Dependency.File.DependenciesFileType qualif...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/dependency-determiner/src/DD/Effect/DetermineDependencies/Backend/LanguageFiles/Golang/GoMod.hs
haskell
module github.com/skyrocknroll/go-mod-example require ( github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect github.com/gorilla/mux v1.6.2 github.com/sirupsen/logrus v1.2.0 gopkg.in/alecthomas/kingpin.v2 v2.2.6 //...
module DD.Effect.DetermineDependencies.Backend.LanguageFiles.Golang.GoMod ( GoModInput (..), ) where import Common.Model.Dependency.Basic.BasicDependency import Common.Model.Dependency.DependencyIdentifier import Common.Model.Dependency.DependencyName import Common.Model.Dependency.File.DependenciesFileType qualif...
e28b0709a9077472956c476e0d8993d70c62ff8dde3c560bf2f7d51584653976
facebook/pyre-check
unawaitedAwaitableCheckTest.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/ecff28095756a7ac6968ae4dd1d78586c368e7e6/source/analysis/test/unawaitedAwaitableCheckTest.ml
ocaml
TODO(T65923817): Eliminate the need of creating a dummy context here Test that a non-async `def` returning `Awaitable[int]` is checked correctly. Assert. Delete. Raise. Return. Yield. Any is not an awaitable. We view parameters which flow into a call as having been awaited. Lambdas. Starred express...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
16e86966c6bd2ab2195661ecf7b37625c90be57adc0067549867a5e890a88ba8
input-output-hk/nix-tools
Plan.hs
{-# LANGUAGE OverloadedStrings #-} module Plan2Nix.Plan ( Version , Revision , URL , Rev , Plan(..) , PkgSrc(..) , Package(..) , Location(..) ) where import Data.Text ( Text ) import Data.HashMap.Strict ( HashMap ) import ...
null
https://raw.githubusercontent.com/input-output-hk/nix-tools/1d0000ca59c7c14896469e39e5a3a13f8cc400c0/plan2nix/Plan2Nix/Plan.hs
haskell
# LANGUAGE OverloadedStrings # Can be: rNUM, cabal file sha256, or "default" See stack2nix ^ some local package (potentially overriding a package in the index as well)
module Plan2Nix.Plan ( Version , Revision , URL , Rev , Plan(..) , PkgSrc(..) , Package(..) , Location(..) ) where import Data.Text ( Text ) import Data.HashMap.Strict ( HashMap ) import Data.HashSet ...
70f50fc14fbb026d0221a08ecf9fcb931c79c09b91aa618627f4dbbfa3d1421b
plum-umd/c-strider
longarray.ml
The Longarray module is designed to work around the maximum array size * imposed by 's built - in Array module . Longarray provides the * same interface as Array ( well , a portion of it ) and is implemented as * a list of arrays . For arrays shorter than the maximum length , the * only cost is an ad...
null
https://raw.githubusercontent.com/plum-umd/c-strider/3d3a3743bc28456eb6d50e01805ce484ab3c04e6/tools/cil-1.3.7/ocamlutil/longarray.ml
ocaml
The Longarray module is designed to work around the maximum array size * imposed by 's built - in Array module . Longarray provides the * same interface as Array ( well , a portion of it ) and is implemented as * a list of arrays . For arrays shorter than the maximum length , the * only cost is an ad...
ca2be336f4c1b5fe104122c5cd906228bae2338dc1afceae0cade99cca3f2716
ctford/overtunes
project.clj
(defproject overtunes "0.1.0-SNAPSHOT" :description "Experiments with Overtone." :dependencies [ [org.clojure/clojure "1.3.0"] [org.clojure/algo.monads "0.1.0"] [overtone "0.6.0"] ] )
null
https://raw.githubusercontent.com/ctford/overtunes/44dc2d6482315e1893cf19000cfe3381a2c41da4/project.clj
clojure
(defproject overtunes "0.1.0-SNAPSHOT" :description "Experiments with Overtone." :dependencies [ [org.clojure/clojure "1.3.0"] [org.clojure/algo.monads "0.1.0"] [overtone "0.6.0"] ] )
0366c40bab98e995b02b74de0e24e67d2bccbe347eb01d55bab1cb7d15d22236
hspec/hspec
Spec.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE ConstraintKinds #-} -- | -- Stability: unstable -- This module provides access to Hspec 's internals . It is less stable than -- other parts of the API. For most users @Test.Hspec@ is more suitable! module Test.Hspec.Core.Spec ( -- * Defining a spec it , specify , descr...
null
https://raw.githubusercontent.com/hspec/hspec/5b11e824be1c3daceaa7feb1e89a1c9100f09a2f/hspec-core/src/Test/Hspec/Core/Spec.hs
haskell
# LANGUAGE ConstraintKinds # | Stability: unstable other parts of the API. For most users @Test.Hspec@ is more suitable! * Defining a spec * The @SpecM@ monad * A type class for examples * Internal representation of a spec tree unused unused * Re-exports | The @describe@ function combines a list of specs in...
# LANGUAGE FlexibleContexts # This module provides access to Hspec 's internals . It is less stable than module Test.Hspec.Core.Spec ( it , specify , describe , context , pending , pendingWith , xit , xspecify , xdescribe , xcontext , focus , fit , fspecify , fdescribe , fcontext , parallel , sequential , Tes...
94f6c5c7d2c27380ff12aef46f7a5ae73de4c91735fbba4d903920bbefb51c86
tud-fop/vanda-haskell
PatternBasedStateMerging.hs
# LANGUAGE ScopedTypeVariables # ----------------------------------------------------------------------------- -- | Module : . PBSM.PatternBasedStateMerging Copyright : ( c ) Technische Universität Dresden 2014 -- License : BSD-style -- -- Maintainer : -- Stability : unknown -- Portability...
null
https://raw.githubusercontent.com/tud-fop/vanda-haskell/3214966361b6dbf178155950c94423eee7f9453e/library/Vanda/PBSM/PatternBasedStateMerging.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : unknown Portability : portable --------------------------------------------------------------------------- import Debug.Trace QuickCheck Tests ----------------------------------...
# LANGUAGE ScopedTypeVariables # Module : . PBSM.PatternBasedStateMerging Copyright : ( c ) Technische Universität Dresden 2014 module Vanda.PBSM.PatternBasedStateMerging where import Vanda.PBSM.Types import Prelude hiding (any) import Control.Arrow import Data.Foldable (any) import Data.Functio...
8097371690c935bd482ee9d8d4e83cb70eb4e24cb04205544d9b5de5159754e0
coq-community/coqffi
entry.ml
open Repr open Parsetree open Types open Feature open Error type primitive_entry = { prim_name : string; prim_type : type_repr; prim_may_raise : bool; prim_loc : Location.t; } type lwt_entry = { lwt_placeholder : int; lwt_name : string; lwt_type : type_repr; lwt_loc : Location.t; } type function_entr...
null
https://raw.githubusercontent.com/coq-community/coqffi/33ce7c136f3cd49e2c1388c54d53d4c20379a5f9/src/entry.ml
ocaml
If there is a type_manifest value, actually there is little work to be done, since we are in the presence of an entry of the form [type t = u]. For variant types, we need to have a look at variants The other function will call [to_variant_entry] with an empty set of type parameters, beca...
open Repr open Parsetree open Types open Feature open Error type primitive_entry = { prim_name : string; prim_type : type_repr; prim_may_raise : bool; prim_loc : Location.t; } type lwt_entry = { lwt_placeholder : int; lwt_name : string; lwt_type : type_repr; lwt_loc : Location.t; } type function_entr...