Manoel Menezes writes:
> Hi everybody!
>
> I am trying to solve the question for a long time:
>
> [4.12 Harder] Find out the maximum number of pieces we can get by
> making a given number of flat (that is planar) cuts through a solid
> block. It is not the same answer as we calculated for straigh
Ozgur Akgun writes:
> Hi.
>
> On 10 August 2013 18:20, Brandon Allbery wrote:
>
> There may be some support for requesting specific versions from
> Homebrew.
>
>
> Try `brew versions llvm`. Then, you'll need to run the git checkout
> command in `brew --prefix` directory.
>
Or brew tap h
Simon Peyton-Jones writes:
> | Indeed, I wished the 0-ary case would be more alike to the unary
> | and binary case, cf.
> |
> | return f0
> | f1 <$> a1
> | f2 <$> a1 <*> a2
> |
> | What is needed is a nice syntax for "idiom brackets".
>
> Indeed. I'm quite open to adding idio
Christopher Done writes:
> Anyone ever needed this? Me and John Wiegley were discussing a decent
> name for it, John suggested inv as in involution. E.g.
>
> inv reverse (take 10)
> inv reverse (dropWhile isDigit)
> trim = inv reverse (dropWhile isSpace) . dropWhile isSpace
>
> That seems to be t
Luke Evans writes:
> I was hoping I could use Arbitrary instances to generate streams of
> values for test data. It looks like you're not 'supposed' to be
> trying this, other than for the specific purpose of then testing some
> properties on these streams within Quick Check itself.
>
> I'm look
Arlen Cuss writes:
>> import Data.Either
>> type (:|:) a b = Either a b
>> (???) = either
>>
>> foo :: (Int :|: Bool :|: String :|: Double) -> Int
>> foo =
>> \ i -> i + 7 ???
>> \ b -> if b then 1 else 0 ???
>> \ s -> length s ???
>> \ d -> floor d
>
> INFIX TYPE OPERATOR
dokondr writes:
> Hi,
> When my program starts it needs to know a complete path to the directory from
> which it was invoked.
> In terms of standard shell (sh) I need the Haskell function that will do
> equivalent to:
>
> #!/bin/sh
> path=$(dirname $0)
>
> How to get this path in Haskell?
>
> get
Anton Nikishaev writes:
> dokondr writes:
>
>> Hi, When my program starts it needs to know a complete path to the
>> directory from which it was invoked. In terms of standard shell (sh)
>> I need the Haskell function that will do equivalent to:
>>
>> #!/bi