BRANCH=master # or 'rocko'
xargs -n 1 git clone -b $BRANCH <<'__EOF__'
git://git.yoctoproject.org/poky
git://git.openembedded.org/meta-openembedded
git://github.com/agherzan/meta-raspberrypi
git://github.com/webplatformforembedded/meta-wpe
__EOF__
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! An adapter for merging the output of two streams, where | |
//! the stream resolves as soon either stream resolves. | |
use futures::{Poll, Async}; | |
use futures::stream::{Stream, Fuse}; | |
pub struct AndSelect<S1, S2> { | |
stream1: Fuse<S1>, | |
stream2: Fuse<S2>, | |
flag: bool, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Update: As of March 24th 2017 this script won't work. | |
# The script at https://get.haskellstack.org/ is broken | |
# because the binary of Stack 1.4 for ARM is missing from https://www.stackage.org/stack/ . | |
# You can still get the binary for Stack 1.3.2 from | |
# https://github.com/commercialhaskell/stack/releases/download/v1.3.2/stack-1.3.2-linux-arm.tar.gz | |
# and place it at $USR_LOCAL_BIN/stack in your system. | |
# Once Stack is installed you can proceed with the Install LLVM step |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::rc::Rc; | |
trait HKT<U> { | |
type C; // Current type | |
type T; // Type with C swapped with U | |
} | |
macro_rules! derive_hkt { | |
($t:ident) => { | |
impl<T, U> HKT<U> for $t<T> { |