The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
package App::Mobirc::Types;
use strict;
use warnings;
use App::Mobirc::ConfigLoader;
use MouseX::Types -declare => [qw/Config/];

{
    subtype Config,
        as 'HashRef';
    
    coerce Config,
        from 'Str' => via { App::Mobirc::ConfigLoader->load($_) };
}

1;