lambdabot-trusted-5.2/0000755000000000000000000000000013461612716013172 5ustar0000000000000000lambdabot-trusted-5.2/LICENSE0000644000000000000000000000225613461612716014204 0ustar0000000000000000Copyright (c) 2003 Andrew J. Bromage Portions Copyright (c) 2003 Shae Erisson, Sven M. Hallberg, Taylor Campbell Portions Copyright (c) 2003-2006 Members of the AUTHORS file 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, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. lambdabot-trusted-5.2/Setup.hs0000644000000000000000000000014213461612716014623 0ustar0000000000000000#!/usr/bin/env runhaskell import Distribution.Simple main = defaultMainWithHooks defaultUserHooks lambdabot-trusted-5.2/lambdabot-trusted.cabal0000644000000000000000000000257613461612716017605 0ustar0000000000000000name: lambdabot-trusted version: 5.2 license: GPL license-file: LICENSE author: Bertram Felgenhauer maintainer: Bertram Felgenhauer category: Development, Web synopsis: Lambdabot trusted code. description: Lambdabot is an IRC bot written over several years by those on the #haskell IRC channel. . This small package provides functions used by the \@run command. homepage: https://wiki.haskell.org/Lambdabot build-type: Simple cabal-version: >= 1.8 tested-with: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5 source-repository head type: git location: https://github.com/lambdabot/lambdabot.git library hs-source-dirs: src ghc-options: -Wall -funbox-strict-fields exposed-modules: Lambdabot.Plugin.Haskell.Eval.Trusted other-modules: Lambdabot.Plugin.Haskell.Check.ShowQ build-depends: base >= 4.4 && < 5, oeis >= 0.3.1, QuickCheck-safe >= 0.1, QuickCheck >= 2 lambdabot-trusted-5.2/src/0000755000000000000000000000000013461612716013761 5ustar0000000000000000lambdabot-trusted-5.2/src/Lambdabot/0000755000000000000000000000000013461612716015646 5ustar0000000000000000lambdabot-trusted-5.2/src/Lambdabot/Plugin/0000755000000000000000000000000013461612716017104 5ustar0000000000000000lambdabot-trusted-5.2/src/Lambdabot/Plugin/Haskell/0000755000000000000000000000000013461612716020467 5ustar0000000000000000lambdabot-trusted-5.2/src/Lambdabot/Plugin/Haskell/Eval/0000755000000000000000000000000013461612716021356 5ustar0000000000000000lambdabot-trusted-5.2/src/Lambdabot/Plugin/Haskell/Eval/Trusted.hs0000644000000000000000000000101013461612716023334 0ustar0000000000000000{-# LANGUAGE Trustworthy #-} module Lambdabot.Plugin.Haskell.Eval.Trusted ( module Math.OEIS , module Test.QuickCheck.Safe , module Lambdabot.Plugin.Haskell.Check.ShowQ , module Lambdabot.Plugin.Haskell.Eval.Trusted ) where import Math.OEIS import Lambdabot.Plugin.Haskell.Check.ShowQ import Test.QuickCheck.Safe describeSequence :: SequenceData -> Maybe String describeSequence = fmap description . lookupSequence newtype Mu f = In { out :: f (Mu f) } newtype Rec a = InR { outR :: Rec a -> a } lambdabot-trusted-5.2/src/Lambdabot/Plugin/Haskell/Check/0000755000000000000000000000000013461612716021504 5ustar0000000000000000lambdabot-trusted-5.2/src/Lambdabot/Plugin/Haskell/Check/ShowQ.hs0000644000000000000000000000052713461612716023105 0ustar0000000000000000-- GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html) -- Copyright date and holder unknown. module Lambdabot.Plugin.Haskell.Check.ShowQ (myquickcheck) where import Test.QuickCheck.Safe (STestable, quickCheck, inventQCGen) myquickcheck :: STestable prop => prop -> String myquickcheck prop = quickCheck (inventQCGen prop) prop