Skip to content

Commit

Permalink
some fixes for odd currying error
Browse files Browse the repository at this point in the history
  • Loading branch information
cjfields committed Jan 27, 2015
1 parent c8ab61a commit e8d1634
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Bio/Role/IO.pm6
Expand Up @@ -3,7 +3,7 @@ use v6;
use Bio::Role::Temp;

role Bio::Role::IO does Bio::Role::Temp {
has IO::Handle $.fh handles <get getc eof lines read write seek tell slurp spurt close>;
has IO::Handle $.fh handles IO::Handle;

# At the moment we force all IO consumers to initialize-io if they have this
# simple signature
Expand Down
4 changes: 1 addition & 3 deletions lib/Bio/Role/SeqStream.pm6
@@ -1,8 +1,6 @@
use v6;

use Bio::Role::IO;

role Bio::Role::SeqStream does Bio::Role::IO;
role Bio::Role::SeqStream;

method next-Seq { ... }

Expand Down
5 changes: 2 additions & 3 deletions lib/Bio/Role/Temp.pm6
Expand Up @@ -10,16 +10,15 @@ has @!tmpdirs;
my $tmpcounter = 0;

method tmpfile(*%args) {

# local passed arguments should override the global settings, not ignore them

if %args{'unlink'}:!exists {
%args{'unlink'} = False ;
}
tempfile(|%args);
}

# a hack for temp directories; we need to get a version working for File::Temp
# a hack for temp directories; a version is working for File::Temp but is stuck
# in a pull request
method tmpdir(Bool :$cleanup) {
$!cleanup-tmpdir = $cleanup if $cleanup;
my $tdir = $*SPEC.catfile( $*TMPDIR,
Expand Down
2 changes: 2 additions & 0 deletions lib/Bio/SeqIO.pm6
Expand Up @@ -2,9 +2,11 @@ use v6;

use Bio::Role::Pluggable;
use Bio::Role::RecordFormat;
use Bio::Role::IO;

class Bio::SeqIO does Bio::Role::Pluggable['SeqIO']
does Bio::Role::RecordFormat
does Bio::Role::IO
{

has $!plugin handles <next-Seq write-Seq>;
Expand Down

0 comments on commit e8d1634

Please sign in to comment.