package Squirrel::Role;
use strict;
use warnings;

use base qw(Squirrel);

sub _choose_backend {
    if ( $INC{"Moose/Role.pm"} ) {
        return {
            backend  => 'Moose::Role',
            import   => \&Moose::Role::import,
            unimport => \&Moose::Role::unimport,
        }
    }
    else {
        require Mouse::Role;
        return {
            backend  => 'Mouse::Role',
            import   => \&Mouse::Role::import,
            unimport => \&Mouse::Role::unimport,
        }
    }
}

1;

__END__

=head1 NAME

Squirrel::Role - Use Mouse::Role, unless MooseRole is already loaded. (DEPRECATED)

=cut

