infix_fn 0.1.1

Procedural macro used to make infix function calls similarly to Haskell's syntax with pound (#) instead of backticks (`)
Documentation
use crate::prelude::*;

pub struct Infix {
    pub lhs: Expr,
    #[allow(dead_code, reason = "Parsing only")]
    pub sep_lhs: Token![#],
    ////////////////////////////////////////////////////////////////////////////////////////////////
    pub fn_ident: Ident,
    ////////////////////////////////////////////////////////////////////////////////////////////////
    #[allow(dead_code, reason = "Parsing only")]
    pub sep_rhs: Token![#],
    pub rhs: Expr,
}

impl Parse for Infix {
    fn parse(input: ParseStream) -> syn::Result<Self> {
        Ok(Self {
            lhs: input.parse()?,
            sep_lhs: input.parse()?,
            fn_ident: input.parse()?,
            sep_rhs: input.parse()?,
            rhs: input.parse()?,
        })
    }
}