Naish, John, active 1874-1888, Attorney-General for Ireland